您好,
感谢您的发帖。
我们可以使用以下power shell命令。命令中不必要使用for循环。
Restart-Computer -ComputerName (Get-Content c:\computername.txt) -Force
请将计算机名都写在一个txt文件中。
参考链接:
https://mcpmag.com/articles/2012/04/10/how-to-restart-computers-remotely-via-powershell.aspx
请注意:由于该网站不是由Microsoft托管,因此链接可能会更改,恕不另行通知。Microsoft不保证此信息的准确性。
希望以上信息有所帮助。
Best regards,
Kallen
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.