Running report scripts
When you perform the steps described in this section, the report content displays as text in the PowerShell console window. To generate formatted reports, see “Formatting reports.”
To run a report script:
- Open the Centrify Access Module for PowerShell Reports.
-
Verify you have permission to execute scripts.
Get-ExecutionPolicy
In most cases, the permission to execute scripts is restricted. You can use the Set‑ExecutionPolicy to allow execution. For example:
Set-ExecutionPolicy Unrestricted
For more information about execution policies and the options available, use the get‑help function.
-
Verify that you are in the directory where the report scripts are located. For example:
C:\Program Files\Centrify\PowerShell\Centrify.DirectControl.PowerShell\Reports
-
Execute the report script. For example:
.\ZonesReport.ps1