Computing.Net > Forums > Windows NT > map network drive by global group

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

map network drive by global group

Reply to Message Icon

Name: Silvano Pegoraro
Date: May 8, 2001 at 02:27:22 Pacific
Comment:

What is the correct command line to place in a logon script for doing the following. I want the script to check if a user belong to a certain global group if the global group is correct then I want it to map to a share. If it is not the correct username I want it to ignore the map to the share.



Sponsored Link
Ads by Google

Response Number 1
Name: Thorsten
Date: May 8, 2001 at 13:03:34 Pacific
Reply:

Hi Silvano,
that's very simple.
Copy the ifmember.exe from the ressource kit to the netlogon folder.
Insert the following lines in your login script and it run. If you have more than one Domain Controller copy both files to all DCs

net use /persistent:no >>%logdev%
%LOGONSERVER%\netlogon\ifmember.exe GROUP
if not errorlevel 1 GOTO NEXT
if exist L:\nul net use L: /d /y >>%logdev%
net use L: \\Server\SHARE >>%logdev%
:NEXT


If you have more Questins send me a mail.

Ciao
Thorsten


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: map network drive by global group

'Map Network Drive' list www.computing.net/answers/windows-nt/map-network-drive-list/18151.html

Map Network Drive Path Names www.computing.net/answers/windows-nt/map-network-drive-path-names/14878.html

Disable Map Network Drive in Office 97 www.computing.net/answers/windows-nt/disable-map-network-drive-in-office-97/1357.html