Solved Windows IT Pro Blog: Keep Windows activation automation working with PowerShell


garlin

Well-known member
Guru
VIP
Local time
11:19 AM
Posts
7,299
OS
Windows 7
If you're wondering what replaces slmgr.vbs for activation (after VBS is retired), here's the answer:

Replace common slmgr.vbs tasks with PowerShell

The following examples show the intended mapping for three common tasks. Validate the final command names and parameters against the published OSLicense PowerShell reference before using them in production.

TaskCurrent commandOSLicense PowerShell equivalent
Activate Windowsslmgr.vbs /atoInvoke-OSLicense -ActivateOnline
Install a product keyslmgr.vbs /ipk <key>Invoke-OSLicense -InstallProductKey <key>
View licensing statusslmgr.vbs /dlvGet-OSLicenseInfo
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
I have been wondering what was going to happen with slmgr. Thanks, @garlin!
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2
OS
Windows 11 Enterprise 25H2
Please follow the docs link to... 404. I guess we'll all have to wonder some more.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Same thing happens when I click your name at the bottom. You don't exist either, sorry to tell you.
 

My Computer My Computer

At a glance

Windows 11 Enterprise 25H2
OS
Windows 11 Enterprise 25H2
Back
Top Bottom