Home Forums Programming Powershell Disable NIC on remote server in powershell RE: Disable NIC on remote server in powershell
Mac1986
SSCertifiable
Points: 6216
More actions
January 13, 2016 at 3:21 pm
#1851748
Hello Shawn,
can you please help me figure out the answer to disable NIC using "-args"
$NICName = 'Trunk1'
Invoke-Command -Computer MyRemoteServer { Disable-NetAdapter -Name $NICName -Confirm:$false } -Args $nic