Windows activation command line

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sagopa89
Posts: 2
Joined: 09 Jul 2019 01:51

Windows activation command line

#1 Post by sagopa89 » 09 Jul 2019 02:15

Hi,

I'm looking for a command to open the following window from a batch file (Windows 10), see picture 2.
When I run

Code: Select all

start ms-settings:activation
I can open the Windows Activation window from Settings. How can I get directly open the red bordered windows on picture 2?

We need this for a batch script to force a troubleshoot (on more than 100 pcs a month). It is needed to activate Windows 10 Pro.
Alternatively, Powershell would also be a solution.

It would be even better if the window did not appear at all and the output would take place on the console. But that's not a must. Only if it is possible.

Thank you for any help..
Attachments
act2 - Kopie.png
act2 - Kopie.png (35.1 KiB) Viewed 4990 times
act1 - Kopie.png
act1 - Kopie.png (210.96 KiB) Viewed 4990 times

penpen
Expert
Posts: 1991
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Windows activation command line

#2 Post by penpen » 09 Jul 2019 08:13

Depending on what your goal is "slmgr.vbs" may help you:
https://ss64.com/nt/slmgr.html


penpen

sagopa89
Posts: 2
Joined: 09 Jul 2019 01:51

Re: Windows activation command line

#3 Post by sagopa89 » 10 Jul 2019 07:15

With "slmgr.vbs /ato" I can activate Windows if I don't have any problems. I tried many options of slmgr. But I need the troubleshoot window. Because of security policies only this can solve the problem.

Post Reply