I have set up an Azure VM with Windows 10 Pro for our custom DevOps build Agent. The user that I've created is Administrator and is in the Administrators group too.
However, if I do:
- RDP to VM via that user with admin privileges
- Run PowerShell (not with Administrator privileges)
- Try to run e.g.
Import-Certificate
command
In PowerShell, I get an Access Denied
error.
Is there any chance that all my PowerShell instances will automatically have admin privileges?
The solution would serve for that hosted DevOps Agent. Now I am not able to run any script in our DevOps pipeline which would eventually need admin privileges.