From 7951e4ccecc4768528db1138fbdba01feb1e206d Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Sat, 17 Nov 2018 11:24:01 -0500 Subject: [PATCH] added quotes for office vbs script --- kms.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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