I have an issue with Invoke-Command
which make me crazy ..
I try to get the last 5 digits of Windows servers licence key , to do that I use this command :
cscript C:WindowsSystem32slmgr.vbs /dli
This command work on all my servers ( when i run it as local ) , but when I send it using Invoke-Commmand
:
Invoke-Command -ComputerName $server -ScriptBlock {cscript C:WindowsSystem32slmgr.vbs /dli}
Many servers don't answer me, I just have no PowerShell answer, no output!
Somebody have an idea ?
question from:
https://stackoverflow.com/questions/66059406/remote-invoke-command-issue 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…