mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-26 02:07:05 +00:00
Added or improved help on all functions.
This commit is contained in:
@@ -1,4 +1,29 @@
|
||||
function ConvertTo-XMLAudit {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Converts a PowerShell custom object representing an audit policy into XML format.
|
||||
|
||||
.DESCRIPTION
|
||||
This function takes a PowerShell custom object representing an audit policy and converts it into XML format for storage or transmission.
|
||||
|
||||
.PARAMETER GPO
|
||||
The PowerShell custom object representing the audit policy.
|
||||
|
||||
.PARAMETER SingleObject
|
||||
Indicates whether to convert a single object or multiple objects.
|
||||
|
||||
.EXAMPLE
|
||||
ConvertTo-XMLAudit -GPO $auditPolicyObject -SingleObject
|
||||
|
||||
Description:
|
||||
Converts the $auditPolicyObject into XML format for a single object.
|
||||
|
||||
.EXAMPLE
|
||||
$auditPolicies | ConvertTo-XMLAudit -SingleObject
|
||||
|
||||
Description:
|
||||
Converts multiple audit policies in $auditPolicies into XML format for each object.
|
||||
#>
|
||||
[cmdletBinding()]
|
||||
param(
|
||||
[PSCustomObject] $GPO,
|
||||
|
||||
Reference in New Issue
Block a user