Microsoft Update files management via wusa.exe
Thomas Lemarchand
Windows
PowerShell
New in version 2018.3.4.
salt.modules.win_wusa.
install
(path, restart=False)¶Install a KB from a .msu file.
True
if successful, otherwise False
is encountered
CLI Example:
salt '*' wusa.install C:/temp/KB123456.msu
salt.modules.win_wusa.
is_installed
(name)¶Check if a specific KB is installed.
name (str) -- The name of the KB to check
True
if installed, otherwise False
CLI Example:
salt '*' wusa.is_installed KB123456
salt.modules.win_wusa.
list
()¶Get a list of updates installed on the machine
A list of installed updates
CLI Example:
salt '*' wusa.list
salt.modules.win_wusa.
uninstall
(path, restart=False)¶Uninstall a specific KB.
path (str) -- The full path to the msu file to uninstall. This can also be just the name of the KB to uninstall
restart (bool) -- True
to force a restart if required by the installation. Adds
the /forcerestart
switch to the wusa.exe
command. False
will add the /norestart
switch instead. Default is False
True
if successful, otherwise False
CommandExecutionError -- If an error is encountered
CLI Example:
salt '*' wusa.uninstall KB123456
# or
salt '*' wusa.uninstall C:/temp/KB123456.msu
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy