PS-Drive and move-item This topic contains 2 replies, has 2 voices, and was last updated by Rene Falkenberg 3 years, 10 months ago. Author Posts August 8, 2014 at 4:39 am #17899 Rene FalkenbergParticipant Hello, I need to move some files from Server A (Workgroup) to Server B (Domain) I have created the following PSDrive on ServerB: New-PSDrive -Name A -PSProvider FileSystem -Root '\\ServerA\Files' -Credential servera\usera When i change directory to the PSDrive A and do a move-item *.* c:\temp then i just received an access denied. Presumeable because it's using my ServerB Credentials. Does anyone have an idea to get around this? August 8, 2014 at 7:59 am #17902 Don JonesKeymaster Is it denying you access on the reading of the source files, or the writing of the target files? Or denying you access on deleting the source files after the copy? August 11, 2014 at 12:02 am #17939 Rene FalkenbergParticipant I can read the files from the source and I can create new files in the target directory. If I break the script and do a New-Item -filetype test.txt in the target directory I get: New-Item : Access to the path '\\ServerA\Files\test.txt' is denied. So it seems that the PS-Drive is mapped with a set of credentials, but when I move-item/new-item then it's using the credentials of the account that runs PowerShell. Author Posts You must be logged in to reply to this topic.