TestimoX

API Reference

Command

Get-CxOsInfo

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.OperatingSystem.OsInfo

Returns Windows operating system details for a computer.

Examples

Authored help example

Example 1: Shows the local operating system version and build details.

PS>


Get-CxOsInfo | Format-List *
        

Example 2: Checks a remote host before targeting a month-specific security baseline.

PS>


Get-CxOsInfo -ComputerName APP01 | Select-Object ComputerName,Caption,Version,BuildNumber,InstallDate
        

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-CxOsInfo [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.

Outputs

ComputerX.OperatingSystem.OsInfo