Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script: Check activation status and activate if not

$
0
0

Hello,

I know a script like this must exist out there, but I have been unable to find it through searching.

What I'm looking for is a script that will run as a machine start up script, check the license activation status (Win 7 Ent), and if already activated do nothing, but if not activated, run the command line - slmgr.vbs /ato

I have zero script knowledge and my feeble attempts to write a .bat using the IF condition fail miserably.

If you have a link to a script or know what the syntax should be for a statement that asks "is Windows activated?" to create such a .bat, I would be extremely grateful.

Thanks in advance.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>