Test-MtAdComputerOperatingSystemCount
SYNOPSIS
Counts the number of distinct operating systems in use by domain computers.
SYNTAX
Test-MtAdComputerOperatingSystemCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test identifies the diversity of operating systems in the Active Directory environment. High OS diversity may indicate inconsistent patching, legacy systems, or unsupported operating systems that require attention.
Security Value:
- Identifies legacy or unsupported operating systems
- Helps prioritize upgrade paths
- Reveals potential security gaps from outdated systems
- Supports compliance reporting on system standardization
EXAMPLES
EXAMPLE 1
Test-MtAdComputerOperatingSystemCount
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-MtAdComputerOperatingSystemCount