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-

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.


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.

Dynatrace Leader
Dynatrace Leader

Are you running it with Administrator privs?


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!