Module Expr Str ImportFrom alias Import alias ImportFrom alias TryExcept body Import alias Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Continue If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Continue For NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Break Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore Str orelse If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore Str orelse If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore Str orelse Return NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad TryExcept body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return Dict Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Call NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Continue Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore ListComp Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse If CompareEq NameLoad Str body Continue orelse If CompareEq NameLoad Str body Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore ListComp Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad comprehension NameStore NameLoad Return NameLoad Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore Num AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str While UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignSub NameStore Num If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad orelse AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad If NameLoad body AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str While UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AugAssignSub NameStore Num If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore NameLoad orelse AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str While UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AugAssignSub NameStore Num If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore NameLoad orelse AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TupleLoad NameLoad Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A 
Module for running windows updates.

:depends:   - win32com
        - win32con
        - win32api
        - pywintypes

.. versionadded:: 2014.7.0

Set windows updates to run by category. Default behavior is to install
all updates that do not require user interaction to complete.
Optionally set ``categories`` to a category of your choice to only
install certain updates. Default is to set to install all available but driver updates.
The following example will install all Security and Critical Updates,
and download but not install standard updates.

.. code-block:: bash

    salt '*' win_update.install_updates categories="['Critical Updates', 'Security Updates']"

You can also specify a number of features about the update to have a
fine grain approach to specific types of updates. These are the following
features/states of updates available for configuring:
.. code-block:: text
    'UI' - User interaction required, skipped by default
    'downloaded' - Already downloaded, included by default
    'present' - Present on computer, included by default
    'installed' - Already installed, skipped by default
    'reboot' - Reboot required, included by default
    'hidden' - Skip hidden updates, skipped by default
    'software' - Software updates, included by default
    'driver' - Driver updates, included by default

The following example installs all updates that don't require a reboot:
.. code-block:: bash

    salt '*' win_update.install_updates skips="[{'reboot':True}]"


Once installed Salt will return a similar output:

.. code-block:: bash

    2 : Windows Server 2012 Update (KB123456)
    4 : Internet Explorer Security Update (KB098765)
    2 : Malware Definition Update (KB321456)
    ...

