Test-MtAdComputerStaleEnabledCount
SYNOPSIS
Counts enabled computers that have not logged on for 180 days or more.
SYNTAX
Test-MtAdComputerStaleEnabledCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Stale enabled computer accounts represent a security risk as they can be compromised and reactivated by attackers. This test identifies enabled computers that have not authenticated to the domain for 180 days or more.
Security Risk:
- Stale enabled accounts can be reactivated and used for lateral movement
- May indicate decommissioned systems that were never properly disabled
- Can be targeted for compromise without detection
- Should be disabled or removed after verification
EXAMPLES
EXAMPLE 1
Test-MtAdComputerStaleEnabledCount
Returns $true if computer data is accessible.
PARAMETERS
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Boolean
NOTES
RELATED LINKS
https://maester.dev/docs/commands/Test-MtAdComputerStaleEnabledCount