< Back
Test-HPSAccountPolicy
Post
NAME Test-HPSAccountPolicy
SYNOPSIS
n/a
SYNTAX
Test-HPSAccountPolicy [-Enforce_Password_History <Int32>] [-Maximum_Password_Age <Int32>] [-Minimum_Password_Age
<Int32>] [-Minimum_Password_Length <Int32>] [-Password_Must_Meet_Complexity_Requirements <Boolean>]
[-Store_Passwords_Using_Reversible_Encryption <Boolean>] [-Account_Lockout_Duration <Int32>]
[-Account_Lockout_Threshold <Int32>] [-Reset_Account_Lockout_Counter_After <Int32>]
[-Enforce_User_Logon_Restrictions <Int32>] [-Maximum_Lifetime_For_Service_Ticket <Int32>]
[-Maximum_Lifetime_For_User_Ticket <Int32>] [-Maximum_Lifetime_For_User_Ticket_Renewal <Int32>]
[-Maximum_Tolerance_For_Computer_Clock_Synchronization <Int32>] [-Type <String>] [-Cache <Boolean>] [-Detail]
[<CommonParameters>]
Test-HPSAccountPolicy [-Preset <String>] [-Type <String>] [-Cache <Boolean>] [-Detail] [<CommonParameters>]
DESCRIPTION
n/a
PARAMETERS
-Enforce_Password_History <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Password_Age <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Minimum_Password_Age <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Minimum_Password_Length <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Password_Must_Meet_Complexity_Requirements <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Store_Passwords_Using_Reversible_Encryption <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Account_Lockout_Duration <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Account_Lockout_Threshold <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Reset_Account_Lockout_Counter_After <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Enforce_User_Logon_Restrictions <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_Service_Ticket <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_User_Ticket <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_User_Ticket_Renewal <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Tolerance_For_Computer_Clock_Synchronization <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Preset <String>
n/a
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
n/a
Required? false
Position? named
Default value Local
Accept pipeline input? false
Accept wildcard characters? false
-Cache <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Detail [<SwitchParameter>]
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean
System.Array
NOTES
- File Name : Test-HPSAccountPolicy.ps1
- Author : Thomas ILLIET
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-HPSAccountPolicy -Preset CIS_Windows_10
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 24
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 42 -Maximum_Password_Age 42
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Test-HPSAccountPolicy -Preset CIS_Windows_10 -Detail
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 24 -Detail
RELATED LINKS
https://hardening.thomas-illiet.fr/Publ ... untPolicy/
https://github.com/thomas-illiet/Harden ... Policy.ps1
SYNOPSIS
n/a
SYNTAX
Test-HPSAccountPolicy [-Enforce_Password_History <Int32>] [-Maximum_Password_Age <Int32>] [-Minimum_Password_Age
<Int32>] [-Minimum_Password_Length <Int32>] [-Password_Must_Meet_Complexity_Requirements <Boolean>]
[-Store_Passwords_Using_Reversible_Encryption <Boolean>] [-Account_Lockout_Duration <Int32>]
[-Account_Lockout_Threshold <Int32>] [-Reset_Account_Lockout_Counter_After <Int32>]
[-Enforce_User_Logon_Restrictions <Int32>] [-Maximum_Lifetime_For_Service_Ticket <Int32>]
[-Maximum_Lifetime_For_User_Ticket <Int32>] [-Maximum_Lifetime_For_User_Ticket_Renewal <Int32>]
[-Maximum_Tolerance_For_Computer_Clock_Synchronization <Int32>] [-Type <String>] [-Cache <Boolean>] [-Detail]
[<CommonParameters>]
Test-HPSAccountPolicy [-Preset <String>] [-Type <String>] [-Cache <Boolean>] [-Detail] [<CommonParameters>]
DESCRIPTION
n/a
PARAMETERS
-Enforce_Password_History <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Password_Age <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Minimum_Password_Age <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Minimum_Password_Length <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Password_Must_Meet_Complexity_Requirements <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Store_Passwords_Using_Reversible_Encryption <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Account_Lockout_Duration <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Account_Lockout_Threshold <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Reset_Account_Lockout_Counter_After <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Enforce_User_Logon_Restrictions <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_Service_Ticket <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_User_Ticket <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Lifetime_For_User_Ticket_Renewal <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Maximum_Tolerance_For_Computer_Clock_Synchronization <Int32>
n/a
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Preset <String>
n/a
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
n/a
Required? false
Position? named
Default value Local
Accept pipeline input? false
Accept wildcard characters? false
-Cache <Boolean>
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Detail [<SwitchParameter>]
n/a
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean
System.Array
NOTES
- File Name : Test-HPSAccountPolicy.ps1
- Author : Thomas ILLIET
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Test-HPSAccountPolicy -Preset CIS_Windows_10
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 24
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 42 -Maximum_Password_Age 42
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Test-HPSAccountPolicy -Preset CIS_Windows_10 -Detail
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Test-HPSAccountPolicy -Enforce_Password_History 24 -Detail
RELATED LINKS
https://hardening.thomas-illiet.fr/Publ ... untPolicy/
https://github.com/thomas-illiet/Harden ... Policy.ps1