added quotes for office vbs script
This commit is contained in:
6
kms.ps1
6
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
|
c:\Windows\System32\cscript.exe /nologo c:\Windows\System32\slmgr.vbs /ato
|
||||||
|
|
||||||
# Office 2019
|
# 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
|
# 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
|
# 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
|
# 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
|
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
|
||||||
|
|||||||
Reference in New Issue
Block a user