cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How to automate dynatrace agent configuration for .NET

I have gone through the URL-https://github.com/Dynatrace/Dynatrace-AppMon-Powe...

However, when I run the script I am getting errors.

I am trying to run the script with Powershell 5.1 and Windows Server 2016.

5 REPLIES 5

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

Anantha, Can you explain the errors you are seeing?

log.txt I have attached the error in the log file attached.

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

Are you running it with Administrator privs?


hao-lin_liang
Helper

You may also need to set the execution policy to allow powershell it execute scripts as well. If you run this command "Get-ExecutionPolicy" you should be able to check if the execution policy is "Restricted" or not. If it is restricted then you will need to change it to unrestricted to run the script.


Bingo! That worked. Mine was set to Remote-Signed, Now I changed it to Unrestricted. Thanks a ton!