Output Exchange 2010 RBAC Role Entries in HTML Report
***THIS ONLY WILL WORK IN POWERSHELL V3 (Win8 and Server 2012)***
The script will run in Powershell V2, but the data in the output tables will contain only the type information and not the actual data.
To use this script, you must be connected to Exchange remote powershell. Replace the URI below with the URI for your CAS. Replace "basic" with whatever authentication means you allow on the "powershell" IIS vdir on CAS. This may be "kerberos" if you are on a domain joined machine.
PowerShell
Edit|Remove
$cred = get-credentials
$session = new-pssession -configurationname Microsoft.Exchange -connectionuri "https://mail.contoso.com/powershell" -authentication basic -credentials $cred
import-pssession $session
This script with iterate through all roles defined and then through each entry.
It will output all of the allowed Commandlets for each role and what parameters are available.
Example Output:
Role:Recipient Policies
Name |
Parameters |
Write-AdminAuditLog |
Comment Confirm Debug DomainController ErrorAction ErrorVariable OutBuffer OutVariable Verbose WarningAction WarningVariable WhatIf |
Set-ThrottlingPolicyAssociation |
Confirm Debug DomainController ErrorAction ErrorVariable Identity OutBuffer OutVariable ThrottlingPolicy Verbose WarningAction WarningVariable WhatIf |
You can download it here