[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


ifmember login script inquiry

Posted on 2009-02-12
Medium Priority
Last Modified: 2012-05-06
I have the following login script which is used to map drives based on a couple of groups and is part of a group policy in AD.  I  wanted to clarify a modification I would like to make.  On the line that says the following -- "ifmember HelpdeskFACL" -- I would like to add another group name in addition to HelpdeskFACL.  Would I just add another name next to it with a space between or does there need to be a comma or delimiter or otherwise?  Just wanted to make sure.  Thanks in advance for your time.

net use H: \\FACMAN2\HOME\%UserName%
net use G: \\FACMAN2\APP
net use P: \\FACMAN2\PUB
net use I: /delete
net use V: /delete

ifmember HelpdeskFACL
if not errorlevel 1 goto fms
net use I: \\FACMAN2\DIST /persistent:yes
goto fms

ifmember FACL-FMSystem-Users
if not errorlevel 1 goto run
net use V: \\FMWEB\untfminteract /persistent:yes
goto run

"G:\Scripts\Host Table Update\script.exe"
goto quit

Question by:trishajay
LVL 85

Accepted Solution

oBdA earned 500 total points
ID: 23625235
You'd need to do that in two different commands.
ifmember TheOtherGroup
if errorlevel 1 goto HelpDeskFACL
ifmember HelpdeskFACL
if not errorlevel 1 goto fms
net use I: \\FACMAN2\DIST /persistent:yes
goto fms

Open in new window


Author Closing Comment

ID: 31546086
Thank you very much.  This worked and helped quite well.

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A hard and fast method for reducing Active Directory Administrators members.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question