< Back
Get-OSVersionFromEvent
Post
NAME Get-OSVersionFromEvent
SYNOPSIS
This function returns the OperatingSystem version.
SYNTAX
Get-OSVersionFromEvent [[-ComputerName] <String[]>] [[-Credential] <PSCredential>] [-Raw] [<CommonParameters>]
DESCRIPTION
This function returns the OperatingSystem version based on the data in last EventID 6009 in the system log.
PARAMETERS
-ComputerName <String[]>
Gets events from the event logs on the specified computer(s). Type the NetBIOS name, an Internet Protocol (IP)
address, or the fully qualified domain name of the computer. The default value is the local computer.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default value is the current user.
Type a user name, such as User01 or Domain01\\User01. Or, enter a PSCredential object, such as one generated by
the Get-Credential cmdlet. If you type a user name, you will be prompted for a password. If you type only the
parameter name, you will be prompted for both a user name and a password.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Raw [<SwitchParameter>]
Use this switch to provide the raw event log record for the function.
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
System.String[]
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Get-OSVersionFromEvent
ComputerName OperatingSystemVersion
------------ ----------------------
WKSTN07.contoso.com 10.00.17134
RELATED LINKS
Online Version: https://powershell.anovelidea.org/modul ... Event.html
SYNOPSIS
This function returns the OperatingSystem version.
SYNTAX
Get-OSVersionFromEvent [[-ComputerName] <String[]>] [[-Credential] <PSCredential>] [-Raw] [<CommonParameters>]
DESCRIPTION
This function returns the OperatingSystem version based on the data in last EventID 6009 in the system log.
PARAMETERS
-ComputerName <String[]>
Gets events from the event logs on the specified computer(s). Type the NetBIOS name, an Internet Protocol (IP)
address, or the fully qualified domain name of the computer. The default value is the local computer.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Credential <PSCredential>
Specifies a user account that has permission to perform this action. The default value is the current user.
Type a user name, such as User01 or Domain01\\User01. Or, enter a PSCredential object, such as one generated by
the Get-Credential cmdlet. If you type a user name, you will be prompted for a password. If you type only the
parameter name, you will be prompted for both a user name and a password.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Raw [<SwitchParameter>]
Use this switch to provide the raw event log record for the function.
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
System.String[]
OUTPUTS
System.Object
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Get-OSVersionFromEvent
ComputerName OperatingSystemVersion
------------ ----------------------
WKSTN07.contoso.com 10.00.17134
RELATED LINKS
Online Version: https://powershell.anovelidea.org/modul ... Event.html