Skip to main content
Apprentice
December 18, 2024
Question

Poweshell script for creating EPM policies

  • December 18, 2024
  • 3 replies
  • 222 views

Is there anyone worked on some kind of powershell script to generate policies, application groups etc.?

Trying to create some policy automic policy making process. 

3 replies

BeyondTrust Employee
December 18, 2024

Hey ​@egemen, good question. One thing to note is that we currently don’t have an API to create things like application definitions just yet.

I’d highly recommend checking out our latest roadmap call for more information: Product Road Map: Endpoint Privilege Management

AdamS
BeyondTrust Employee
BeyondTrust Employee
December 23, 2024

As you mentioned PowerShell specifically, ​@egemen, I’d point you at this resource - Endpoint Privilege Management Powershell API reference guide. There are examples in that section for how to use PowerShell to manipulate a policy XML file.

As ​@Neil suggested, there isn’t yet an API for PM Cloud to allow policy editing so you’d have to manage downloading and uploading policies manually if you did want to go the PowerShell route.

Guru
January 28, 2026

Policy API is here, version 25.8 and above.

The current API for PM Cloud PolicyEditor is allowing you to upload apps to a specific policy and Application group in that policy. We can do multiple calls adding apps to other app groups and policies.

Each call through the API will increase the Revision number, and it is possible to multiple apps and types in one call.

Check the Swagger API in addition to the link below.
https://YourInstanceName-services.pm.beyondtrustcloud.com/management-api/swagger/index.html?urls.primaryName=v3

https://docs.beyondtrust.com/epm-wm/reference/get_policyeditor-v3-policy-policyid-windows-applicationgroups

Also feel free to chime in on this one: 

Kind regards
Jens