+ Post New Thread
Results 1 to 2 of 2
Windows 7 Thread, apply admin right to vbs script in Technical; I've just taken over at a Primary school that has a 2008 R2 Server and 90 win 7 clients all ...
  1. #1

    Join Date
    Oct 2009
    Location
    Coalville
    Posts
    54
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    apply admin right to vbs script

    I've just taken over at a Primary school that has a 2008 R2 Server and 90 win 7 clients all on static ip's.

    I need to enable DHCP on all machines and I was hoping to achieve this by using GPO.

    I have a bat files that runs netsh commands which works on XP and only works on win 7 when I 'Run as administrator' needless to say when I deploy it via GPO nothing happens.

    Is there any way I can run the script with the admin credentials?

    Thanks in advance

    Tony

  2. #2

    Join Date
    Feb 2011
    Location
    Guidepost
    Posts
    18
    Thank Post
    5
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Are you setting it as a computer startup script in GP or a user logon script?

    My understanding of it is if it is applied by GP as a computer startup script it should be running with system privilages which should get the job done. If it still does not work I think you would need a vbs script that elevates its permisions before preforming the task.

    Hope this helps.

SHARE:
+ Post New Thread

Similar Threads

  1. autorun to VBS / other script . . . . . .
    By jamin100 in forum Coding
    Replies: 6
    Last Post: 13th September 2010, 02:29 PM
  2. VBS Script
    By Lipjam in forum Windows
    Replies: 4
    Last Post: 2nd December 2009, 07:54 PM
  3. Sub within a sub - VBS Script
    By FN-GM in forum Scripts
    Replies: 5
    Last Post: 18th May 2008, 06:30 PM
  4. Ranger Admin - Error on apply
    By dave.81 in forum Network and Classroom Management
    Replies: 1
    Last Post: 4th March 2008, 11:30 AM
  5. Trace a VBS Script
    By chalkwellstu in forum Scripts
    Replies: 2
    Last Post: 25th January 2008, 10:53 AM

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
  •