added quotes for office vbs script

This commit is contained in:
2018-11-17 11:24:01 -05:00
parent 1ca9ce1548
commit 7951e4ccec

View File

@@ -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