< Back
Get-WindowsVersion
Post
NAME Get-WindowsVersion
SYNOPSIS
List current or History Windows Version from local or remote computer. List with Active Directory SearchBase.
SYNTAX
Get-WindowsVersion [[-ComputerName] <String[]>] [-History] [-TestWinRM] [-Force] [<CommonParameters>]
Get-WindowsVersion [-ADSearchBase <String>] [-History] [-TestWinRM] [-Force] [<CommonParameters>]
DESCRIPTION
List current or History Windows Version from local or remote computer. List with Active Directory SearchBase.
PARAMETERS
-ComputerName <String[]>
Name of server to list Windows Version from remote computer.
Required? false
Position? 1
Default value localhost
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ADSearchBase <String>
Active Directory SearchBase of server to list Windows Version from remote computer.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-History [<SwitchParameter>]
List History Windows Version from computer.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-TestWinRM [<SwitchParameter>]
TestWinRM for Test-NetConnection with TCPPort WinRM.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Disable the built-in Format-Table and Sort-Object.
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-WindowsVersion
List Windows Version on local computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1
List Windows Version on remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2
List Windows Version on multiple remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-WindowsVersion -ADSearchBase "OU=Computers,DC=comodo,DC=com" with built-in Format-Table and Sort-Object.
List Windows Version on Active Directory SearchBase computer.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -Force
List Windows Version on multiple remote computer and disable the built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Get-WindowsVersion -History with built-in Format-Table and Sort-Object.
List History Windows Version on local computer.
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -History
List History Windows Version on multiple remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -History -Force
List History Windows Version on multiple remote computer and disable built-in Format-Table and Sort-Object.
RELATED LINKS
SYNOPSIS
List current or History Windows Version from local or remote computer. List with Active Directory SearchBase.
SYNTAX
Get-WindowsVersion [[-ComputerName] <String[]>] [-History] [-TestWinRM] [-Force] [<CommonParameters>]
Get-WindowsVersion [-ADSearchBase <String>] [-History] [-TestWinRM] [-Force] [<CommonParameters>]
DESCRIPTION
List current or History Windows Version from local or remote computer. List with Active Directory SearchBase.
PARAMETERS
-ComputerName <String[]>
Name of server to list Windows Version from remote computer.
Required? false
Position? 1
Default value localhost
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ADSearchBase <String>
Active Directory SearchBase of server to list Windows Version from remote computer.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-History [<SwitchParameter>]
List History Windows Version from computer.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-TestWinRM [<SwitchParameter>]
TestWinRM for Test-NetConnection with TCPPort WinRM.
Required? false
Position? named
Default value False
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Disable the built-in Format-Table and Sort-Object.
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-WindowsVersion
List Windows Version on local computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1
List Windows Version on remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2
List Windows Version on multiple remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-WindowsVersion -ADSearchBase "OU=Computers,DC=comodo,DC=com" with built-in Format-Table and Sort-Object.
List Windows Version on Active Directory SearchBase computer.
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -Force
List Windows Version on multiple remote computer and disable the built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Get-WindowsVersion -History with built-in Format-Table and Sort-Object.
List History Windows Version on local computer.
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -History
List History Windows Version on multiple remote computer with built-in Format-Table and Sort-Object.
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>Get-WindowsVersion -ComputerName pc1,pc2 -History -Force
List History Windows Version on multiple remote computer and disable built-in Format-Table and Sort-Object.
RELATED LINKS