Initial commit
This commit is contained in:
8
Packer/scripts/rearm-windows.ps1
Normal file
8
Packer/scripts/rearm-windows.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
# Replaces "slmgr.vbs /rearm"
|
||||
# https://powershell.org/forums/topic/run-command-quietly-start-process/
|
||||
# https://msdn.microsoft.com/en-us/library/ee957713(v=vs.85).aspx
|
||||
|
||||
Write-Host "Resetting the Windows evaluation timer"
|
||||
|
||||
$x = Get-WmiObject SoftwarelicensingService
|
||||
$x.ReArmWindows()
|
||||
Reference in New Issue
Block a user