Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
SGT_JAX

[Question] Net Use command

Recommended Posts

Is it possible to map a network drive to a server that require a username and password everytime you logon to that server? If so can it be put in a simple batch file that will use net use commands.?

Share this post


Link to post
Share on other sites

when mapping the drive it allows you to log on as a different user where you have to input your username and password. make sure you have ticked the box saying "reconnect at logon". B)

Share this post


Link to post
Share on other sites

Hi SGT_JAX

Are you looking for something like this?

net use /persistent:YES Z: \\SERVER\SHARE /user:DOMAIN\USER PASSWORD

Share this post


Link to post
Share on other sites

that worked.

I have looked on the net and found a simular command and it did not work...but your did with a minor change.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×