TestimoX

API Reference

Command

Get-CxAccountPolicy

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.SecurityPolicy.AccountPolicyState

Gets local Account Policy (password/lockout) from SAM (local or remote).

Examples

Authored help example

Example 1


Get-CxAccountPolicy
        

Example 2


Get-CxAccountPolicy -ComputerName SERVER01
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxAccountPolicy [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.

Outputs

ComputerX.SecurityPolicy.AccountPolicyState