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.
Thanks
Windows BatchActive DirectoryScripting Languages

Avatar of undefined
Last Comment
it-support-at
Avatar of mz3prs
mz3prs
Flag of United States of America image

I think you can add "on error resume next"
Avatar of it-support-at
it-support-at
Flag of Austria image

ASKER

unfortunately this is not available in batch..
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of it-support-at
it-support-at
Flag of Austria image

ASKER

i was already thinking about the ifmember solution, but thought i can solve it without that tool..
Active Directory
Active Directory

Active Directory (AD) is a Microsoft brand for identity-related capabilities. In the on-premises world, Windows Server AD provides a set of identity capabilities and services, and is hugely popular (88% of Fortune 1000 and 95% of enterprises use AD). This topic includes all things Active Directory including DNS, Group Policy, DFS, troubleshooting, ADFS, and all other topics under the Microsoft AD and identity umbrella.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo