Disease Posted September 11, 2013 Posted September 11, 2013 I have a KMS server running, some of my client machines activate fine off of it and other do not seem to activate. I have written a batch file to manually activate certain machines but I want to automate the process silently when a user logs in, the problem I have is it requires elevated privs to complete and in win 7 you can not run batch files with E-Privs apparantly. the batch file I am using contains commands to specify the KMS server to use, then change the key (even though it should have the built in KMS Key) and then finally the activate command. echo off %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /skms 10.xx.xx.xx:xxxx %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /ipk xxxx-xxxx-xxxx-xxxx-xxxx %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /ato Anyone know of another way to silently complete this task? Thanks
sted Posted September 11, 2013 Posted September 11, 2013 try this as a STARTUP Script on the pcs not a user script they run as full admin if exist c:\kmsdone.txt goto end %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /skms 10.xx.xx.xx:xxxx %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /ipk xxxx-xxxx-xxxx-xxxx-xxxx %SystemDrive%\Windows\System32\cscript.exe %windir%\system32\slmgr.vbs /ato copy \\server\share\kmsdone.txt c:\kmsdone.txt /y :end 1
Disease Posted September 11, 2013 Author Posted September 11, 2013 I ran the batch file as start up on a computer policy but it didn't seem to run, no file was created, if I just run the batch file while logged in as admin it works and everything is dandy. Does not seem to want to run at start up though
FN-GM Posted September 11, 2013 Posted September 11, 2013 Enable this GPO on the machine should make it run Computer Configuration > Policies > Admin Templates > System > Logon > "Always Wait for the network at computer startup and logon" What permissions have you setup on the share the script lives in? Or is it in Netlogon?
Disease Posted September 11, 2013 Author Posted September 11, 2013 Read and execute permissions on the share, add wait for network but it still did not apply.
FN-GM Posted September 11, 2013 Posted September 11, 2013 Read and execute permissions for what group? Thanks
Disease Posted September 11, 2013 Author Posted September 11, 2013 Sorry about that Students and staff and everyone groups have RO&E Domain admins have FC as well as local admins Domain Users RO&E Thanks
Disease Posted September 11, 2013 Author Posted September 11, 2013 Just added SYSTEM group FC to the share and it now works Thanks Guys
FN-GM Posted September 11, 2013 Posted September 11, 2013 Add domain computers group in with Read and execute permissions EDIT: Just read the last post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now