Sign in to follow this  
Followers 0
rocco

map drive to different domain

1 post in this topic

trying to login to a different domain using different userid/password then the userid logged into Windows. Works when PC is in the same domain, doesn't when it's in a different domain. Is there any way to do this?

thanks

RC

==================================

$Username="domainname\userid"

$Password="userpassword"

DriveMapGet("M:")

if not @error then DriveMapDel("M:")

DriveMapAdd("M:","\\servername\sharename",0, $Username, $Password)

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  
Followers 0