Discussion Locked

Login Scripts

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to know what is the command line in a batch file(login script) to map drives to specific groups. (ie: in novell it was something like this "IF MEMBER OF "groups" THEN)" but I need it for Windows 2000 login script.

3 replies

by razz2

The Resource kit has a utility called ifmember.exe that tests for
group membership.

This URL has the exact example you need (the second remark on
the page):

http://www.microsoft.com/resources/documentation/
WindowsServ/2003/all/techref/en-us/Default.asp?url=/
Resources/Documentation/windowsserv/2003/all/techref/en-
us/ifmember_remarks.asp

razz

by briandesu

AFAIK, what you want to do is not supported using the standard NET commands. However, this can be readily done using other scripting languages.

I have heard that Kixtart can do what you want to do. Alternatively, you have Windows Script Host (WSH).

Perform a Google search for WSH and Mapping Drives by Group should return numerous responses. The MSDN (Microsoft Developer Network) is also a good place for information relative to WSH.

HTH,

briandesu

This discussion is closed to new replies.