1
我寫了一個PowerShell命令中的Hyper-V HV的審計服務,並命令來查詢服務
$Auditservices = get-service -computername $ComputerName -name "*iscsi*","*winrm*","*scvmm*","*vmms*","vss"| Select-Object Status, Name, MachineName
而且輸出相同的顯示像下面 MSiSCSI SCVMMAgent VMMS VSS WinRM的運行運行運行運行運行
Is there anyway we can change the output to this format ?
MSiSCSI,Running
SCVMMAgent,Running
vmms,Running
vss,Running
WinRM,Running
完美的作品。非常感謝 – Sandeep