Skip to content

Getting SCCM 2012 To Activate Windows 7

Featured Replies

Hi forum,

 

I've added this command into my task sequence but unfortunately I still have to log in after the build has completed and click on Activate. I don't need to enter a licence key as that's in the T/S. When I run this command from a Run command it says it needs elevated privileges to run. Any idea how incorporate this into the command?

 

cscript.exe %windir%\system32\slmgr.vbs /ato

 

Thanks

 

 

try this

cscript //b c:\windows\system32\slmgr.vbs /ato

 

let me know whats the result please

 

~MOhanad

  • Author

try this

cscript //b c:\windows\system32\slmgr.vbs /ato

 

let me know whats the result please

 

~MOhanad

Hi Mohanad. Thanks for the reply. As coincidence may have it I was just trying that and unfortunately I get the same result. (Still says 3 days until automatic activation. Activate windows now) If I activate manually it activates successfully.

Are you sure, you've typed the lincence key correct then? I'm using this command to activate my Windows 7 clients. What type of account do you use? You need to use an account with admin rights.

 

Do you have a firewall protecting your environment. (Not the built-in Windows 7 firewall)?

  • Author

Are you sure, you've typed the lincence key correct then? I'm using this command to activate my Windows 7 clients. What type of account do you use? You need to use an account with admin rights.

 

Do you have a firewall protecting your environment. (Not the built-in Windows 7 firewall)?

Hi. Confirmed the key is fine. It activates after it's built if I click on activate (without having to enter the key.) When you mention account do you have to specify in the T/S which account to use to run cscript //b c:\windows\system32\slmgr.vbs /ato? At the mo it's blank so I'm guessing it uses the default account that SCCM uses.

 

Just tried running the script from a run command and nothing happens. No message or anything. If I run the same command without the //b part it tells me access is denied and require elevated privileges

make sure the activation step is after first reboot i add it after install OS and all application... and use account have local admin like your help desk account see attached picture.

 

post-20702-0-37516100-1446044370.jpg

I use the following ::: cscript.exe C:\Windows\System32\slmgr.vbs /ato

 

 

I make sure that I reboot into windows in a step first.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.