OSDeploy | Sune Thomsen
TwitterLinkedInWindows 365 CommunityMVP ProfileGitHub
  • Home
  • Blog
    • Microsoft Intune
      • How to migrate BitLocker key(s) from all fixed drives to Microsoft Entra ID.
      • Migrate Bitlocker Recovery Key(s) to Azure AD with Proactive Remediation
      • Migrate imported GPOs to Intune with Group Policy analytics (preview)
      • Group Policy analytics (preview) made a bit easier with PowerShell
      • Analyze on-premises GPOs with MEM Group Policy Analytics (preview)
    • Virtual Machine
      • Fix the Hyper-V virtual switches after updating to Windows 11 (22H2)
    • 🆕Windows 365
      • 🆕Windows 365 Boot: Why User-Driven Mode?
      • 🆕Enhancing Security With Intune MAM (preview) for Windows 365
      • The Concept of Windows 365 Switch
      • The Concept of Windows 365 Boot
      • The Concept of Windows 365 Frontline
      • Move Cloud PCs to a new Azure Region or Azure Network Connection
      • Windows 365 End-User Experience (Tips & Tricks) – Part 4. Windows 365 app and Cloud PC reporting
      • Windows 365 End-User Experience (Tips & Tricks) – Part 3. Multimedia Redirection
      • Windows 365 End-User Experience (Tips & Tricks) – Part 2. Teams Optimization, SSO, and Localization
      • Windows 365 End-User Experience (Tips & Tricks) – Part 1. Connection experience
      • How to Configure Windows 365 Azure AD Join Single Sign-on (SSO)
      • Keep Windows 365 current and stay current with Windows Autopatch
      • Provide the end-users with a localized Windows 365 Cloud PC experience
      • How to configure Windows 365 Enterprise Azure AD join
      • How to secure Windows 365 using a FIDO2 security key
      • Prevent sensitive information from being captured on Windows 365 CPCs
      • Manage local administrator rights on Windows 365 Cloud PCs.
      • How to create a custom image for Windows 365 Enterprise Cloud PCs
      • How to reprovision existing Cloud PC (Windows 365) to Windows 11
      • How to configure Windows 365 Enterprise in Microsoft Endpoint Manager
  • Archive
    • Deployment
      • OSDCloud: The ZTI Way
      • OSDBuilder: WinPE Customization
    • Microsoft Configuration Manager
      • ConfigMgr: Run "All" Client Actions During OSD
      • ConfigMgr: WIM Your Applications Like a Boss
      • ConfigMgr: Deploy UWP Applications During OSD
      • ConfigMgr: Building a Basic LAB Environment
        • Part 1 - Installing Windows 10 (1909) on the Host
        • Part 2 - The Host and Hyper-V Configuration
        • Part 3 - Setting up the Domain Controller
          • Active Directory
          • DHCP
          • DNS
        • Part 4 - Setting up Microsoft Endpoint Configuration Manager
          • Prerequisites
          • SQL
        • Part 5 - Setting up Discovery Methods and Boundaries
        • Part 6 - Setting up Software Update Point
      • ConfigMgr: Splash Screen for Driver and BIOS Update
      • ConfigMgr: Global Conditions for Dell WD15 Dock Detection
    • Microsoft Intune
      • Block personally owned devices in Intune with enrollment restrictions
      • Remove Windows 10 built-in apps with Intune & Microsoft Store for Business Apps
    • Windows
      • Win10: Multi-Language Toast Notifications
        • Toast Notification: Low Disk Space
  • Links
    • Blogs
    • Microsoft
    • Scripts
Powered by GitBook
On this page
  • BEFORE YOU BEGIN
  • SOFTWARE UPDATE POINT
  • Software Update Point Role
  • Classifications & Products
  • SQL & WSUS MAINTENANCE
  • Prerequisites
  • SQL Maintenance
  • WSUS Maintenance

Was this helpful?

  1. Archive
  2. Microsoft Configuration Manager
  3. ConfigMgr: Building a Basic LAB Environment

Part 6 - Setting up Software Update Point

02-10-2021 9:42 PM

PreviousPart 5 - Setting up Discovery Methods and BoundariesNextConfigMgr: Splash Screen for Driver and BIOS Update

Last updated 4 years ago

Was this helpful?

BEFORE YOU BEGIN

