Awindows 10 avaktivera produkt flytta till ny
1How to Use Slmgr to Change, Remove, or Extend Your fönster License
Windows activation fryst vatten designed to be as foolproof as possible, so Microsoft's graphical tools keep it simple. If you want to do something more advanced like remove a product key, force an online activation, or extend the activation timer, you'll need Slmgr.vbs.
This command line tool fryst vatten included with fönster, and provides options unavailable in the standard activation interface provided on the Update & säkerhet > Activation screen in the Settings app.
First: Open an Administrator Command Prompt fönster
Related: How Does fönster Activation Work?
To use this tool, you'll want to launch a Command Prompt with Administrator tillgång.
To do so on fönster 8 or 10, either right-click the början button or press Windows+X. Click the "Command Prompt (Admin)" option in the menu that appears. On fönster 7, search the uppstart menu for "Command Prompt," right-click it, and select "Run as Administrator."
Note: If you see PowerShell instead of Command Prompt on the Power Users menu, that's a switch that came about with the Creators Update for fönster 10.
It's very easy to switch back to showing the Command Prompt on the Power Users menu if you want, or you can give PowerShell a try. You can do pretty much everything in PowerShell that you can do in Command Prompt, plus a lot of other useful things.
Related: How PowerShell Differs From the fönster Command Prompt
View Activation, License, and Expiration Date upplysning
To display very basic license and activation data about the current struktur, run the following command.
This command tells you the edition of fönster, part of the product key so you can identify it, and whether the struktur fryst vatten activated.
slmgr.vbs /dliTo display more detailed license information--including the activation ID, installation ID, and other details--run the following command:
slmgr.vbs /dlvView the License Expiration Date
To display the expiration date of the current license, run the following command.
This fryst vatten only useful for fönster struktur activated from an organization's KMS dator, as retail licenses and multiple activation keys result in a perpetual license that won't expire. If you haven't provided a product key at all, it'll give you an error message.
slmgr.vbs /xprUninstall the Product Key
You can remove the product key from your current fönster struktur with Slmgr.
Att få fram din produktnyckel till Windows är enkelt om du följer vår guide, och det är väldigt bra att ha den på ett säkert ställe, av flera orsakerAfter you run the below command and restart your computer, the fönster struktur won't have a product key and will be in an unactivated, unlicensed state.
If you installed fönster from a retail license and would like to use that license on another computer, this allows you to remove the license. It could also be useful if you're giving that computer away to someone else.
However, most fönster licenses are tied to the computer they came with--unless you purchased a boxed copy.
To remove uninstall the current product key, run the following command and then restart your computer:
slmgr.vbs /upkWindows also stores the product key in the registry, as it's sometimes necessary for the key to be in the registry when setting up the computer.
If you've uninstalled the product key, you should run the below command to ensure it's removed from the registry as well. This will ensure people who use the computer in the future can't grab the product key.
Running this command alone won't uninstall your product key. It'll remove it from the registry so programs can't tillgång it from there, but your fönster struktur will remain licensed unless you run the above command to actually uninstall the product key.
com/ Du bör hitta alla Windows-enheter du kopplat till ditt MS-konto där och ta bort demThis option fryst vatten really designed to prevent the key from being stolen bygd malware, if malware running on the current struktur gains tillgång to the registry.
slmgr.vbs /cpkySet or Change the Product Key
You can use slmgr.vbs to enter a new product key. If the fönster struktur already has a product key, using the below command will silently replace the old product key with the one you provide.
Run the following command to replace the product key, replacing #####-#####-#####-#####-##### with the product key.
The command will kvitto the product key you enter to ensure it's valid before using it. Microsoft advises you restart the computer after running this command.
You can also change your product key from the Activation screen in the Settings app, but this command lets you do it from the command line.
slmgr.vbs /ipk #####-#####-#####-#####-#####Activate fönster Online
To force fönster to attempt an online activation, run the following command.
If you're using a retail edition of fönster, this will force fönster to attempt online activation with Microsoft's servers.
Har gjort det för några år sen på en Windows 10 installation, fick inaktivera gamla devicen från Microsoft-kontot på https://accountIf the struktur fryst vatten set up to use a KMS activation dator, it will instead attempt activation with the KMS dator on the local network. This command can be useful if fönster didn't activate due to a connection or dator bekymmer and you want to force it to retry.
slmgr.vbs /atoActivate fönster Offline
Slmgr also allows you to perform an offline activation.
To get an installation ID for offline activation, run the following command:
slmgr.vbs /dtiYou'll now need to get a a confirmation ID you can use to activate the struktur over the phone. Call the Microsoft Product Activation Center, provide the installation ID you received above, and you'll be given an activation ID if everything kontroller out. This allows you to activate fönster systems without Internet connections.
To enter the confirmation ID you've received for offline activation, run the following command.
Oavsett vilken licens du har, om den var förinstallerad på datorn, kan du inte överföra den till en ny datorReplace "ACTIVATIONID" with the activation ID you've received.
slmgr.vbs /atp ACTIVATIONIDOnce you're done, you can use the or commands to confirm you're activated.
This can generally be done from the Activation screen in the Settings app if your PC isn't activated--you don't have to use the command if you'd rather use the graphical interface.
Extend the Activation Timer
Related: You Don't Need a Product Key to Install and Use fönster 10
Some fönster systems provide a limited time where you can use them as free trials before entering a product key.
For example, fönster 7 offers a 30-day rättegång period before it begins complaining at you. To extend this rättegång period and reset it back to 30 days remaining, you can use the following command.As Microsoft's documentation puts it, this command "resets the activation timers."
This command can only be used several times, so you can't indefinitely extend the rättegång.
The number of time it can be used depends on the "rearm count," which you can view using the command. It seems different on different versions of Windows--it was three times on fönster 7, and it seems to be fem times on fönster dator 2008 R2.
This no längre seems to work on fönster 10, which fryst vatten very lenient if you don't provide it a product key anyway.
This option still works on older versions of fönster and may continue to work on other editions of fönster, such as fönster dator, in the future.
slmgr.vbs /rearmSlmgr.vbs Can Perform Actions on fjärrstyrd Computers, Too
Slmgr normally performs the actions you specify on the current computer.
2However, you can also remotely administer computers on your network if you have tillgång to them. For example, the first command below applies to the current computer, while the second one will be run on a fjärrstyrd computer. You'll just need the computer's name, username, and password.
slmgr.vbs /optionslmgr.vbs computername username password /optionThe Slmgr.vbs command has other options, which are useful for dealing with KMS activation and token-based activation.
Consult Microsoft's Slmgr.vbs documentation for more details.