我只能获得命令来返回文本文件中第一台计算机上的服务.对于这项任务,有没有比为每个人更好的方法?
Get-Service *vault* -ComputerName (Get-Content c:\users\sean\desktop\js.txt) | select name,status,machinename | sort machinename | format-table -autosize
Run Code Online (Sandbox Code Playgroud) powershell ×1