Tuesday, June 04, 2013

Quick Script: Is Windows Activated?


  #Chesk Activation status
    if((cscript "$env:SystemRoot\system32\slmgr.vbs" -dli all) -match "License Status: Licensed"){
      Write-Host "[X] Activated Windows" 
    }else{
      Write-Host "[ ] Activated Windows"
    } 

No comments:

Post a Comment