Computing.Net > Forums > Windows NT > Net use

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Net use

Reply to Message Icon

Name: steve1900
Date: January 10, 2005 at 01:15:59 Pacific
OS: Win 2K
CPU/Ram: NA
Comment:

Hi,
I am trying to compile a net use batch file on my network.
I need this to not only map a network drive to a share but to also explicilty use an Active Directory user account (on another domain).
Here is the sort of command I am using:

net use P: \\server\share * \user: domain\user
* = password prompt.
But really, it would be more ideal to write the password in there aswell for the user account.

However I write this (even using the MS Site) I get a syntax error.

I wonder if someone could just write an example for me.
Here is the senario...

I want a user on domain1 to have a batch file script to run on login to access a resource on domain2.
I want P: mapping to \\server\share
using AD account on domain: domain2
user account: test.user

Any assistance is appreciated!

Thanks!!

Steve



Sponsored Link
Ads by Google

Response Number 1
Name: sagnhill
Date: January 11, 2005 at 08:32:33 Pacific
Reply:

I found this on MS site using WMI and their scripts.

http://www.microsoft.com/technet/scriptcenter/topics/networking/03_atnc_remote.mspx



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Net use

NET USE command password issue www.computing.net/answers/windows-nt/net-use-command-password-issue/22586.html

Net Use command with No Banner www.computing.net/answers/windows-nt/net-use-command-with-no-banner/12290.html

NET USE COMMAND www.computing.net/answers/windows-nt/net-use-command/7006.html