Windows Server Update Services (WSUS)
  • 14 Jun 2022
  • 5 Minutes to read
  • Dark
    Light
  • PDF

Windows Server Update Services (WSUS)

  • Dark
    Light
  • PDF

Windows Server Update Services (WSUS), previously Software Update Services (SUS), enables administrators to manage the distribution of updates and hotfixes released for Microsoft products.

Types of Assets Fetched

This adapter fetches the following types of assets:

  • Devices

Parameters

  1. WSUS Server (required) - The IP/FQDN hostname of the Windows Server Update Services (WSUS) server.

  2. User Name and Password (required) - The credentials for a user account that has the Required Permissions to execute PowerShell code which queries the WSUS server for information on the systems managed by that server.

  3. WSUS Service Port (optional, default: 8350) - Specify the WSUS Database Service port to connect to. By default, WSUS is configured to use HTTP (non-SSL) over port 8350, and HTTPS (SSL) over port 8351.

    • If WSUS Service Port is left blank and Use SSL for WSUS Service Connection is not selected, port 8350 is used.
    • If WSUS Service Port is left blank and Use SSL for WSUS Service Connection is selected, port 8351 is used.
    • This configuration is overridden when Do Not Pass Arguments to Get-WsusServer is selected. In that case, the PowerShell command displays "Get-WsusServer", regardless of the Service Port configuration,
  4. Use SSL for WSUS Service Connection (optional, default: False) - Use SSL for the PowerShell connection to the WSUS Server (by default, uses port 8351). If not selected, uses the port 8350 (or the configured service port) and no SSL.

    • When selected, the PowerShell command displays: Get-WsusServer -Name {hostname} -Port {port or 8351} -UseSsl
    • When not selected, the PowerShell command displays: Get-WsusServer -Name {hostname} -Port {port or 8350}
    • This setting is overridden when Do Not Pass Arguments is selected. In that case, the PowerShell command displays “Get-WsusServer” regardless of the Use SSL setting.
  5. Do Not Pass Arguments to Get-WsusServer (optional, default: False) - Select this option for older versions of the WSUS server that do not support WSUS Service Port or Use SSL for WSUS Service Connection options.

    • When selected, the PowerShell command displays "Get-WsusServer" with no arguments, regardless of the values of the WSUS Service Port and Use SSL for WSUS Service Connection options.
    • When not selected, the PowerShell command is modified according to the WSUS Service Port and Use SSL for WSUS Service Connection options.
  6. Custom Share Name (optional, default: False) - If you do not have local Admin access, specify the name of a share to use instead of 'ADMIN$' for SMB operations. For more information, see Creating a Custom Share.

  7. Custom Files Directory (optional, default: False) - Specify the name of a file directory to use instead of 'axonius'.

  8. Custom Working Directory (optional, default: False) - If file sharing is restricted in the domain, specify the physical path of the share specified in Custom Share Name.

  9. For details on the common adapter connection parameters and buttons, see Adding a New Adapter Connection.

Note:

The WSUS adapter uses WMI

WSUS_2-3-22


Advanced Settings

Note:

From version 4.6 Advanced settings can either apply for all connections for this adapter, or you can set different advanced settings and/or different scheduling for a specific connection, refer to ​Advanced Configuration for Adapters

  • Number of assets to fetch per page (required, default: 20) - Set the number of results per page, to gain better control on the performance of all connections of for this adapter.
NOTE

For details on general advanced settings under the Adapter Configuration tab, see Adapter Advanced Settings.

Required Ports

  • 135(RPC)
  • 445 (SMB)
  • Random port in the range 1024-65535

Setting up a fixed port for WMI

The WSUS adapter uses WMI.
You need to set up a fixed port to work with WMI.
WMI runs as part of a shared service host with ports assigned through DCOM by default. However, you can set up the WMI service to run as the only process in a separate host and specify a fixed port. For more details, see Microsoft Documentation - Setting Up a Fixed Port for WMI.



To set up a fixed port for WMI:

  1. At the command prompt, type:
winmgmt -standalonehost
  1. Stop the WMI service by typing:
net stop "Windows Management Instrumentation"

or:

 net stop winmgmt
  1. Restart the WMI service again in a new service host by typing:
net start "Windows Management Instrumentation" 

or:

net start winmgmt
  1. Establish a new port number for the WMI service by typing (e.g. the following example will establish port TCP 24158):
netsh firewall add portopening TCP 24158 WMIFixedPort



To undo any changes you make to WMI, type:

winmgmt /sharedhost

Then stop and start the winmgmt service again.

Creating a Custom Share

You can create a custom share and directory instead of ADMIN$ \ axonius. A custom share that is properly configured enables you to not require full local admin permissions to fetch data.

To create a custom share:

  1. Create a local user, such as ‘axonius-usr’.

  2. Add the user to the following groups:

    • WSUS Administrators
    • WSUS Reporters
    • Distributed COM Users
    • Remote Management Users
  3. Create a directory for Axonius to use to store temporary files and to serve as a working directory, for example: C:\axonius
    The name of this directory may be used later in the adapter configuration for WSUS in Axonius.

  4. Grant the following permissions to the local user:

    • Read
    • Write
    • Modify
    • Execute (or full control) permissions on the custom directory, subdirectories, and files
  5. Share the directory that you created by using Sharing or Advanced Sharing. Verify that the local user has full permissions for this share. Specify a descriptive name for the shared directory, preferably a name which ends with a dollar-sign, such as: AxoniusShare$
    The name of this share will be used later in the adapter configuration for WSUS in Axonius.

  6. Open WMI Management (wmimgmt.msc). Under Security, select Root (minimal: root/cimv2) namespace.

  7. Click Security. Add the local user.

  8. Click Advanced.

  9. From the Applies to dropdown, select This namespace and subnamespaces.

  10. Under the Allow column for the local user, select the Execute Methods, Enable Account, and Remote Enable options, and then click OK.

  11. In Axonius, verify that the Custom Share Name and Custom Files Directory parameters are configured. The adapter will attempt to create the specified directory under the share.

  12. If the above step fails, it means some sharing options are not enabled on the server. In such a case, add the full path to the share under Custom Working Directory.

Note: When using Custom Working Directory, this directory must be identical to all WSUS adapter connections, and needs to be specified in all adapter connections, even if using a local admin. Only use this option as a last resort.

Required Permissions

The value supplied in User Name and Password must be able to execute PowerShell code which queries the WSUS server for information on the systems managed by that server.
The supplied User Name must have the following permissions:

  • Local admin permissions. Alternatively, ensure that you have full read/write/execute/delete/modify permissions for subholders and files.
  • Access RPC on the WSUS server.
  • Execute PowerShell on the WSUS server and access the IPC$ share on the WSUS server.
  • Read and Write Access to ADMIN$ share on the WSUS server. Alternatively, create an 'axonius' folder inside the \localhost\ADMIN$\ directory and ensure the Axonius account has Full Permissions to read and write to this newly created folder.



What's Next
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.