Deep Dive How to Migrate a WSUS Database from WID to SQL in SCCM

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • In this video guide, we will be covering how to migrate WSUS Database (SUSDB) from Windows Internal Database instance to SQL Server instance. Accompanying blog post available at setupconfigmgr... #WSUS #SCCM #ConfigMgr
    Topics in Video:
    Overview of WID limitation and why you want to move to SQL - • Deep Dive How to Migra...
    Review WSUS configuration and how to validate if you are using WID for the SUSDB - • Deep Dive How to Migra...
    Detach SUSDB from the WID instance - • Deep Dive How to Migra...
    Copy WSUS database (SUSDB.mdf and SUSDB_log.ldf) from default WID install path and attach in SQL Instance - • Deep Dive How to Migra...
    Run one-time re-indexing in SQL of the SUSDB since it likely was never done in the WID instance - • Deep Dive How to Migra...
    Remove the WID Connectivity role service (UpdateServices-WidDB) - • Deep Dive How to Migra...
    Install the SQL Server Connectivity role service (UpdateServices-DB) - • Deep Dive How to Migra...
    Run WsusUtil postinstall command and reconfigure WSUS to use a SQL Server instead of WID - • Deep Dive How to Migra...
    Validate WSUS console loads and shows the exact same data as before the move - • Deep Dive How to Migra...
    Validate SCCM software update point sync works from WSUS - • Deep Dive How to Migra...
    Commands and Notes:
    Connect to WID instance in SQL Management Studio of sqlcmd (Server 2012 or Newer): \\.\pipe\MICROSOFT##WID\tsql\query
    Connect to WID instance in SQL Management Studio of sqlcmd (Server 2008 R2 or Older): \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
    Powershell command to see WSUS installed role services: Get-WindowsFeature -Name UpdateServices*
    Powershell command to remove WSUS WidDB: Remove-WindowsFeature -Name UpdateServices-WidDB
    Powershell command to install WSUS SQL Database Connectivity: Install-WindowsFeature -Name UpdateServices-DB
    WsusUtil command: WsusUtil.exe postinstall SQL_INSTANCE_NAME=”SCUP.CONTOSO.LOCAL” CONTENT_DIR=”J:\WSUS”
    SQL_INSTANCE_NAME and CONTENT_DIR should be changed to for your environment details
    Helpful Resources:
    sqlcmd Utility - docs.microsoft...
    Migrating the WSUS Database from WID to SQL - docs.microsoft...
    Re-index the WSUS 3.0 Database - gallery.techne...

