How do I go off the internet and back on the quickest? similar to briefly going offline?

So, here’s the deal: I’m currently playing a game and need to test something that requires me to disconnect from it, which means I have to disconnect from the internet.

Does anyone know of a quick way to do this? I’m looking for a small piece of software specifically designed for that or something similar. Right now, I just toggle my VPN on and off, but it can take 10-20 seconds to disconnect with ExpressVPN, which slows things down.

You can use this command in PowerShell to quickly turn off networking for all adapters:

Get-NetAdapter | Disable-NetAdapter -Confirm:$false
Get-NetAdapter | Enable-NetAdapter -Confirm:$false

This will disable and then enable all your network adapters without asking for confirmation.

You could put this in a file and run it as a script

Get-NetAdapter | Disable-NetAdapter -Confirm:$false Start-Sleep -Seconds 2 Get-NetAdapter | Enable-NetAdapter -Confirm:$false

Which turns them off, sleeps for 2 seconds, and turns them back on.

And you may need to do this as administrator to work.

why not just use Airplane Mode?

You know, I totally didn’t think of that! I’ll give it a shot,thanks for the suggestion! :heart: