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  >
article

KB-8371: Script to bulk delete systems from CPS

Centrify Privilege Service ,  

22 March,17 at 12:21 PM

Applies to: Centrify CPS on all supported versions.

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

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


To run the script: ./Delete_Resources.ps1

Parameters:
endpoint = Enter the entire Tenant URL. For example: https://aam1234.my.centrify.com
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. 

Note:
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:
https://technet.microsoft.com/en-us/library/ee176961.aspx

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

 
Attachments:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.