Disclaimer: All information and content in these blog posts is provided without any warranty whatsoever. The entire risk of using this information or executing the provided content remains with you. Under no circumstances should Microsoft, its author, or anyone else involved in the creation of these blog posts be held liable for any damage or data loss.

SOFTWARE UPDATE POINT

In my previous blog post we completed the configuration of discovery methods and boundaries. In Part 6 I will be setting up the Software Update Point role in Microsoft Endpoint Configuration Manager and I will give you a walk-through of my maintenance configuration for SQL and WSUS.

This blog post does not cover the Windows Server Update Services (WSUS) role configuration on the server, but it is covered in

WHAT IS A SOFTWARE UPDATE POINT?

A Software Update Point (SUP) is a role configured in Microsoft Endpoint Configuration Manager which interacts with the WSUS to configure the software update settings and to request synchronization of software updates metadata.

The software update point is required if you wish to enable software updates compliance assessment and to deploy updates to the clients through Microsoft Endpoint Configuration Manager. The SUP role must be installed and configured on the central administration site (CAS) first, then on the primary site server and optionally on a secondary site server.

Many organizations do not use central administration site, so when you have a stand-alone primary site, install and configure the software update point on the primary site server first, and then optionally, on a secondary site server.

Read more about Software Update Point

Since I've already prepared the Windows Server Update Services (WSUS), let's get started with configuring the software update point role in Microsoft Endpoint Configuration Manager.

Software Update Point Role

Step 1. Type "Configuration" in the search line next to the start button, and click "Configuration Manager Console"

Step 2. Navigate to "Administration" and expand the "Site Configuration", now select "Servers and Site System Roles", right-click on your site server name and select "Add Site System Roles"

Step 3. Click "Next"

Step 4. Click "Next"

Step 5. Select "Software update point" from the role list and click "Next"

Step 6. Click "Next"

Step 7. Click "Next"

Step 8. Select "Synchronize from Microsoft Update" and click "Next"

Step 9. Select "Enable Synchronization on a schedule", configure it to every 1 day and click "Next"

Step 10. Set "Supersedence behavior" to 1 month or keep the default value (3 months) and click "Next"

Step 11. Select all maintenance options and click "Next"

Step 12. Click "Next"

Step 13. Select "Download full files for all approved updates" and click "Next"

Step 14. Do not select any "Classifications" at this point, click "Next"

Step 15. Do not select any "Products" at this point, click "Next"

Step 16. Select the desired languages and click "Next"

Step 17. Click "Next" and then click "Close" when the setup is complete.

Step 18. Go to the Microsoft Endpoint Configuration Manager log location and review the SUPSetup.log

You should see a line in the log that says: Installation was successful.

Step 19. In the console go to "Software Library" and expand "Software Updates", select "All Software Updates" which should be empty at this point. Now click on "Synchronize Software Updates"

Step 20. Click "Yes"

Step 21. Go to the Microsoft Endpoint Configuration Manager log location and review the wsyncmgr.log

You should see a line in the log that says: Sync succeeded.

Classifications & Products

We are now finally ready for the classifications and products configuration.

Step 1. Navigate to "Administration" and expand the "Site Configuration", select "Sites", right-click on your site name, expand the "Configure Site Components" and select "Software Update Point"

Step 2. Select the "Classifications" tab and select the ones you need.

Step 3. Select the "Products" tab and select the ones you need.

Step 4. In the console go to "Software Library" and expand "Software Updates", select "All Software Updates" which should still be empty at this point. Now, click on "Synchronize Software Updates"

Step 5. Click "Yes"

Step 6. Go to the Microsoft Endpoint Configuration Manager log location and review the wsyncmgr.log

You should see a line in the log that says: sync: Starting WSUS synchronization

Step 7. Okay, so almost 5 hours later and it is finally done!

You should see a line in the log that says: Done synchronizing WSUS Server

SQL & WSUS MAINTENANCE

Now that the software update point for this LAB has been configured and synchronized, let's continue with the SQL and WSUS maintenance which is important in order to prevent the whole house of cards from collapsing in the future - We have all been there at one point, right ?

Prerequisites

SQL Maintenance

Step 1. Type "SQL Server Management" in the search line next to the start button, and click "Microsoft SQL Server Management Studio 18"

Step 2. Click "Connect"

Step 4. Modify the configuration or keep the defaults and click "Execute"

Step 5. You should see a line in the messages pane that says: Commands completed successfully.

Step 6. Expand the "SQL Server Agent", right-click on "Jobs" and select "Manage Schedules"

