Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon scripts

Status
Not open for further replies.

funstur

Technical User
Feb 15, 2001
66
GB
I have a problem defining user groups whist attempting to logon.

Rather that have 3 or 4 scripts for users to use I would like to use on script that is able to find out which users are in which users group, so as to map appropriate network drives i.e.

if ingroup("EVERYONEX")
"net use H: \\server\Common /PERSISTENT:no"
"net use T: \\server\APPS /PERSISTENT:no"
"net use P: \\server\Plots /PERSISTENT:no"

SET "PATH=%PATH%P:\;T:\;"
SET "USER=%usernsme%"
SET "SITE=LONDON"
endif

if ingroup("test")
"y:\instA.bat"
endif

I was under the assumption that 'ingroup' was part of NT Servers security policy or in there another way?

 
Try the ifmember command.

Alternatively, since I can't be bothered writing it all again, look at my second post in this thread: thread82-211317

Let me know if theres anything else you need...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top