diff --git a/windows/powershell_dsc.yml b/windows/powershell_dsc.yml index bb7c98457..0c6aae490 100644 --- a/windows/powershell_dsc.yml +++ b/windows/powershell_dsc.yml @@ -8,7 +8,7 @@ ansible.windows.win_powershell: script: | $nuget_version = (Get-PackageProvider -Name NuGet -ListAvailable).version - $nuget_target_version = '2.8.5.201' + $nuget_target_version = [Version]::new('2.8.5.201') if( $nuget_version -lt $nuget_target_version ){ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-PackageProvider -Name NuGet -MinimumVersion $nuget_target_version -Force