Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-8371: Script to bulk delete systems from CPS

Privileged Access Service ,  

22 March,17 at 12:21 PM

Applies to: Centrify CPS on all supported versions.

How does one bulk delete systems from the Privilege Manager after accidental import with discovery tool?

Centrify has created a powershell script to achieve this. Please download the script attached below.

To run the script: ./Delete_Resources.ps1

endpoint = Enter the entire Tenant URL. For example:
username = User that has privileges to delete resources. For example: A user assigned the System Administrator Role
DiscoveredOn = Date resources were discovered. Please enter in MM/DD/YYYY format. 

This will not delete resources that have accounts registered to the resource. 

Script will prompt for password of provided user during execution.

Changing the Windows PowerShell Script Execution Policy to run the script:
The Set-ExecutionPolicy cmdlet enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies and this script will require: Set-ExecutionPolicy RemoteSigned.
For more information please review the following:

Centrify Corporation does not take any responsibility for the content or availability of this link and it was provided as a courtesy. Customers should contact the vendor if there are any further questions