Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Running netsh on remote hosts

$
0
0

I'm trying to run

foreach($server in $servers){

Invoke-Command -computerName $servers -Scriptblock{

netsh int tcp set global netdma=enabled;

netsh int tcp set global dca=enabled

}

}

The command runs with no errors even returning OK after each line but no changes on the target machines when I locally run

netsh int tcp show global


Viewing all articles
Browse latest Browse all 6937

Trending Articles