Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to solve "ItemExistsUnauthorizedAccessError" issue #17

Open
Kattesang opened this issue Sep 20, 2021 · 0 comments
Open

How to solve "ItemExistsUnauthorizedAccessError" issue #17

Kattesang opened this issue Sep 20, 2021 · 0 comments

Comments

@Kattesang
Copy link

When I try to transfer folders and files within the server from one folder to another folder, I am getting the below error. How to solve this issue ?

2021-09-17T06:22:58.9182758Z ##[debug]Test-Path : Access is denied
2021-09-17T06:22:58.9201437Z ##[debug]At E:\MyAgentPool_work_tasks\WindowsMachineFileCopy_731004d4-1d66-4f70-8c05-638018b22210\2.1.13\Utility.ps1:26 char:14
2021-09-17T06:22:58.9220029Z ##[debug]+ if(-not (Test-Path -LiteralPath $value))
2021-09-17T06:22:58.9238954Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-09-17T06:22:58.9259859Z ##[debug] + CategoryInfo : PermissionDenied: (\DevServer01\li...a1\osgi\modules:String) [Test-Path], UnauthorizedAc cessException
2021-09-17T06:22:58.9277894Z ##[debug] + FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.TestPathCommand
2021-09-17T06:22:58.9295585Z ##[debug]
2021-09-17T06:22:58.9335542Z ##[debug]Script stack trace:
2021-09-17T06:22:58.9400824Z ##[debug]at Validate-SourcePath, E:\MyAgentPool_work_tasks\WindowsMachineFileCopy_731004d4-1d66-4f70-8c05-638018b22210\2.1.13\Utility.ps1: line 26
2021-09-17T06:22:58.9421870Z ##[debug]at , E:\MyAgentPool_work_tasks\WindowsMachineFileCopy_731004d4-1d66-4f70-8c05-638018b22210\2.1.13\WindowsMachineFileCopy.ps1: line 35
2021-09-17T06:22:58.9443707Z ##[debug]at , : line 1
2021-09-17T06:22:58.9603077Z ##[debug]at , : line 22
2021-09-17T06:22:58.9643813Z ##[debug]at , : line 18
2021-09-17T06:22:58.9792465Z ##[debug]at , : line 1
2021-09-17T06:22:58.9843186Z ##[debug]Exception:
2021-09-17T06:22:58.9854844Z ##[debug]System.UnauthorizedAccessException: Access is denied ---> System.ComponentModel.Win32Exception: Access is denied
2021-09-17T06:22:58.9879974Z ##[debug] --- End of inner exception stack trace ---
2021-09-17T06:22:58.9901099Z ##[debug] at Microsoft.PowerShell.Commands.FileSystemProvider.ItemExists(String path, ErrorRecord& error)
2021-09-17T06:22:59.0186655Z ##[error]Access is denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant