How to "ignore" username and password prompt in net use
Posted
by
Mattisdada
on Server Fault
See other posts from Server Fault
or by Mattisdada
Published on 2012-10-16T05:58:42Z
Indexed on
2012/11/01
23:05 UTC
Read the original article
Hit count: 302
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?
© Server Fault or respective owner