How to "ignore" username and password prompt in net use
- by Mattisdada
I have at the moment a logon.cmd script, that I'm using to map network drives to the users profile. It looks like this:
::Onboarding
net use m: /delete
net use m: \\BOB\onboarding
::Bookings
net use n: /delete
net use n: \\BOB\bookings
::Accounts
net use j: /delete
net use j: \\BOB\accounts
It works fine up until it gets up to a folder that the current user cannot access, it then asks for a username and password instead of erroring and continuing.
Notes: This very script used to work on another Samba PDC network, but I've moved it over to another server (Still Samba PDC) and now its breaking.
Is there anyway for it to ignore the username/password prompt and just continue?