Page 2 of 2 <12
Topic Options
#41043 - 2003-06-05 10:14 PM Re: Adding user to local administrator
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
actually, your script can't work.

if user is not in local admin group, he can't put himself there. period.

so your script can't work at all.
_________________________
!

download KiXnet

Top
#41044 - 2003-06-05 10:26 PM Re: Adding user to local administrator
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
ok... what you need to do is use a remote admin script to remotely add "domain users" to the administrators group on each wksta.

ignore everything from before...

See:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=007285

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000319

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=13;t=000173#000020
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#41045 - 2003-09-04 11:25 PM Re: Adding user to local administrator
rick_coughlin Offline
Fresh Scripter

Registered: 2000-11-15
Posts: 7
Loc: Gaithersburg, MD, USA
What you need to do is add the special local Interactive group to the local Administrators group.

Only locally logged in users have thier security tokens added to the special Interactive group.

You will then have a member in the group that looks something like:

NT AUTHORITY\INTERACTIVE (S-1-5-4)

For the NT 4.0 machines, remotely manage them from a W2K machine to add the special interactive group.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 476 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.054 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org