I need to connect to a remote server and do some file copies and moves, etc. The remote server requires authentication.
What do I need to enter in for PSCredential -ArgumentList, argument #1? Is it the path to a particular remote user (let's say "Administartor") like
Or is it simply the username like
Or is it the path to the remote resource itself like
Authenticate the call
$Creds = New-Object -Typename System.Management.Automation.PSCredential -Argumentlist "\\Some\Path",$PW Copy-Item $src $destination -Credential $Creds