+ Post New Thread
Results 1 to 9 of 9
Windows 7 Thread, Another Windows 7 problem :( in Technical; I have a KMS server running, some of my client machines activate fine off of it and other do not ...
  1. #1
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,059
    Thank Post
    112
    Thanked 63 Times in 44 Posts
    Rep Power
    54

    Another Windows 7 problem :(

    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.

    Code:
    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

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,208
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    try this as a STARTUP Script on the pcs not a user script they run as full admin
    Code:
    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

  3. Thanks to sted from:

    Disease (11th September 2013)

  4. #3
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,059
    Thank Post
    112
    Thanked 63 Times in 44 Posts
    Rep Power
    54
    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

  5. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,390
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    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?

  6. #5
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,059
    Thank Post
    112
    Thanked 63 Times in 44 Posts
    Rep Power
    54
    Read and execute permissions on the share, add wait for network but it still did not apply.

  7. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,390
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    Read and execute permissions for what group? Thanks

  8. #7
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,059
    Thank Post
    112
    Thanked 63 Times in 44 Posts
    Rep Power
    54
    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

  9. #8
    Disease's Avatar
    Join Date
    Jan 2006
    Posts
    1,059
    Thank Post
    112
    Thanked 63 Times in 44 Posts
    Rep Power
    54
    Just added SYSTEM group FC to the share and it now works

    Thanks Guys

  10. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,390
    Thank Post
    797
    Thanked 1,588 Times in 1,391 Posts
    Blog Entries
    10
    Rep Power
    427
    Add domain computers group in with Read and execute permissions

    EDIT: Just read the last post

SHARE:
+ Post New Thread

Similar Threads

  1. Another Windows 7 vs Linux Story [And Apple]
    By DaveP in forum Windows 7
    Replies: 25
    Last Post: 29th October 2009, 09:33 PM
  2. Another OWA problem
    By Jobos in forum Windows
    Replies: 4
    Last Post: 18th May 2009, 03:07 PM
  3. another exchange problem!
    By rh91uk in forum Windows
    Replies: 3
    Last Post: 13th December 2008, 07:17 PM
  4. Another Censornet Problem
    By HallX in forum *nix
    Replies: 7
    Last Post: 20th March 2007, 03:33 PM
  5. Another Windows Exploit?
    By secman in forum Windows
    Replies: 4
    Last Post: 28th November 2005, 10:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •