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-9503: How to add a site or subnet to a Direct audit AuditStore Scope using Powershell

Centrify DirectAudit ,  

30 November,17 at 12:07 AM

Question:
How can a site or subnet be added to a Direct Audit Auditstore Scope using Powershell.

Answer:
Please follow the steps below for the correct procedure.

Get Current Scopes:

$currentScopes = Get-CdaAuditStore -Installation "<DefaultInstallation>" -Name "AuditStore" | Select-Object Scopes

Verify existing scopes:
$currentScopes

Add new Site or Subnet to scope list:
$newscopes = $currentScopes.Scopes += "<127.0.0.1/12>"

Verify new scope list:
$newscopes

Write new scope list to Auditstore scopes:
Get-CdaAuditStore -Installation "<DefaultInstallation>" -Name "AuditStore" | Set-CdaAuditStore -Scopes $newscopes

You should now be able to verify that the new subnet or site has been added:
Get-CdaAuditStore -Installation "<DefaultInstallation>" -Name "AuditStore" | Select-Object -ExpandProperty scopes


*NOTE - Please replace all <DefaultInstallation> entries in the above commands with the actual installation name.
*NOTE  - Please replace the <127.0.0.1/12> entry in the above commands with the actual SITE or SUBNET required to be added to the scope.

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

Related Articles

No related Articles