我有下面的脚本来列出超V服务器上正在运行的vms:ForEach ($Guest in $VirtualHostsGet-VM -ComputerName $Guest | Where State -eq Running | FT Name}
我想添加使用Restart-Computer cmdlet重新启动计算机的功能为此,我计划使用嵌套的foreach语
我正试图回到foreach语句中,如下面的示例代码所示。有办法吗? foreach($boxes as $box) foreach($box as $thing) ?-- more html code here outside of foreach statement that don't want to be loop -->
// want to go backin to the