Avatar of it-support-at
it-support-atFlag for Austria asked on

net use skip if credentials don't match

Dear All,

I do have a netlogon script which connects some network drives, e.g.
net use o: \\bananas01\commercial
net use o: \\bananas01\technical

The Shares are permitted only for some special groups, If this user is not member of the commercial group the netlogon script will stop and ask for user credentials:

Enter the user name for 'bananas01':

How can i modify the net use comment to force it, for skipping if there is a credential issue.
Windows BatchActive DirectoryScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon

I think you can add "on error resume next"

unfortunately this is not available in batch..
Chris Dent

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

i was already thinking about the ifmember solution, but thought i can solve it without that tool..
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.