#50423 - 2000-06-28 03:18 PM
@PRIV and local admin rights
|
Porquerizo
Fresh Scripter
Registered: 2000-05-16
Posts: 25
Loc: Leuven, Belgium
|
Hi,I use @priv to check if the user have admin rights in order to execute the Superdat from McAfee. I created a Global Group "Admin WS" and added this group into the Local Group "Administrator". It is not working If I check with: If UCASE("@Priv")="ADMIN" $Selection = MessageBox($Msg1, $MsgTitle , 64 ) shell $SdatPath + $SdatName + " /silent /logfile " + $ReportPath + @wksta + ".log" $LastAction="Ran $SdatPath$SdatName - Error: " + @error Else $Selection = MessageBox($Msg2 , $MsgTitle , 48) $LastAction="Scan Engine has to be updated" Endif Any idea how I can make it work???
_________________________
Cheers,
Porq.
|
|
Top
|
|
|
|
#50425 - 2000-06-29 10:21 AM
Re: @PRIV and local admin rights
|
Porquerizo
Fresh Scripter
Registered: 2000-05-16
Posts: 25
Loc: Leuven, Belgium
|
Hi BoxKite,sorry maybe I wasn't clear in my first post. The line --If UCASE("@Priv")="ADMIN"-- is the problem, because the user have to be admin on the DOMAIN, but I want to know a solution to test if the user has LOCAL admin rights. So: How to test if a user have LOCAL admin rights. Thanks and Cheers from Belgium
_________________________
Cheers,
Porq.
|
|
Top
|
|
|
|
#50428 - 2000-07-01 12:35 AM
Re: @PRIV and local admin rights
|
Porquerizo
Fresh Scripter
Registered: 2000-05-16
Posts: 25
Loc: Leuven, Belgium
|
Thanks a lot Bryce - it works.I was doubting if I saw your solution, because my users are not member of the local group "Administrators" but member of the global group "Local Admin WS" which is itself member of the local group "Administrators". So, actualy what I wanted to say is, that even if the user is bidirect member: YOUR SCRIPT IS WORKING Thanks a lot - this problem kept me busy for a few days. Cheers, Mario
_________________________
Cheers,
Porq.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 837 anonymous users online.
|
|
|