How can I run cmd script in elavated mode for activating Win7 on KACE 2000 without user actions?
I have some problems with creating an activation script for windows 7 (mak license).
I have created an Postinstallation Tasks for this, with the following bat script:
"REM Configure Client using VL MAK
cscript c:\windows\system32\slmgr.vbs /ipk <product key>
REM Activate the machine using the VL MAK
cscript c:\windows\system32\slmgr.vbs /ato
When I use this in the scripted installation it don't work. The reason for this is that the script must start elavated mode.
When I test the script (created a bat file on the computer) I need to run the script as administrator.
I can't find a solution for this, but I know I'm not the first one with this problem.
Please could someone help me wit this?
Or if there is a better way to activate windos 7 via Kace 2000 postinstallation task, please tell me.
Thanks in advance