This commit is contained in:
Zack Meier
2026-04-15 15:42:41 -05:00
parent 74edcc4d9a
commit 03dba08135
146 changed files with 9119 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
##### Fix locally, run as admin (or system)
# get current status
cscript C:\windows\system32\slmgr.vbs -dli
# set KMS server and activate
cscript C:\windows\system32\slmgr.vbs -skms kms.nd.gov
cscript C:\windows\system32\slmgr.vbs -ato
##### Fix remotely, will prompt for PRV credentials
$Credential = Get-Credential -Message "Enter your PRV credentials"
# Get current status
Invoke-Command -Credential $Credential -ComputerName server01,server02,server03 -ScriptBlock {
cscript C:\windows\system32\slmgr.vbs -dli
}
# Set KMS server and activate
Invoke-Command -Credential $Credential -ComputerName server01,server02,server03 -ScriptBlock {
cscript C:\windows\system32\slmgr.vbs -skms kms.nd.gov
cscript C:\windows\system32\slmgr.vbs -ato
}