摘要:
首先需要建立 连接的证书,在“password”处,替换成登陆的密码$password = (ConvertTo-SecureString "password" -AsPlainText -Force),$crd = (New-Object -TypeName system.management.automation.pscredential -ArgumentList ".\administrator",$password),然后凑是去连接 远程机器的IP或计算机名 $objWMI =Get-WmiObject -Class Win32_operati 阅读全文