ความคิดเห็น • 39

  • @pedrohenriqueconstantino827
    @pedrohenriqueconstantino827 3 ปีที่แล้ว +1

    video more precious, clearer and more objective than this one doesn't exist. Excellent, congratulations!

    • @PatchMyPC
      @PatchMyPC  3 ปีที่แล้ว

      Thanks for watching!

  • @Hollywood-xb7xm
    @Hollywood-xb7xm 5 ปีที่แล้ว +2

    Went thru your video and performed this task with zero issues. Thank you so much for the video's, learning a lot.

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      Thanks for watching

  • @ParmodKumar-wi1li
    @ParmodKumar-wi1li 5 ปีที่แล้ว +1

    Crystal clear. Wonderful work as always. I wait for your videos like a bonus :)

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      Thanks for watching!

  • @ariksan
    @ariksan 2 ปีที่แล้ว

    Thank you for that. Some joker (not me) pre-configured WSUS with WID on a server that slated to become the SUP and another joker (me) did not check before the site install.

    • @PatchMyPC
      @PatchMyPC  ปีที่แล้ว

      Thanks for watching.

  • @BadDudesVsFletch
    @BadDudesVsFletch 5 ปีที่แล้ว +1

    Very impressed - clear and precise instructions, nice one. I had to move my DB to another server so i had to research permissions etc - apart from that spot on :D

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      Thanks for watching

  • @stang7043
    @stang7043 5 ปีที่แล้ว +1

    Awesome tutorial. Clean and to the point. I did run into some problems though. I was getting connection refused errors in WCM.log. If anyone uses an unc path as their content folder you should check in iis physical path under the content folder in basic or advanced settings. Also, I had to edit authentication for the iis content folder under anonymous to use the app pool account instead of IIS_IURS.

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      Definitely need to make those changes in IIS for UNC WSUS Content good catch. I do specifically cover that in this guide as well setupconfigmgr.com/using-a-shared-wsus-database-for-multiple-sups-in-sccm

  •  9 หลายเดือนก่อน

    I enjoyed every single explanation I did on your video. Congratulations! Just only one question: My SQL Server is a remote server other than yours because you use a local server. Because that you didn't provide user name and password to conect to SUSDB in your server. What can I do to inform username and password instead of using my own logged on username?

  • @ashwing2927
    @ashwing2927 5 ปีที่แล้ว +1

    Awesome Demo..thanks a lot

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @overthrow3640
    @overthrow3640 4 ปีที่แล้ว +1

    EPIC!!!! thanks!!!

    • @PatchMyPC
      @PatchMyPC  4 ปีที่แล้ว

      Glad you liked it!

  • @josiasperez03
    @josiasperez03 4 ปีที่แล้ว +2

    Hello after all those steps wsus downloads updates but client pcs are not downloading the updates stays in 0% , take in mind it was working ok before movin to sql, long story sort there was an error in wid database that the only solutions was to migrate to sql.

    • @PatchMyPC
      @PatchMyPC  4 ปีที่แล้ว

      WSUS with SCCM?

    • @josiasperez03
      @josiasperez03 4 ปีที่แล้ว

      @@PatchMyPC only wsus wServer 2012 , if the downloading doesnt succeeds it throws Downlaod error 0% 0x80070020

    • @josiasperez03
      @josiasperez03 4 ปีที่แล้ว

      @@PatchMyPC hello

  • @HeyRadu
    @HeyRadu 5 ปีที่แล้ว +1

    Hi Justin, great tutorial as always ! Thank you.
    Is the WSUS database supported on a SQL Always ON migration scenario as well ?

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      Not sure about that one, I suspect it would probably work fine, but I haven't checked the docs to see if it's supported.

  • @ehabgalal9181
    @ehabgalal9181 5 ปีที่แล้ว +1

    Thank you for this great video
    But sorry to ask you something outside this video
    I have noticed that third party update like 7zip and chrome are shown in WSUS
    But this is not my case in my environment
    I am using patchmypc with publish software

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว

      In this lab, we had the option to make third-party updates visible in WSUS in the advanced tab of our service. This doesn't need to be configured if you are using SCCM to deploy updates though. - Justin

    • @ehabgalal9181
      @ehabgalal9181 5 ปีที่แล้ว +1

      @@PatchMyPC Thank you for your clarification

  • @michaelchakrabarty7625
    @michaelchakrabarty7625 4 ปีที่แล้ว

    I don't have the Server listed in SQL services (mssqlserver) so I cannot connect to it using SQL studio. There are plenty of other SQL services like Sophos,Net2 etc, but not the MSSQLServer service. What do I need to enable/install to make the server itself connectable in SQL studio?

    • @PatchMyPC
      @PatchMyPC  4 ปีที่แล้ว

      You need to install SQL server, covered in the first how to install sccm video I did

  • @Doyle2k5
    @Doyle2k5 5 ปีที่แล้ว +1

    How do you have things such as 7-zip, Chrome, and Java in WSUS?

    • @PatchMyPC
      @PatchMyPC  5 ปีที่แล้ว +1

      patchmypc.com

  • @veikoplays
    @veikoplays 3 ปีที่แล้ว

    No need for "SQL Server Connectivity" feature? I did the migration, all works, just wondering...

    • @PatchMyPC
      @PatchMyPC  3 ปีที่แล้ว

      SQL connectivity should be enabled for WSUS if you use SQL

  • @travismkirk
    @travismkirk 4 ปีที่แล้ว

    Hey Justin, I am getting the following error when trying to attach my SUSDB.mdf and SUSDB_Log.ldf An Error has occurred when attaching the database. Click on the hyperlink in the messages column for details. Any ideas?

    • @travismkirk
      @travismkirk 4 ปีที่แล้ว +1

      I found out my answer. The database SUSDB cannot be opened because it is version 782. This server only supports version 706 and earlier. A downgrade path is not supported.

    • @PatchMyPC
      @PatchMyPC  4 ปีที่แล้ว

      Thanks for the followup

  • @cobaink
    @cobaink 2 ปีที่แล้ว

    This didnt work for me \\. \pipe\MICROSOFT##WID\tsql\query

    • @PatchMyPC
      @PatchMyPC  2 ปีที่แล้ว

      www.ajtek.ca/wsus/how-do-i-connect-to-the-windows-internal-database-wid/

  • @SMeyerNYC
    @SMeyerNYC 5 ปีที่แล้ว +1

    Microsoft should just link to you lol