Microsoft Update files management via wusa.exe
maintainer: | Thomas Lemarchand |
---|---|
platform: | Windows |
depends: | PowerShell |
New in version 2018.3.4.
salt.modules.win_wusa.
install
(path, restart=False)¶Install a KB from a .msu file.
Parameters: | |
---|---|
Returns: |
|
Return type: |
CLI Example:
salt '*' wusa.install C:/temp/KB123456.msu
salt.modules.win_wusa.
is_installed
(name)¶Check if a specific KB is installed.
Parameters: | name (str) -- The name of the KB to check |
---|---|
Returns: | True if installed, otherwise False |
Return type: | bool |
CLI Example:
salt '*' wusa.is_installed KB123456
salt.modules.win_wusa.
list
()¶Get a list of updates installed on the machine
Returns: | A list of installed updates |
---|---|
Return type: | list |
CLI Example:
salt '*' wusa.list
salt.modules.win_wusa.
uninstall
(path, restart=False)¶Uninstall a specific KB.
Parameters: |
|
---|---|
Returns: |
|
Return type: | |
Raises: |
|
CLI Example:
salt '*' wusa.uninstall KB123456
# or
salt '*' wusa.uninstall C:/temp/KB123456.msu
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2019.2.1