Exports the security information on a selected resource to a .CSV file.
TIP: This cmdlet is used with the Get-QResourceAccess cmdlet that generates the results to be exported.
Syntax:
Export-QResourceAccess [-ResourceAccessResults] <QAM.Common.Interfaces.ResourceAccessQueryResults> [-OutputPath] <String> [[-DisplayInheritedSecurity] [<SwitchParameter>]] [[-OptimizeForExcel] [<SwitchParameter>]] [<CommonParameters>]
Parameter | Description |
---|---|
ResourceAccessResults | Specify the results of a resource access query (Get-QResourceAccess). |
OutputPath | Specify the path to the location on disk where the access results is to be written. |
DisplayInheritedSecurity |
(Optional) Specify this parameter if child objects with security exactly the same as the parent should be shown.
|
OptimizedForExcel |
(Optional) Specify this parameter if you want to export the output to Microsoft Excel.
|
Examples:
Example | Description |
---|---|
C:\PS># get host id Get-QManagedHost # get the access for the resource $resourceAccess = Get-QResourceAccess -ManagedHostId 5b3e4a3c-9c7b-4da1-b6bc-db552ee51656 -ResourceType NTFS\Folder -Resources "C:\Test Data" # export the results Export-QResourceAccess -ResourceAccessResults $resourceAccess -OutputPath "C:\" |
Exports the results of a resource access query. |