diff --git a/kms.ps1 b/kms.ps1 index d140d84..9d245dc 100644 --- a/kms.ps1 +++ b/kms.ps1 @@ -9,11 +9,11 @@ c:\Windows\System32\cscript.exe /nologo c:\Windows\System32\slmgr.vbs /ipk CB7KF c:\Windows\System32\cscript.exe /nologo c:\Windows\System32\slmgr.vbs /ato # Office 2019 -c:\Windows\System32\cscript.exe /nologo C:\Program Files\Microsoft Office\Office16\ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP +c:\Windows\System32\cscript.exe /nologo "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP # Set KMS Host -c:\Windows\System32\cscript.exe /nologo C:\Program Files\Microsoft Office\Office16\ospp.vbs /sethst:gauntkms.home.johnhgaunt.com +c:\Windows\System32\cscript.exe /nologo "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /sethst:gauntkms.home.johnhgaunt.com # Activate it -c:\Windows\System32\cscript.exe /nologo C:\Program Files\Microsoft Office\Office16\ospp.vbs /act +c:\Windows\System32\cscript.exe /nologo "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /act # https://stackoverflow.com/questions/48592120/how-do-i-find-out-from-powershell-if-i-am-on-a-server-or-workstation $osInfo = Get-WmiObject -Class Win32_OperatingSystem