The number at the beginning of the line is an OperationResultCode from the Windows Update Agent,
it's enumeration is described here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387095(v=vs.85).aspx.
The result code is then followed by the update name and its KB identifier.

 __future__ absolute_import N/A logging salt.ext.six.moves range N/A N/A N/A win32com.client N/A pythoncom N/A HAS_DEPENDENCIES True N/A N/A N/A ImportError N/A N/A HAS_DEPENDENCIES False N/A salt.utils N/A salt.utils.locales N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Only works on Windows systems
     N/A N/A N/A N/A N/A salt utils is_windows HAS_DEPENDENCIES N/A N/A True N/A N/A False Module win_update: module has failed dependencies or is not on Windows client N/A _gather_update_categories N/A N/A updateCollection N/A N/A N/A 
    this is a convenience method to gather what categories of updates are available in any update
    collection it is passed. Typically though, the download_collection.
    Some known categories:
        Updates
        Windows 7
        Critical Updates
        Security Updates
        Update Rollups
     N/A categories N/A N/A i N/A range N/A updateCollection Count N/A N/A update N/A N/A updateCollection Item i N/A j N/A range N/A N/A update Categories Count N/A N/A name N/A N/A N/A N/A update Categories Item j Name N/A N/A name categories N/A N/A N/A N/A log debug N/A N/A found category: {0} format name N/A N/A N/A categories append name N/A categories N/A PyWinUpdater N/A object N/A __init__ N/A N/A self categories skipUI skipDownloaded skipInstalled skipReboot skipPresent skipSoftwareUpdates skipDriverUpdates skipHidden N/A None True False True False False False False True N/A N/A N/A N/A log debug CoInitializing the pycom system N/A N/A N/A pythoncom CoInitialize N/A N/A self skipUI skipUI N/A N/A self skipDownloaded skipDownloaded N/A N/A self skipInstalled skipInstalled N/A N/A self skipReboot skipReboot N/A N/A self skipPresent skipPresent N/A N/A self skipHidden skipHidden N/A N/A self skipSoftwareUpdates skipSoftwareUpdates N/A N/A self skipDriverUpdates skipDriverUpdates N/A N/A self categories categories N/A N/A self foundCategories N/A N/A N/A N/A log debug dispatching update_session to keep the session object. N/A N/A self update_session N/A N/A N/A win32com client Dispatch Microsoft.Update.Session N/A N/A N/A log debug update_session got. Now creating a win_searcher to seek out the updates N/A N/A self win_searcher N/A N/A N/A self update_session CreateUpdateSearcher N/A N/A self download_collection N/A N/A N/A win32com client Dispatch Microsoft.Update.UpdateColl N/A N/A self install_collection N/A N/A N/A win32com client Dispatch Microsoft.Update.UpdateColl N/A N/A self win_downloader N/A N/A N/A self update_session CreateUpdateDownloader N/A N/A N/A self win_downloader Updates N/A self download_collection N/A N/A self win_installer N/A N/A N/A self update_session CreateUpdateInstaller N/A N/A N/A self win_installer Updates N/A self install_collection N/A N/A self download_results None N/A N/A self install_results None N/A N/A self search_results None N/A Search N/A N/A self searchString N/A N/A N/A N/A N/A N/A N/A log debug N/A N/A beginning search of the passed string: {0} format searchString N/A N/A self search_results N/A N/A N/A self win_searcher Search searchString N/A N/A N/A log debug search completed successfully. N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log info N/A N/A search for updates failed. {0} format exc N/A exc N/A N/A N/A log debug N/A N/A parsing results. {0} updates were found. format N/A N/A N/A self search_results Updates Count N/A N/A N/A update N/A N/A self search_results Updates N/A N/A N/A N/A update InstallationBehavior CanRequestUserInput N/A N/A N/A N/A log debug N/A N/A Skipped update {0} - requests user input format N/A update title N/A N/A N/A N/A self skipDownloaded N/A update IsDownloaded N/A N/A N/A N/A log debug N/A N/A Skipped update {0} - already downloaded format N/A update title N/A N/A category N/A update Categories N/A N/A N/A N/A N/A self categories None N/A N/A category Name N/A self categories N/A N/A N/A N/A N/A self download_collection Add update N/A N/A N/A log debug N/A N/A added update {0} format N/A update title N/A N/A N/A N/A log debug download_collection made. gathering found categories. N/A N/A self foundCategories N/A _gather_update_categories N/A self download_collection N/A N/A N/A log debug N/A N/A found categories: {0} format N/A str N/A self foundCategories N/A True N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log info N/A N/A parsing updates failed. {0} format exc N/A exc N/A AutoSearch N/A N/A self N/A N/A N/A 
        this function generates a search string. simplifying the search function while
        still providing as many features as possible.
         N/A search_string N/A searchParams N/A N/A N/A self skipInstalled N/A N/A N/A N/A searchParams append IsInstalled=0 N/A N/A N/A N/A searchParams append IsInstalled=1 N/A N/A self skipHidden N/A N/A N/A N/A searchParams append IsHidden=0 N/A N/A N/A N/A searchParams append IsHidden=1 N/A N/A self skipReboot N/A N/A N/A N/A searchParams append RebootRequired=0 N/A N/A N/A N/A searchParams append RebootRequired=1 N/A N/A self skipPresent N/A N/A N/A N/A searchParams append IsPresent=0 N/A N/A N/A N/A searchParams append IsPresent=1 N/A i searchParams N/A N/A search_string N/A N/A {0} and  format i N/A N/A N/A N/A self skipSoftwareUpdates N/A N/A self skipDriverUpdates N/A N/A search_string Type='Software' or Type='Driver' N/A N/A N/A N/A self skipSoftwareUpdates N/A N/A search_string Type='Software' N/A N/A N/A N/A self skipDriverUpdates N/A N/A search_string Type='Driver' N/A N/A False N/A N/A N/A log debug N/A N/A generated search string: {0} format search_string N/A N/A N/A self Search search_string N/A Download N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self download_collection Count 0 N/A N/A N/A self download_results N/A N/A N/A self win_downloader Download N/A N/A N/A N/A log debug Skipped downloading, all updates were already cached. N/A True N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log debug N/A N/A failed in the downloading {0}. format exc N/A exc N/A Install N/A N/A self N/A N/A N/A N/A N/A update N/A N/A self search_results Updates N/A N/A N/A update IsDownloaded N/A N/A N/A N/A N/A self install_collection Add update N/A N/A N/A log debug Updates prepared. beginning installation N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log info N/A N/A Preparing install list failed: {0} format exc N/A exc N/A N/A N/A update N/A N/A self search_results Updates N/A N/A N/A N/A update EulaAccepted N/A N/A N/A N/A log debug N/A N/A Accepting EULA: {0} format N/A update Title N/A N/A N/A update AcceptEula N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log info N/A N/A Accepting Eula failed: {0} format exc N/A exc N/A N/A N/A N/A self install_collection Count 0 N/A N/A N/A N/A log debug Install list created, about to install N/A N/A N/A N/A self install_results N/A N/A N/A self win_installer Install N/A N/A N/A log info Installation of updates complete N/A True N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log info N/A N/A Installation failed: {0} format exc N/A exc N/A N/A N/A N/A log info no new updates. N/A True N/A GetInstallationResults N/A N/A self N/A N/A N/A 
        this gets results of installation process.
         N/A N/A N/A log debug N/A N/A blugger has {0} updates in it format N/A N/A self install_collection Count N/A N/A N/A N/A self install_collection Count 0 N/A N/A N/A N/A updates N/A N/A N/A N/A log debug repairing update list N/A i N/A range N/A N/A self install_collection Count N/A N/A N/A N/A updates append N/A N/A {0}: {1} format N/A N/A N/A N/A self install_results GetUpdateResult i ResultCode N/A N/A N/A N/A self install_collection Item i Title N/A N/A N/A log debug Update results enumerated, now making a library to pass back N/A results N/A N/A N/A i update N/A enumerate updates N/A N/A N/A results N/A N/A N/A update {0} format i update N/A N/A N/A log debug Update information complied. returning N/A results N/A GetInstallationResultsPretty N/A N/A self N/A N/A N/A 
        converts the installation results into a pretty print.
         N/A updates N/A N/A self GetInstallationResults N/A ret The following are the updates and their return codes.
 N/A i updates N/A N/A ret N/A N/A 	{0}
 format N/A updates N/A i N/A ret N/A GetDownloadResults N/A N/A self N/A N/A N/A updates N/A N/A i N/A range N/A N/A self download_collection Count N/A N/A N/A N/A updates append N/A N/A {0}: {1} format N/A str N/A N/A N/A N/A self download_results GetUpdateResult i ResultCode N/A str N/A N/A N/A N/A self download_collection Item i Title N/A results N/A N/A N/A i update N/A enumerate updates N/A N/A N/A results N/A N/A N/A update {0} format i update N/A results N/A GetSearchResultsVerbose N/A N/A self N/A N/A N/A updates N/A N/A N/A N/A log debug N/A N/A parsing results. {0} updates were found. format N/A N/A self download_collection count N/A update N/A self download_collection N/A N/A N/A N/A update InstallationBehavior CanRequestUserInput N/A N/A N/A N/A log debug N/A N/A Skipped update {0} format N/A update title N/A N/A update_com_fields N/A Categories Deadline Description Identity IsMandatory KBArticleIDs MaxDownloadSize MinDownloadSize MoreInfoUrls MsrcSeverity ReleaseNotes SecurityBulletinIDs SupportUrl Title N/A simple_enums N/A KBArticleIDs MoreInfoUrls SecurityBulletinIDs N/A update_dict N/A N/A f update_com_fields N/A N/A v N/A getattr update f N/A N/A N/A any N/A N/A isinstance v bool N/A isinstance v str N/A N/A N/A f simple_enums N/A N/A v N/A x N/A x v N/A N/A N/A f Categories N/A N/A v N/A N/A Name Description N/A cat Name N/A cat Description N/A cat v N/A N/A N/A f Deadline N/A N/A N/A N/A N/A f Identity N/A N/A v N/A RevisionNumber UpdateID N/A v RevisionNumber N/A v UpdateID N/A N/A update_dict N/A f v N/A N/A N/A updates append update_dict N/A N/A N/A log debug N/A N/A added update {0} format N/A update title N/A updates N/A GetSearchResults N/A N/A self fields N/A None N/A N/A Reduce full updates information to the most important information. N/A updates_verbose N/A N/A self GetSearchResultsVerbose N/A N/A fields None N/A N/A updates N/A N/A dict N/A N/A k v N/A N/A k v N/A N/A update items N/A k fields N/A update updates_verbose N/A updates N/A N/A N/A update N/A Title N/A update updates_verbose N/A SetCategories N/A N/A self categories N/A N/A N/A N/A self categories categories N/A GetCategories N/A N/A self N/A N/A N/A N/A self categories N/A GetAvailableCategories N/A N/A self N/A N/A N/A N/A self foundCategories N/A SetSkips N/A N/A self skips N/A N/A N/A skips N/A N/A i skips N/A N/A value N/A i N/A N/A next N/A N/A i iterkeys N/A skip N/A next N/A N/A i iterkeys N/A N/A N/A self SetSkip skip value N/A N/A N/A log debug N/A N/A was asked to set {0} to {1} format skip value N/A SetSkip N/A N/A self skip state N/A N/A N/A N/A skip UI N/A N/A N/A self skipUI state N/A N/A N/A skip downloaded N/A N/A N/A self skipDownloaded state N/A N/A N/A skip installed N/A N/A N/A self skipInstalled state N/A N/A N/A skip reboot N/A N/A N/A self skipReboot state N/A N/A N/A skip present N/A N/A N/A self skipPresent state N/A N/A N/A skip hidden N/A N/A N/A self skipHidden state N/A N/A N/A skip software N/A N/A N/A self skipSoftwareUpdates state N/A N/A N/A skip driver N/A N/A N/A self skipDriverUpdates state N/A N/A N/A log debug N/A N/A new search state: 
	UI: {0}
	Download: {1}
	Installed: {2}
	reboot :{3}
	Present: {4}
	hidden: {5}
	software: {6}
	driver: {7} format N/A self skipUI N/A self skipDownloaded N/A self skipInstalled N/A self skipReboot N/A self skipPresent N/A self skipHidden N/A self skipSoftwareUpdates N/A self skipDriverUpdates N/A __str__ N/A N/A self N/A N/A N/A results N/A N/A There are {0} updates, by category there are:
 format N/A N/A self download_collection count N/A category N/A self foundCategories N/A N/A count 0 N/A update N/A self download_collection N/A N/A cat N/A update Categories N/A N/A N/A category N/A cat Name N/A N/A count 1 N/A results N/A N/A 	{0}: {1}
 format category count N/A results N/A N/A _search N/A N/A quidditch retries N/A 5 N/A N/A 
    a wrapper method for the pywinupdater class. I might move this into the class, but right now,
    that is to much for one class I think.
     N/A passed False N/A clean True N/A comment N/A N/A passed N/A N/A N/A N/A log debug N/A N/A Searching. tries left: {0} format retries N/A passed N/A N/A quidditch AutoSearch N/A N/A N/A log debug N/A N/A Done searching: {0} format N/A str passed N/A N/A isinstance passed Exception N/A N/A clean False N/A comment N/A N/A Failed in the seeking/parsing process:
		{0}
 format passed N/A retries 1 N/A retries N/A N/A comment N/A N/A {0} tries to go. retrying
 format N/A str retries N/A N/A comment out of retries. this update round failed.
 N/A N/A comment True retries N/A passed False N/A clean N/A N/A comment Search was done without error.
 N/A N/A comment True retries N/A _download N/A N/A quidditch retries N/A 5 N/A N/A 
    another wrapper method.
     N/A passed False N/A clean True N/A comment N/A N/A passed N/A N/A N/A N/A log debug N/A N/A Downloading. tries left: {0} format N/A str retries N/A passed N/A N/A quidditch Download N/A N/A N/A log debug N/A N/A Done downloading: {0} format N/A str passed N/A N/A isinstance passed Exception N/A N/A clean False N/A comment N/A N/A Failed while trying to download updates:
		{0}
 format N/A str passed N/A retries 1 N/A retries N/A N/A comment N/A N/A {0} tries to go. retrying
 format N/A str retries N/A passed False N/A N/A comment out of retries. this update round failed.
 N/A N/A comment False retries N/A clean N/A N/A comment Download was done without error.
 N/A N/A comment True retries N/A _install N/A N/A quidditch retries N/A 5 N/A N/A 
    and the last wrapper method. keeping things simple.
     N/A passed False N/A clean True N/A comment N/A N/A passed N/A N/A N/A N/A log debug N/A N/A download_collection is this long: {0} format N/A str N/A N/A quidditch install_collection Count N/A N/A N/A log debug N/A N/A Installing. tries left: {0} format N/A str retries N/A passed N/A N/A quidditch Install N/A N/A N/A log info N/A N/A Done installing: {0} format N/A str passed N/A N/A isinstance passed Exception N/A N/A clean False N/A comment N/A N/A Failed while trying to install the updates.
		{0}
 format N/A str passed N/A retries 1 N/A retries N/A N/A comment N/A N/A {0} tries to go. retrying
 format N/A str retries N/A passed False N/A N/A comment out of retries. this update round failed.
 N/A N/A comment False retries N/A clean N/A N/A comment Install was done without error.
 N/A N/A comment True retries N/A list_updates N/A N/A verbose fields skips retries categories N/A False None None 5 None N/A N/A 
    Returns a summary of available updates, grouped into their non-mutually
    exclusive categories.

    verbose
        Return full set of results, including several fields from the COM.

    fields
        Return a list of specific fields for each update. The optional
        values here are those at the root level of the verbose list. This
        is superceded by the verbose option.

    retries
        Number of retries to make before giving up. This is total, not per
        step.

    categories
        Specify the categories to list. Must be passed as a list.

        .. code-block:: bash

            salt '*' win_update.list_updates categories="['Updates']"

        Categories include, but are not limited to, the following:

        * Updates
        * Windows 7
        * Critical Updates
        * Security Updates
        * Update Rollups

    CLI Examples:

    .. code-block:: bash

        # Normal Usage
        salt '*' win_update.list_updates

        # Specific Fields
        salt '*' win_update.list_updates fields="['Title', 'Description']"

        # List all critical updates list in verbose detail
        salt '*' win_update.list_updates categories="['Critical Updates']" verbose=True

     N/A N/A N/A log debug N/A N/A categories to search for are: {0} format N/A str categories N/A updates N/A PyWinUpdater N/A categories N/A N/A N/A N/A updates SetCategories categories N/A N/A N/A updates SetSkips skips N/A N/A comment passed retries N/A _search updates retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A N/A log debug N/A N/A verbose: {0} format N/A str verbose N/A verbose N/A N/A N/A N/A updates GetSearchResultsVerbose N/A N/A N/A updates GetSearchResults fields fields N/A download_updates N/A N/A skips retries categories N/A None 5 None N/A N/A 
    Downloads all available updates, skipping those that require user
    interaction.

    Various aspects of the updates can be included or excluded. this feature is
    still in development.

    retries
        Number of retries to make before giving up. This is total, not per
        step.

    categories
        Specify the categories to update. Must be passed as a list.

        .. code-block:: bash

            salt '*' win_update.download_updates categories="['Updates']"

        Categories include the following:

        * Updates
        * Windows 7
        * Critical Updates
        * Security Updates
        * Update Rollups

    CLI Examples:

    .. code-block:: bash

        # Normal Usage
        salt '*' win_update.download_updates

        # Download critical updates only
        salt '*' win_update.download_updates categories="['Critical Updates']"

     N/A N/A N/A log debug N/A N/A categories to search for are: {0} format N/A str categories N/A quidditch N/A PyWinUpdater skipDownloaded True N/A N/A N/A quidditch SetCategories categories N/A N/A N/A quidditch SetSkips skips N/A N/A comment passed retries N/A _search quidditch retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A comment passed retries N/A _download quidditch retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A N/A comment N/A N/A quidditch GetDownloadResults N/A N/A N/A Exception N/A exc N/A N/A comment N/A N/A could not get results, but updates were installed. {0} format exc N/A N/A N/A Windows is up to date. 
{0} format comment N/A install_updates N/A N/A skips retries categories N/A None 5 None N/A N/A 
    Downloads and installs all available updates, skipping those that require
    user interaction.

    Add ``cached`` to only install those updates which have already been downloaded.

    you can set the maximum number of retries to ``n`` in the search process by
    adding: ``retries=n``

    various aspects of the updates can be included or excluded. This function is
    still under development.

    retries
        Number of retries to make before giving up. This is total, not per
        step.

    categories
        Specify the categories to install. Must be passed as a list.

        .. code-block:: bash

            salt '*' win_update.install_updates categories="['Updates']"

        Categories include the following:

        * Updates
        * Windows 7
        * Critical Updates
        * Security Updates
        * Update Rollups

    CLI Examples:

    .. code-block:: bash

        # Normal Usage
        salt '*' win_update.install_updates

        # Install all critical updates
        salt '*' win_update.install_updates categories="['Critical Updates']"

     N/A N/A N/A log debug N/A N/A categories to search for are: {0} format N/A str categories N/A quidditch N/A PyWinUpdater N/A N/A N/A quidditch SetCategories categories N/A N/A N/A quidditch SetSkips skips N/A N/A comment passed retries N/A _search quidditch retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A comment passed retries N/A _download quidditch retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A comment passed retries N/A _install quidditch retries N/A N/A passed N/A N/A N/A comment N/A str passed N/A N/A N/A comment N/A N/A quidditch GetInstallationResultsPretty N/A N/A N/A Exception N/A exc N/A N/A comment N/A N/A Could not get results, but updates were installed. {0} format exc N/A N/A N/A Windows is up to date. 
{0} format comment N/A