Jump to content

map drive to different domain


Recommended Posts

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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...