We recently switched to using GPO preferences for drive mapping on log in. They give you the ability to use shorter - friendlier names and can be set such that laptops out of the office don't try to access network shares.
The transition for us was seamless. This should be named "How to create batch file to map a drive". And at the end - startup - it was in the past - now should be GPO. I understand all that. The reason I wrote this is because we use AD to manage users and tried the network drive mapping through Active Directory 2k8 server, but there's still some WinXP computers on the network that always have trouble mapping the drive with that setting on.
So I decided it would be easier to just make a batch file to fix that quick and simple, for every user that logs into that PC. Read Also: Unmap network drive using cmd.
To map a network drive using T as the drive letter and without username password-protected, use the following guide:. But if not? Is simple, you will need to use username and password on the prompt that will appear. Keep remembering that the user needs to have access to the share. Most people now days like to avoid plain text and for this, you can specify only the username. The command prompt will ask you for the password.
What if you need to automate the creation of network drive? Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 8 months ago. Active 7 years, 8 months ago.
Viewed 63k times. Improve this question. Thomas Thomas Is your batch file not working? ANy help appreciated. Click here to cancel reply. Notify me of followup comments via e-mail. Subscribe without commenting E-Mail:. Want to have your AD seen here? What Next?
Leave a comment Subscribe to Watching The Net. Another option is to use the PUSHD and POPD commands; but they differ in the way that it binds network paths: If you specify a network path, the pushd command temporarily assigns the first unused drive letter starting with Z: and working backwards to the specified network resource. They can also be used to bind drive letters to any path as well. Please need your help guys would be appreciate if some one descirbe with sample example Thanks hips in advance.
Hello, How to map the first available drive in a batch file … net use … Thanks, Dom. Mo : Interestingly enough, the roll out is all finished, and my answer turned out to be stupid syntax changes. It works. I didn't invent this method.
0コメント