PS U:\> Get-LatestOSBuild -OSVersion 21H2 -OSName Server2022 -ExcludePreview -ExcludeOutOfBand
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+ $FormatDate = Get-Date($ConvertToDate) -Format 'yyyy ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-Date], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+ $FormatDate = Get-Date($ConvertToDate) -Format 'yyyy ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-Date], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Get-Date : Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:163 char:40
+ $FormatDate = Get-Date($ConvertToDate) -Format 'yyyy ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-Date], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.GetDateCommand
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At C:\Program Files\WindowsPowerShell\Modules\WindowsOSBuild\2202.1\WindowsOSBuild.psm1:161 char:21
+ ... $ConvertToDate = [Datetime]::ParseExact($GetDate, 'MMMM d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException
Version : Version 21H2 (OS build 20348)
Build : 20348.707
Availability date :
Preview : False
Out-of-band : False
Servicing option : LTSC
KB article : KB5013944
KB URL : https://support.microsoft.com/en-us/help/5013944
Catalog URL : https://www.catalog.update.microsoft.com/Search.aspx?q=KB5013944
PS U:\>