当它到达Copy命令时,如果出现以下错误,它将失败:+ Copy-Item -Path~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-ItemPerform the operation again without specifying credentials</
>\$($env:username)"Copy-ItemCopy-Item : Cannot retrieve the dynamic parameters for the cmdlet.The FileSystem provider supports credentials only
on the New-PSDrive cmdlet.Perform the op
$session = New-PSSession -ComputerName $desComputerName -Credential $credentialsCopy-Item : Failed to create directory <A-Random-Folder> on remote destination.以下是完整的错误日志:
Copy-Item : Starting a command on the