azure devOps server release pipeline powershell task give access denied

Copper Contributor

hi guys,

i am using, azure devOps server. Implemented a release pipeline to use Powershell to 

- if folder exist, Remote-Item 

- then Copy-Item

 

i am encountering access denied on files that sits inside the folder on both Copy-Item & Remove-Item. I believe that the powershell.exe is already elevated as i have checked that -execution policy is already set as unrestricted. is there anything else i can do to ensure i don't bum into this error? I am trying to copy from a source folder to a target folder with the same server. Already in administrator when running the pipeline. 

 

0 Replies