Skip to main content

1E 23.11 (SaaS)

Patch.Restart

Method

Restart

Module

Patch

Library

Core

Action

Microsoft-suggested procedure to fix Windows Update Agent problems, which has optional steps that include a restart of the Windows Update service.

Parameters

SkipDeleteQmgr (bool; default true): Skip the step that deletes 'qmgr*.dat' on directory '%ALLUSERSPROFILE%/Application Data/Microsoft/Network/Downloader

SkipRegSvr32 (bool; default true): Skip the step that force COM registration of Patch required dlls.

SkipResetBits (bool; default true): Skip BITS service restart. Some changes may only be visible after restart.

SkipResetWinsock (bool; default true): Skip Winsock reset.

SkipResetWUA (bool; default true): Skip 'wuauserv' service restart. Some changes may only be visible after restart.

Return values

For each operation performed on the device:

Description (string): Description of any error encountered whilst performing the operation, for example 'DllRegisterServer Not Found

Name (string): Name of the operation performed, for example 'Stopping service wuauserv'

Status (string): Status of the operation, for example 'Ok'

Example

Fix Windows Update Agent problems

Patch.Restart(SkipResetWUA: false);

Platforms

  • Windows

Notes

See https://docs.microsoft.com/en-gb/windows/deployment/update/windows-update-resources for details.