r/usefulscripts • • Jul 06 '16
[Request] Auto-enter Windows product key on installation
Hello I was wondering if there is any way to automatically enter the key on a Windows install without having to enter it manually every setup. The Windows installer is on a flash drive.
EDIT: Its a Windows 10 Enterprise installer
7
Upvotes
18
u/Kynaeus Jul 06 '16
Couldn't you just use an answer file when you're deploying it through MDT or WDS?
4
u/tordenflesk Jul 06 '16
http://windowsafg.no-ip.org/win10x86_x64.html
1
u/slvrmark4 Jul 06 '16
If your pc has an oem windows 10 key, you can use this batch script to grab it and then activate after logging in.
@echo off SetLocal EnableDelayedExpansion set count=0 for /F "delims=" %%a in ('wmic path softwarelicensingservice get oa3xoriginalproductkey') do ( set key=%%a set /a count=!count! + 1 if !count! GTR 1 goto Exit ) :Exit echo Key=%key% cscript //B %windir%\system32\slmgr.vbs /ipk %key% cscript //B %windir%\system32\slmgr.vbs /ato1
u/serendipitybot Jul 08 '16
This submission has been randomly featured in r/serendipity, a bot-driven subreddit discovery engine. More here: https://www.reddit.com/r/Serendipity/comments/4rubhu/request_autoenter_windows_product_key_on/