Author Posts

February 16, 2018 at 5:44 am

Hi Guys,
I am trying to copy some content from a remote server, (where I have read-only access) with different set of credentials to a local shared location by using power shell. Can anyone show any direction?

Tried the below couple of cmdlet but no luck.
1.Copy-Item
Error: Cannot retrieve the dynamic parameters for the cmdlet
2.Start-BitsTransfer
Error:Not able to find the path even if the path is correct.

Note: I do not want to use "net use"

February 16, 2018 at 3:01 pm

You can first use PSDrives like

New-PSDrive -Name X -PSProvider FileSystem -Root "yourPath" -Credentials

Than you can copy the data using Copy-Item to your destination.

Copy-Item -Path X:\ -Destination "yourDestination"

For more information use Help Copy-Item -example.