On a bamboo remote agent i want to run a script which contains this code:
Import-Module WebAdministration;
...
It worked until now (we updated to 6.10 recently).
The error that i get is this:
Import-Module : Process should have elevated status to access IIS configuration data.
At D:\bamboo-agent-home\temp\SC-SR7AR-TS-202-ScriptBuildTask-413057583993768370.ps1:1 char:1
+ Import-Module WebAdministration;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Import-Module], InvalidOperationException
+ FullyQualifiedErrorId : Module_ImportModuleError,Microsoft.PowerShell.Commands.ImportModuleCommand
Environment: Windows Server 2019 Datacenter
Bamboo: 6.10
The windows service runs as a user called "bambooagent" who is an administrator.
Could someone help me fixing this? i didn't find anything on the internet.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.