Version Options
Version
Used to explicitly define a required version and install it. If the package exists already with a lower version it will be upgraded to this one. If the package exists already with a higher version it will be uninstalled and downgraded to this one.
MinimumVersion
Used to define the lowest version of a package that can exist on a system. If the package exists already with a lower version it will be upgraded to this one. If the package exists already with an equal or higher version no action will be taken. If no package exists, it will explicitly install the defined version in the configuration.
AutoUpgrade
Used to always keep a package on the latest available version of a package.
@{
'adobereader' = @{
Name = 'adobereader'
Ensure = 'Present'
Version = '2021.005.20060'
}
'googlechrome-min' = @{
Name = 'googlechrome'
Ensure = 'Present'
MinimumVersion = '92.0.4515.159'
}
'firefox-autoupgrade' = @{
Name = 'firefox'
Ensure = 'Present'
AutoUpgrade = $True
}
}
Last updated
Was this helpful?