Files
DetectionLab/Packer/scripts/rearm-windows.ps1
2019-05-11 01:42:35 -07:00

9 lines
285 B
PowerShell
Executable File

# 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()