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 Script to add mapped drive for certain users only

Status
Not open for further replies.

gbl

MIS
Sep 6, 2001
262
CA
I have a logon bat script which maps letters to shares on our server. All users current get these mappings since the batch file simply uses a series of "Net use" Commands. Now I need to add a mapping that will apply to users that are in a certain group. I have heard of the "ismember" function but how is it used in this context in a simple batch file? Do I have to use WSH or vbscripting or can I work with the simple batch file I am using now?
Thanks for any help.
 
You can use ismember.exe download from MS and add to the batch file or you should really consider using .vbs files for your scripts they are much better.

but I would suggest ismember.exe command in a batch file.
 
Thanks for the plug Claudius.

I don't like to use ifmember, I find it is slower than using vbscript.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top