ifmember login script inquiry

Posted on 2009-02-12
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 82

    Accepted Solution

    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

    Thank you very much.  This worked and helped quite well.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
    Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now