试图弄清楚如何转换为 HTML 多个服务检查:
我有这个脚本:
Get-service -Computername SERVER1 -Name *SERVICE1* | ConvertTo-Html -Body "<H2>Service 1 Check</H2> " -Property Name,Status
Get-Service -Computername SERVER2 -name *SERVICE2* | ConvertTo-Html -Body "<br><H2>Service 2 Check</H2> " -Property Name,Status | Out-File c:\servicecheck.htm
这可能吗?