Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

powershell - Remote Invoke-Command Issue

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...