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