Disable remote systems network without timeout lag


i writing powershell script quarantine computer , have problem of huge timeout lag when remotely disabling network interface.

the interface goes offline, powershell waits ~4-5 minutes timeout before moving on the next lines of code.

anyone know how remotely disable network adapters without huge time lag?

thanks in advance!

d

invoke-cimmethod -operationtimeoutsec <number of seconds>

\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...