![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Mapping Drive to share on untrusted domain I want to map a drive to a server that is in another domain - untrusted. In windows, a window pops up asking for credentials and I just put in my credentials for that domain. I want to create a script and part of this would require mapping a drive to a share on this server in the untrusted domain. Can someone show me what to do? Thanks! |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Mapping Drive to share on untrusted domain On Jan 9, 1:38*pm, "Steven" <Syk...@xxxxxx> wrote: Quote: > I want to map a drive to a server that is in another domain - untrusted. *In > windows, a window pops up asking for credentials and I just put in my > credentials for that domain. *I want to create a script and part of this > would require mapping a drive to a share on this server in the untrusted > domain. *Can someone show me what to do? > > Thanks! New-PSDrive $drive_letter FileSystem \\path\to\share -Credential '' Which is short for New-PSDrive -Name $drive_letter -psprovider FileSystem -root \\path\to \share -Credential '' You have to put something after -Credential, so if you don't have a username to put, then just leave it empty. If you provided a string instead of a PSCredential object then when it pops up the dialog it will use that string as a username. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Mapping Drive to share on untrusted domain In addition to what Tojo posted, the good old "net use" commands can also be use: net use <driveletter>: \\servername\share /user:domain\user You'll be prompted for the password, or you can actually embed it in the command, though that has obvious security issues. -- Charlie. http://msmvps.com/blogs/xperts64 http://mvp.support.microsoft.com/profile/charlie.russel "Steven" <Sykong@xxxxxx> wrote in message news:eFgSiKqcJHA.4660@xxxxxx Quote: >I want to map a drive to a server that is in another domain - untrusted. >In windows, a window pops up asking for credentials and I just put in my >credentials for that domain. I want to create a script and part of this >would require mapping a drive to a share on this server in the untrusted >domain. Can someone show me what to do? > > Thanks! > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Mapping drive from Vista (Workgroup Mode) to Vista (Domain-joined) | Vista networking & sharing | |||
| Drive mapping & UNC | Vista networking & sharing | |||
| Vista Business Having problems maintaining mapping to Vista Ultimate Share | Vista networking & sharing | |||
| Trouble Mapping a Windows 2003 Server Share | Vista General | |||
| Mapping non Domain drives | Vista networking & sharing | |||