windows powershell远程激活windows xud6 06 2月 2020 Share $computer = gc env:computername $key = "激活密匙" $service = get-wmiObject -query "select * from SoftwareLicensingService" -computername $computer $service.InstallProductKey($key) $service.RefreshLicenseStatus()