Step 7. Click "New..."

Step 8. Configure the new job schedule to fit your needs or use my configuration in the below print screen and click "OK"

Note. I recommend running the SQL maintenance before the WSUS maintenance.

Step 9. Expand the "Jobs", right-click "IndexOptimize - USER_DATABASES" and select "Properties"

Step 10. On the "Steps" page, click "New..."

Step 11. Give the step a name, add a command that the step should run once a week and click "OK"

EXECUTE dbo.IndexOptimize
@Databases = 'SUSDB',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@SortInTempdb = 'Y',
@MaxDOP = 0

Step 12. On the "Schedules" page, click "New...", select the job schedule previously created in step 8 and click "OK" twice.

Step 13. Open the "Job Activity Monitor", right-click on "IndexOptimize - USER_DATABASES" and select "Start Job at Step..."

Step 14. Click "Close" when it's done.

Step 15. Right-click on "IndexOptimize - USER_DATABASES" again and now select "View history"

Step 16. Expand the log and review the details.

You should see that the last messages says: The step succeeded.

WSUS Maintenance

Step 1. Download the WSUSCleanupTask.ps1 and WSUSCleanupTask.xml from my GitHub repository and place it somewhere on your WSUS server.

Important - Before proceeding with step 2, you need to modify the WSUSCleanupTask.ps1 configuration.

#Configuration

$UseSSL = $False <-- HTTPS or HTTP (Mandatory)
$PortNumber = 8530 <-- Port for HTTPS or HTTP (Mandatory)
$Server = "cm.domain.local" <-- FQDN of the WSUS Server (Mandatory)
$ReportLocation = "E:\WSUS\CleanupReport.html" <-- Report location (Mandatory)
$SMTPServer = "mail.domain.com" <-- FQDN of the mail server (Optional)
$SMTPPort = 25 <-- SMTP Port (Optional)
$To = "Full Name <user@domain.com>" <-- Mail recipient (Optional)
$From = "System Notify <system.notify@domain.com>" <-- Mail sender (Optional)

Step 2. Type "Task Scheduler" in the search line next to the start button, and click "Task Scheduler"

Step 3. Click "Import Task..." from the "Actions" pane and import the WSUSCleanupTask.xml previously downloaded from my GitHub repository. Make the necessary changes so it will fit your environment e.g. when should it run and where is the script located? Click "OK" when finish.

Step 4. Select the "General" tab and make sure that the configuration is correct for your environment.

Step 5. Select the "Triggers" tab and make sure that the configuration is correct for your environment.

Step 6. Select the "Actions" tab and make sure that the configuration is correct for your environment.

Step 7. Select the "Conditions" tab and make sure that the configuration is correct for your environment.

Step 8. Select the "Settings" tab and make sure that the configuration is correct for your environment.

Step 9. Run the scheduled task and look for any issues in the "History" tab.

Step 10. If the scheduled task ran successfully, you should see a CleanupReport.html in the location that you defined earlier in the WSUSCleanupTask.ps1 configuration and if you open the report, you can see which job was performed by the script.

This should conclude setting up the Software Update Point role in Microsoft Endpoint Configuration Manager and the maintenance configuration for SQL and WSUS.

This WILL take a while to finish, so go grab a coffee, go for a walk or go to bed (I'll let you decide...)

Step 8. You should now see the software updates in the console. Fantastic

In my search for a maintenance solution, I found a blog post by which led me to a PowerShell script created by and a SQL script created by

You can read Kent's entire blog post

Download WSUS Script & Scheduled Task

Download SQL Script

Step 3. Click "File" -> "Open" -> "File..." or "Ctrl+O". Now, select the MaintenanceSolution.sql script previously downloaded from website.

You can use my command below or find inspiration at website

Now, Part 7 was actually on the drawing board, but I've decided that Part 6 will be the last one in this blog series. I will continue to blog about Endpoint Management in the 2021 section, this has been an awesome and a long blog series but I know that it has helped others and that makes it all worthwhile to me

If you have any questions regarding this topic, feel free to reach out to me. I am most active on !

😎
🤩
🤓
Kent Agerlund
Kaido Järvemets
Ola Hallengren
here
here
here
Ola Hallengren's
Ola Hallengren's
here
Twitter
Part 5
Part 4
here
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
Configuration Manager - Software Update Point
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
SQL Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance
WSUS Maintenance