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

remote Dos command

$
0
0

Hi ,

i want to remote configure the ILo interface ,  it is done via a dos command,

so i want to remote run cmd.exe in administrative mode  "command.exe -m" and get back the value

i tried invoke-command -computer $computer -scriptblock { param($value) cmd.exe /c "command.exe -m" $value }  -argumentlist $value

 

but nothing is returned..

Thanks in advance

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles