Description

It's not possible to supply alternate credentials when using any cmdlets with the FileSystem provider. Even New-PSDrive, which accepts a -Credentials parameter, won't accept it with the FileSystem provider.
The bottom line here is that the ancient `NET USE` command has more power than PowerShell's New-PSDrive ...

I just spent about 6 hours to get to the point that I now know it doesn't work. Ouch!

Posted by Ayth on 4/29/2011 at 10:15 AM

Just ran into this issue again. Can we get a fix?

Posted by hjoelr on 1/7/2011 at 6:14 AM

I spent multiple hours trying to figure out how to do this and finally realized that it's not possible. I need to be able to specify alternate credentials for file systems so I can connect to a domain file share from a local administrator account on computers. I'm trying to use PowerShell to help me automate my unattended install of Windows 7 computers.

Posted by lukit on 7/21/2010 at 6:09 AM

Really frakkin' frustratin' when you see -Credential and it's not working.

Posted by jfrmilner on 6/22/2010 at 12:34 PM

A much needed option for multi forest environments.

Posted by robertblixt on 5/6/2010 at 5:56 AM

+2 yrs and still no solution :-(

Posted by clark_michael on 1/21/2010 at 11:42 AM

Another vote, this is a no brainer guys.

Posted by Brock Hensley on 11/19/2009 at 9:02 AM

I agree - afterall the HELP for the command has -Credential included...