FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Activate Windows Script

Activate Windows Script 16 Nov 2017 18:52 #2806

  • ECS Tech Services
  • ECS Tech Services's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 7
  • Thank you received: 0
Is there a proper way to activate Windows after the image process has completed? I tried using the built in vbs script but since the window it creates never returns a response the fileset sits in activating for eternity.

Activate Windows Script 16 Nov 2017 19:23 #2807

  • Bao Tran
  • Bao Tran's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 103
  • Karma: 4
  • Thank you received: 13
Can you please post your script in its entirety minus the confidential stuff like serial numbers and such. Just replace them with placeholders, e.g. like <Windows_Serial> or something like that.

Thanks.

Activate Windows Script 17 Nov 2017 14:18 #2808

  • ECS Tech Services
  • ECS Tech Services's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 7
  • Thank you received: 0
We are trying to use the built in Windows VBS script so our script looks like this.

slmgr.vbs /ato

exit 0

It is pretty simple but it looks like the VBS script never actually responds back so the entire script never gets the exit 0 success code.

Activate Windows Script 17 Nov 2017 20:05 #2809

  • Bao Tran
  • Bao Tran's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 103
  • Karma: 4
  • Thank you received: 13
If you put that commandline in a BAT file and run it from a CMD window it will pop up a dialog confirming that Windows was activated successfully. That's why the fileset sits in activating status forever. It's displaying a dialog to the system account, since that's the user context the script runs under. Unfortunately you can't log into the client as the system user to dismiss this dialog so the activation can finish. Try using this for the commandline instead. It should run silently.

cscript //B "%windir%\system32\slmgr.vbs" /ato
The following user(s) said Thank You: ECS Tech Services

Activate Windows Script 22 Nov 2017 14:19 #2813

  • ECS Tech Services
  • ECS Tech Services's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 7
  • Thank you received: 0
Thanks for the help. That worked!
  • Page:
  • 1