slmgr.vbs commnd

Messages

1.How to use it?

Run win+R→input "CMD"→click "enter"

Type in  

①"slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx" [install product key(replace existing key)];

②"slmgr.vbs -upk"  [Uninstall product key]

2.Parameter:

"ipk"  = "Install product key (replaces existing key)"

"upk"= "Uninstall product key"

 "ato"= "Activate Windows"

"dli"= "Display license information (default: current license)"

"dlv"= "Display detailed license information (default: current license)"

"xpr"= "Expiration date for current license state"

 "cpky"= "Clear product key from the registry (prevents disclosure attacks)"

"ilc" = "Install license"

"rilc" = "Re-install system license files"

"dti" = "Display Installation ID for offline activation"

"atp"= "Activate product with user-provided Confirmation ID"

"rearm" = "Reset the licensing status of the machine"

"rearm-app"= "Reset the licensing status of the given app"

"rearm-sku" = "Reset the licensing status of the given sku"

KMS options

"skms"= "Set the name and/or the port for the KMS computer this machine will use. IPv6 address must be specified in the format [hostname]:port"

"ckms"= "Clear name of KMS computer used (sets the port to the default)"

"skms-domain"= "Set the specific DNS domain in which all KMS SRV records can be found. This setting has no effect if the specific single KMS host is set via /skms option."

"ckms-domain"= "Clear the specific DNS domain in which all KMS SRV records can be found. The specific KMS host will be used if set via /skms. Otherwise default KMS auto-discovery will be used."

"skhc"= "Enable KMS host caching"

 "ckhc" = "Disable KMS host caching"

"sai"= "Set interval (minutes) for unactivated clients to attempt KMS connection. The activation interval must be between 15 minutes (min) and 30 days (max) although the default (2 hours) is recommended."

 "sri"= "Set renewal interval (minutes) for activated clients to attempt KMS connection. The renewal interval must be between 15 minutes (min) and 30 days (max) although the default (7 days) is recommended."

"sprt"= "Set TCP port KMS will use to communicate with clients"

"sdns"= "Enable DNS publishing by KMS (default)"

"cdns"= "Disable DNS publishing by KMS"

 "spri" = "Set KMS priority to normal (default)"

 "cpri"= "Set KMS priority to low"

"act-type" = "Set activation type to 1 (for AD) or 2 (for KMS) or 3 (for Token) or 0 (for all)."

Token-based Activation options

 "lil" = "List installed Token-based Activation Issuance Licenses"

"ril" = "Remove installed Token-based Activation Issuance License"

"ltc"= "List Token-based Activation Certificates"

"fta"= "Force Token-based Activation"

 Active Directory Activation options

"ad-activation-online"= "Activate AD (Active Directory) forest with user-provided product key"

 "ad-activation-get-iid" = "Display Installation ID for AD (Active Directory) forest"

 "ad-activation-apply-cid" = "Activate AD (Active Directory) forest with user-provided product key and Confirmation ID"

"ao-list"= "Display Activation Objects in AD (Active Directory)"

 "del-ao"= "Delete Activation Objects in AD (Active Directory) for user-provided Activation Object"

你可能感兴趣的:(slmgr.vbs commnd)