Tried the below couple of cmdlet but no luck.
Note: I do not want to use "net use"
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.
You must be logged in to reply to this topic.