vbs scripts to be run as admin

Associate
Joined
18 Jun 2003
Posts
188
Location
Wellington, Somerset
I have a vbs script which adds Domain Users to the Local Administrators group.

The script works fine as an administrator but when ran as a domain user it does not work.

Is there anyway around this?
 
Unfortuanlty no, you either have to already have local administrative priviliages on the machine or be a member of the domain adminstrators group.
 
Can't you run it under a GPO? Run it under the Computer configuration and it will run as local system (ie will have the rights to add to the local admin group)
 
oddjob62 said:
Can't you run it under a GPO? Run it under the Computer configuration and it will run as local system (ie will have the rights to add to the local admin group)

If going down this road, you could use Restricted Groups - designed specifically for this purpose
 
testa12 said:
If going down this road, you could use Restricted Groups - designed specifically for this purpose

And restricted groupsis............. /off i go too look :)
 
Back
Top Bottom