# Azure DevOps Pipeline with powershell just enough administration

**URL:** <https://forums.powershell.org/t/azure-devops-pipeline-with-powershell-just-enough-administration/21826>\
**Category:** PowerShell Help\
**Created:** [March 7, 2023, 9:43am UTC](https://forums.powershell.org/t/azure-devops-pipeline-with-powershell-just-enough-administration/21826 "2023-03-07T09:43:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrimus](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/adrimus/32/4925_2.png) [@adrimus](https://forums.powershell.org/u/adrimus)\
**Post date:** [March 7, 2023, 9:43am UTC](https://forums.powershell.org/t/azure-devops-pipeline-with-powershell-just-enough-administration/21826/1 "2023-03-07T09:43:03Z")

</div>

I have started to use Azure Devops pipelines to execute PowerShell scripts on remote servers for scheduled tasks. I created a standard AD account which I use in these pipelines and store the credentials in the secret variables.

I was wondering what are the best practices to give this account permissions by adding to the AD remote management users group or the dhcp admins group, and then specific permissions to access certain folders to get file information. Normally I create a remote session to the server/computer I want to carry out tasks. I want to avoid giving this account domain admin. Would PowerShell JEA be appropriate here? Should I use a service account? The task on the agent seems to run as NT AUTHORITY\NETWORK SERVICE, how would I give permissions to allow it to do stuff on / get info from servers, is it ideal?

How do others do this? Just looking for some ideas or some guidance into what direction to go in.

Should I have posted this in devops-camp? I saw there’s nothing there.

Thanks

---

<div class="post-metadata">

**Author:** ![rob-simmers](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/rob-simmers/32/1010_2.png) [@rob-simmers](https://forums.powershell.org/u/rob-simmers)\
**Post date:** [March 8, 2023, 3:17pm UTC](https://forums.powershell.org/t/azure-devops-pipeline-with-powershell-just-enough-administration/21826/2 "2023-03-08T15:17:51Z")

</div>

May want to ask this in a forum dedicated to Azure DevOps questions:

[Azure DevOps - Microsoft Community Hub](https://techcommunity.microsoft.com/t5/azure-devops/bd-p/AzureDevOpsForum)

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:15pm UTC](https://forums.powershell.org/t/azure-devops-pipeline-with-powershell-just-enough-administration/21826/3 "2024-05-16T20:15:05Z")

</div>

Closed on May 16, 2024, 8:15pm UTC


