我能知道如果我使用Powershell远程访问具有常规只读访问权限的文件夹是否会由于权限问题而失败吗?
当我尝试访问.cv文件时,错误是这样的:
Copy-Item : Access to the path '<path>' is denied.
At line:5 char:31
+ Get-ChildItem -Path $Source | Copy-Item -Destination $Target -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Copy-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.CopyItemCommand