Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.userAny assistance is appreciated!
Thanks!!
Steve

I found this on MS site using WMI and their scripts.
http://www.microsoft.com/technet/scriptcenter/topics/networking/03_atnc_remote.mspx

![]() |
![]() |
![]() |

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