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 ...
18th February 2011, 11:34 AM #1
- Rep Power
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
IDG Tech News
28th February 2011, 12:33 PM #2
- Rep Power
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.
By jamin100 in forum Coding
Last Post: 13th September 2010, 03:29 PM
By Lipjam in forum Windows
Last Post: 2nd December 2009, 08:54 PM
By FN-GM in forum Scripts
Last Post: 18th May 2008, 07:30 PM
By dave.81 in forum Network and Classroom Management
Last Post: 4th March 2008, 12:30 PM
By chalkwellstu in forum Scripts
Last Post: 25th January 2008, 11:53 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)