Public/Get-HPSAccountPolicy.ps1

Function Get-HPSAccountPolicy {

    <#
        .SYNOPSIS
        n/a

        .DESCRIPTION
        n/a

        .PARAMETER Type
        n/a

        .OUTPUTS
        System.Object

        .EXAMPLE
        Get-HPSAccountPolicyRule

        .LINK
        https://hardening.thomas-illiet.fr/Public/Get-HPSAccountPolicy/

        .LINK
        https://github.com/thomas-illiet/Hardening/blob/stable/Hardening/Public/Get-HPSAccountPolicy.ps1

        .NOTES
        - File Name : Get-HPSAccountPolicy.ps1
        - Author : Thomas ILLIET
    #>


    [CmdletBinding( HelpUri = "https://hardening.thomas-illiet.fr/Public/Get-HPSAccountPolicy" )]
    [OutputType( [System.Object] )]
    Param(
        [Parameter()]
        [ValidateSet('Local','Gpo')]
        [System.String]
        $Type = 'Local'
    )

    begin {
        Write-Verbose "[$($MyInvocation.MyCommand.Name)] Function started"
    }

    process {
        Get-HPSSecurityPolicy -ConfigName 'AccountPolicy' -Type $Type
    }

    end {
        Write-Verbose "[$($MyInvocation.MyCommand.Name)] Complete"
    }
}