Net Use - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Closed Thread
Thread Tools Display Modes
Old 10-17-2007, 08:11 AM   #1 (permalink)
Junior Techie
Join Date: Jul 2006
Posts: 83
Default Net Use

I am trying to create a batch file that will Create a daive mapping when the computer starts up. First I will tell you I have tried the gui's way of mapping a network drive, I tell it to remember the credentials, but it always forgets the password. I have also tried the net use /savecred(entials). My batch file is posted below, I can get it to all work except when i try to push along the password. the problem I am having is that the directions on the internet dont have an example of the password switch being used. From what I have read the switch is [password| *] everytime i enter it tells me that my password, or whatever is in that spot either my password or *, is not a recognizable internal command.

@echo off
net use /delete w: >nul
net use w: \\(server)\lantalk password:***** \user:*****

steak1986 is offline  
Old 10-18-2007, 07:30 AM   #2 (permalink)
Techie Beyond Description
Osiris's Avatar
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default Re: Net Use

Does this place have AD?

Osiris is offline  
Old 10-19-2007, 03:54 PM   #3 (permalink)
Monster Techie
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default Re: Net Use

Use this

net use w: \\(server)\lantalk password /user:*****
Replace password with the actual password.
There is no switch for the password variable, it's just expected to be after the UNC path.

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NET Framework Problems AhBeng Hardware Repairs and Troubleshooting 5 09-24-2007 08:17 PM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 02:30 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.