Re: Script that detects group membership
- From: "wocka" <ambition80@xxxxxxxxxxx>
- Date: Thu, 9 Jun 2005 09:43:29 +1000
Gidday,
I use the IFMember.exe from the Windows resourse kit and a DOS script.
Place the IFMember.exe in the \\server\netlogon share.
Example of script is:
REM
#############################################################################################
REM # IFMember shares
#
REM # These shares are mapped on AD Group Membership
#
REM
#############################################################################################
%logonserver%\netlogon\ifmember.exe "DOMAINNAME\AntiVirus"
if NOT ERRORLEVEL 1 goto admin
copy \\server3\vphome\GRC.dat c:"\Documents and Settings\All
Users\Application Data\Symantec\Symantec AntiVirus Corporate Edition\7.5"
CLS
goto admin
:admin
%logonserver%\netlogon\ifmember.exe "DOMAINNAME\Admin"
if NOT ERRORLEVEL 1 goto next
net use m: \\server1\c$
net use n: \\server1\d$
net use o: \\server2\C$
net use p: \\server2\e$
net use q: \\server2\f$
CLS
goto next
:next
"Josh" <Josh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:564CAAC0-6F13-42C9-AB7B-417C0CA8C5A6@xxxxxxxxxxxxxxxx
>I am looking for a script that detects whether or not a user in AD is a
> member of a group. If that use is a member of that group I want a file
> copy
> to begin. Is this possible?
.
- References:
- Script that detects group membership
- From: Josh
- Script that detects group membership
- Prev by Date: Script that detects group membership
- Next by Date: Re: Finding users of a specific group and listing memberships of t
- Previous by thread: Script that detects group membership
- Next by thread: Re: Script that detects group membership
- Index(es):
Relevant Pages
|