- Joined
- Mar 14, 2023
- Messages
- 42,441
Ah, the infamous 0x800f081f error! This indicates that DISM couldn't locate the required files to repair the corrupted component store. This often happens in Server environments if the files can't be retrieved from Windows Update (e.g., WSUS restrictions, network issues, or missing source files on disk). No worries—we can handle this.
Here’s what to do:
If using
If your source file is
Here’s what to do:
Step 1: Use the Source Option with DISM
We’ll point DISM to a source file to repair the component store. You’ll need access to a Windows Server 2022 installation ISO (matching your version 21H2, Build 20348.272) or install.wim/ESD from a trusted source.Steps:
- Mount the Windows Server ISO:
- Insert or mount the ISO on the server.
- Note the drive letter assigned (e.g.,
D:
).
- Locate the
install.wim
File:- Navigate to the
Sources
folder on the mounted ISO:
Code:D:\Sources\install.wim
- Alternatively, if the file is
install.esd
, this can also work (slightly different syntax—details below).
- Navigate to the
- Run DISM with the Source Option:
Use the path toinstall.wim
as your source:
Code:bash dism /online /cleanup-image /restorehealth /source:WIM:D:\sources\install.wim:1 /limitaccess
- Replace
D:
with your ISO’s drive letter. - Note the
:1
specifies the correct image index for the Standard Edition. If unsure, identify the exact index in Step 4 below.
- Replace
- [Optional] List Available Image Indices:
If you’re unsure of the correct index, list the available editions in the WIM/ESD file:
Code:bash dism /Get-WimInfo /WimFile:D:\sources\install.wim
- Look for
Windows Server 2022 Standard
to find the right index number.
- Look for
If using install.esd
:
If your source file is install.esd
rather than install.wim
, use:
Code:
bash dism /online /cleanup-image /restorehealth /source:ESD:D:\sources\install.esd:1 /limitaccess
- Retry After Repair:
Once DISM completes successfully, retry installing KB5046616.
Step 2: Ensure Component Store Uses Microsoft Update
Sometimes WSUS or restricted network policies block DISM from downloading required files. Let’s ensure DISM has access to Microsoft’s online repositories.- Temporarily point your system away from WSUS (if applicable):
- Open Group Policy Editor (
gpedit.msc
). - Navigate to:
Code:Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
- Disable "Specify intranet Microsoft update service location".
- Open Group Policy Editor (
- Run
gpupdate /force
to apply changes. - Retry the original DISM command (without
/source
) to see if it can now pull files from Microsoft:
Code:bash dism /online /cleanup-image /restorehealth
Step 3: Check the DISM Log
If the error persists, check C:\WINDOWS\Logs\DISM\dism.log for clues on:- What files are missing.
- Whether DISM is looking at the correct paths.
Step 4: As a Last Resort, Repair via In-Place Upgrade
If nothing else works (and errors persist), you can repair the component store via an in-place upgrade repair:- Mount the Windows Server 2022 ISO.
- Run
setup.exe
from the mounted ISO. - Select Upgrade and ensure you keep files and apps intact.
Summary
- Use
install.wim
(orinstall.esd
) from an ISO matching your build as the source in DISM. - Retry pointing systems to Microsoft Update if you suspect WSUS/network restrictions.
- Check the DISM logs if errors still occur.
- Thread Author
- #42
- Joined
- Mar 14, 2023
- Messages
- 42,441
It seems like finding the standalone Servicing Stack Update (SSU) for 21H2 Build 20348.x directly via the Microsoft Update Catalog has hit a dead end. This likely means the SSU for 20348.x is rolled into the cumulative updates, and there isn’t a separate download for it anymore. No problem—here's how you can proceed:
Retry
Step 1: Ensure You’re Fetching Correct Files for Repairs
To resolve the missing servicing stack issue and proceed with the cumulative update installation, let’s repair the system using a matching Windows Server 2022 ISO (Build 20348.272 or higher).Getting the Correct ISO:
- Obtain the ISO matching your build:
- Log into your Microsoft Volume Licensing Service Center (VLSC) or contact your licensing provider to obtain the correct ISO file for Windows Server 2022.
- Alternatively, Microsoft Evaluation Center offers Windows Server 2022 ISOs for evaluation. Ensure it matches build 20348.x.
- Once the ISO is downloaded, continue with DISM repairs as outlined in this section above.
Step 2: Use Online Sources for Repair
Let’s try connecting DISM directly to Microsoft Update to bypass the need for matching ISO components.- Run the DISM repair command with online sources:
Code:bash dism /online /cleanup-image /restorehealth /source:MicrosoftUpdate
- This ensures DISM pulls necessary files directly from Microsoft.
- If Microsoft Update access is blocked, disable WSUS temporarily:
- Go into Group Policy:
Code:Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
- Disable (or clear) the "Specify intranet Microsoft update service location" policy.
- Run:
Code:bash gpupdate /force
- Retry the repair.
- Go into Group Policy:
Step 3: Manually Reinstall Relevant Updates (Latest Cumulative Includes SSU)
If DISM repairs don’t work, you can manually attempt to install the full cumulative update again, as these usually include the necessary SSU.Retry KB5046616
- Ensure you have the correct KB for cumulative update KB5046616.
- Download it directly from the Microsoft Update Catalog:
- Search:
KB5046616 for Server 2022 x64
.
- Search:
- Verify the exact build (should already match 20348.x).
- Download it directly from the Microsoft Update Catalog:
- Attempt to install it manually:
Code:bash wusa \kb5046616-x64.msu
- If WUSA (Windows Update Standalone Installer) fails, switch to:
Code:bash dism /online /add-package /packagepath:\kb5046616-x64.msu
- If WUSA (Windows Update Standalone Installer) fails, switch to:
Step 4: Final Option—In-Place Upgrade Repair
If the SSU cannot install and servicing stack issues persist, an in-place upgrade repair might be the best course. This overwrites update-related files and reinstalls components while keeping your applications and settings intact.Steps:
- Mount a Windows Server 2022 installation ISO with 20348.x or higher.
- Run
setup.exe
from the mounted ISO. - Choose Upgrade this PC and ensure you select Keep Files and Programs.
Summary
- Download the correct Windows 2022 ISO (20348.x) and attempt to repair via DISM.
- Temporarily switch to Microsoft Update if WSUS policies or restrictions are in the way.
- If SSU and servicing stack issues persist, perform an in-place repair upgrade.
- Thread Author
- #44
- Joined
- Mar 14, 2023
- Messages
- 42,441
Unfortunately, I am unable to directly download or locate an ISO for you due to system restrictions, but here's a clear guide for you to obtain the proper Windows Server 2022 ISO (21H2, Build 20348.x) that matches your configuration.
If you encounter any issues navigating these resources or verifying the ISO, let me know, and I’ll guide you further to ensure you're on the right track!
Option 1: Microsoft Volume Licensing Service Center (VLSC)
- Log into the VLSC Portal if you have volume licensing with Microsoft.
- Search for Windows Server 2022 Download.
- Ensure the build is 20348.x (21H2) corresponding to your version:
- Most builds available through VLSC will align with the latest LTSC (Long-Term Servicing Channel) releases for Server 2022.
Option 2: Microsoft Evaluation Center
If you don’t currently have access to VLSC, the Microsoft Evaluation Center provides an official and trustworthy way to download evaluation versions of Windows Server 2022.- Visit: Windows Server 2022 Evaluation.
- Click Download the ISO.
- Fill in the form to activate the download.
- Once downloaded, confirm that the build matches 20348.x by mounting the ISO and examining file properties or running the following:
Code:bash dism /Get-WimInfo /WimFile:\sources\install.wim
ImageVersion
orDisplayVersion
corresponding to 21H2 Windows Server 2022.
Option 3: Azure Marketplace
If you use Azure for virtualized environments or testing:- Access the Azure Portal.
- Search for Windows Server 2022 in your virtual machine image gallery.
- Deploy a Windows Server 2022 VM and use its deployed resources for testing or repairing your local system (e.g., downloading the ISO or performing a network-based repair).
Option 4: MSDN / Visual Studio Subscription
If you have an MSDN account with a Visual Studio subscription:- Log into your Visual Studio Benefits page.
- Look for Windows Server 2022 ISO within the Software section.
ISO Matching Your Build
Before downloading, ensure:- It is Windows Server 2022 (21H2).
- The build number is 20348.x or later—this is critical for compatibility with your current installation.
- Mount the ISO.
- Use DISM or an in-place upgrade for repair.
If you encounter any issues navigating these resources or verifying the ISO, let me know, and I’ll guide you further to ensure you're on the right track!
- Joined
- Mar 14, 2023
- Messages
- 42,441
Here are some reliable options for downloading the Windows Server 2022 (21H2) ISO corresponding to build 20348.x. Please ensure that you double-check the source to guarantee an authentic and untampered ISO:
When you download the ISO and need assistance repairing your server or mounting it for DISM purposes, just let me know, and I can guide you through!
Official Microsoft Sources:
- Microsoft Evaluation Center
- Download Windows Server 2022 ISO (Evaluation)
- This is the official Microsoft portal to download evaluation versions of Windows Server 2022 that match your version (build 20348.x). You can later insert your license to activate it fully.
Community Archive (Use with Caution):
- Internet Archive (Archive.org):
- Windows Server 2022 LTSC 21H2 Build 20348.1006
- This includes specific builds but should be verified thoroughly after downloading.
Other Methods
- Azure Virtual Machine:
If you're using Azure, deploy a VM image of Windows Server 2022 and extract or work with the ISO from the base image.
When you download the ISO and need assistance repairing your server or mounting it for DISM purposes, just let me know, and I can guide you through!
- Thread Author
- #47
- Joined
- Mar 14, 2023
- Messages
- 42,441
Great find on the ISOs! Both of these file names look official, and they appear to be from Microsoft Volume Licensing. Let me break them down for you and help choose the correct one:
File Details:
- SW_DVD9_Win_Server_STD_CORE_2022__64Bit_English_DC_STD_MLF_X22-74290.ISO:
- This is likely the base release (RTM) version of Windows Server 2022.
- It may correspond to a pre-Latest Updates build (20348.1 or slightly later), but you'll still be able to patch after using it.
- SW_DVD9_Win_Server_STD_CORE_2022_2108.39_64Bit_English_DC_STD_MLF_X23-89848.ISO:
- The naming indicates this is a refresh version of Windows Server 2022, likely including updates from August 2021 (2108).
- Better starting point as it may already come with newer build increments (closer to 20348.272+) right out of the ISO.
Recommended Choice:
- Use the second ISO (2108.39)—This version is more recent and will reduce post-installation patching.
- If for any reason your initial repairs with the 2108.39 edition do not work, you can fall back to the base image X22-74290.
Steps After the Download:
- Verify the ISO Hash/Signature:
- Check the authenticity of the files (if downloaded from a volume/licensing portal, you can skip this step with more confidence).
- Tools like
PowerShell
orCertUtil
can compute the SHA1/MD5 hash:
Code:bash certutil -hashfile SHA1
- Mount the ISO:
- Mount the ISO using built-in Windows tools:
- Right-click the file > Mount (note the drive letter, e.g.,
D:
).
- Right-click the file > Mount (note the drive letter, e.g.,
- Mount the ISO using built-in Windows tools:
- Run DISM with the ISO:
- Use install.wim or install.esd from the ISO's
Sources
directory as your /source for DISM repairs:
Code:bash dism /online /cleanup-image /restorehealth /source:WIM:D:\sources\install.wim:1 /limitaccess
- If
install.wim
is not available, confirminstall.esd
exists and use that syntax:
Code:bash dism /online /cleanup-image /restorehealth /source:ESD:D:\sources\install.esd:1 /limitaccess
- Use install.wim or install.esd from the ISO's
- Retry Installing KB5046616:
- After repairing the component store, proceed to reinstall KB5046616 using the manual method (
wusa.exe
orDISM
).
- After repairing the component store, proceed to reinstall KB5046616 using the manual method (
Let Me Know:
Once downloaded, let me know which ISO was selected and how the DISM repair works out. If DISM still gives errors or needs different parameters, you can share more details, and I’ll dig deeper!- Thread Author
- #49
- Joined
- Mar 14, 2023
- Messages
- 42,441
Oh no, that's a frustrating turn of events! It looks like something in the process (likely during the DISM repair or installation attempt) caused a critical issue. Restoring from backup is a solid move here—it's always better to return to a safe state rather than continue battling an escalating problem.
Once the system is back up and restored, let’s take a fresh and measured approach. Here’s how we can refine the process to minimize risks when trying the repair again:
Once the system is back up and restored, let’s take a fresh and measured approach. Here’s how we can refine the process to minimize risks when trying the repair again:
Post-Restore Strategy
- Step One: Baseline Testing
- Ensure the restored system is stable:
- Check for Event Viewer Logs for recurring errors.
- Confirm basic functionality of critical services before proceeding again (in case we missed a warning sign previously).
- Ensure the restored system is stable:
- Step Two: Validate Repair Resources (ISO)
- After restoration, let’s double-check the ISO you’re using:
- Mount it, and list available images with DISM:
Code:bash dism /get-wiminfo /wimfile:D:\sources\install.wim
install.wim
(onlyinstall.esd
), confirm whether the ISO truly matches your build.
- Mount it, and list available images with DISM:
- Cross-reference ISOs carefully—one common issue occurs when the repair source doesn't exactly match your OS version/build.
- After restoration, let’s double-check the ISO you’re using:
- Step Three: Space and Permissions Check
- Ensure your Windows server has enough free space on the C: drive before trying DISM again (say, 10+ GB just to be safe).
- Run
sfc /scannow
before retrying DISM to spot any integrity issues DISM could exacerbate.
- Step Four: Controlled Repair
- When ready, reattempt:
Code:bash dism /online /cleanup-image /restorehealth /source:WIM:\install.wim:1 /limitaccess
/source:MicrosoftUpdate
after confirming direct access).
- Keep log files handy in case of repeat failures:
- DISM Log:
C:\Windows\Logs\DISM\dism.log
- CBS Log:
C:\Windows\Logs\CBS\CBS.log
- DISM Log:
- Keep log files handy in case of repeat failures:
- Step Five: Alternative Workaround
- If repairs are still volatile, we can plan for an in-place upgrade repair. This is more stable than live DISM fixes because the setup performs better dependency checks.
- When ready, reattempt:
Things to Look Out For
- See if any third-party services were introducing instability during repairs (e.g., antivirus software, WSUS corruption influencing the process).
- Let’s be cautious with when and how the ISO sources are used to ensure no mismatches.
- Thread Author
- #51
- Joined
- Mar 14, 2023
- Messages
- 42,441
- Thread Author
- #53
- Joined
- Mar 14, 2023
- Messages
- 42,441
Excellent progress! Getting KB5046616 installed was a big win—now you're on more stable ground. Updating WSUS to match your needs is the next logical step, especially if you still have mismatched schema versions or you're using an older WSUS version.
Let's walk through updating WSUS:
Once these steps are done, let me know if everything aligns or if you see any lingering issues—there’s no stopping now!
Let's walk through updating WSUS:
Step 1: Verify Current WSUS Version
Before updating, let's confirm your WSUS version to ensure we're addressing the right compatibility.- Run this command in PowerShell (Admin):
Code:powershell Get-ItemProperty "HKLM:\Software\Microsoft\Update Services\Server\Setup" | Select-Object Version
- This will display your current WSUS version. If it's 5.x, you're running an older WSUS version that might require updates to handle modern updates and schema versions.
Common versions:- 5.0.x.x = WSUS on Server 2016
- 10.0.x.x = WSUS on Server 2019/2022 (current, modern schema)
Step 2: Update WSUS Using the Latest Cumulative Update
For Windows Server 2022, any necessary WSUS updates will come rolled into the latest cumulative updates (which you've already applied through KB5046616). This means your WSUS components may already be updated, so you should:- Run the WSUS Post-Install Command:
Code:bash wsusutil.exe postinstall
Step 3: Check the Database Schema
If the schema version mismatch error persists, verify and update the WSUS database schema:- Locate Current Schema Version:
Connect to your SUSDB database (via SQL Server Management Studio [SSMS] or SQLCMD) and run:
Code:sql USE SUSDB; SELECT * FROM tbSchemaVersion;
- Match the
SchemaVersion
against your WSUS server version. If WSUS version or patches are too outdated compared to the schema version, you may still need updates.
- Match the
- Manually Apply Schema Updates (if needed):
Run this incmd
with admin privileges:
Code:bash wsusutil.exe postinstall
Step 4: Reindex SUSDB
To ensure optimal performance with the updated WSUS version, cleanup and reindex the database:- Connect to SUSDB and run:
Code:sql USE SUSDB; EXEC spReIndexAllIndexes;
- If
spReIndexAllIndexes
is missing, manually rebuild the indexes:
Code:sql USE SUSDB; ALTER INDEX ALL ON [tablename] REBUILD;
Step 5: Verify WSUS Works
- Check the WSUS Console:
- Open the WSUS Management Console and confirm it connects successfully, loads properly, and synchronizes updates.
- Test Client Synchronization:
- Force a client PC to sync with WSUS:
Code:bash wuauclt.exe /detectnow /reportnow
- Verify the client appears in the WSUS console as reporting correctly.
- Force a client PC to sync with WSUS:
Optional: Add HTTPS Support (Security Best Practice)
If you're not already using SSL/HTTPS for WSUS, now is a great time to configure it. Secure communication ensures update data isn’t tampered with in transit:- Bind a valid SSL/TLS certificate to WSUS in IIS.
- Update WSUS group policies to use
https://:8531
.
Once these steps are done, let me know if everything aligns or if you see any lingering issues—there’s no stopping now!
- Thread Author
- #55
- Joined
- Mar 14, 2023
- Messages
- 42,441
Ah, we're back to the "WID role service not installed" error during the
Here’s a focused plan to resolve this issue once and for all:
Step 3: Run
If WID is installed but not detected by WSUS, you need to explicitly point
Let me know what happens after these steps! If it still doesn’t work, share key portions of the WSUS logs to pinpoint the issue. We’ll get there—I promise this isn’t winning!
wsusutil postinstall
command. This suggests that either the Windows Internal Database (WID) role is still missing or improperly configured, or that WSUS isn't set up correctly to use the database.Here’s a focused plan to resolve this issue once and for all:
Step 1: Verify the WID Role Is Properly Installed
The issue often arises because Windows Internal Database (WID) isn’t installed, or it's been partially removed.Check the WID Role Installation:
- Open Server Manager > Roles and Features.
- Under Features, confirm that the Windows Internal Database (WID) role is installed.
- If it isn’t, install it:
- Run in PowerShell:
Code:bash Install-WindowsFeature -Name Windows-Internal-Database
- Reboot if prompted.
- Run in PowerShell:
- If it isn’t, install it:
- After installation, verify the service is running in Services.msc:
- Look for Windows Internal Database (MICROSOFT##SSEE).
- If it isn’t running, start the service and set it to Automatic.
Step 2: Verify SUSDB Instance in SQL
WSUS requires the SUSDB database to already exist on the WID instance or the SQL server it's attempting to connect to.Check if SUSDB Exists:
- Use SQLCMD or SSMS to connect to the WID instance:
Code:bash np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
- Run the query:
Code:sql SELECT name FROM sys.databases;
- Look for
SUSDB
in the list. - If
SUSDB
is missing, it must be recreated (see Step 4).
- Look for
Step 3: Run wsusutil
with SQL Instance Name
If WID is installed but not detected by WSUS, you need to explicitly point wsusutil.exe postinstall
to the WID SQL instance.Run the Command:
- Add the SQL instance name to the command:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="MSSQL$MICROSOFT##SSEE"
Step 4: Create or Reinitialize SUSDB (If It’s Missing or Corrupted)
If the database doesn't exist (or is damaged):- Use
wsusutil
to reset the database:
Code:bash wsusutil.exe postinstall CONTENT_DIR="D:\WSUS"
- If it still fails, manually drop and recreate the database:
- Connect with SQL Management Studio:
Code:sql DROP DATABASE SUSDB;
- Rerun:
Code:bash wsusutil.exe postinstall CONTENT_DIR="D:\WSUS"
- Connect with SQL Management Studio:
Step 5: Consider Full SQL Installation
If WID refuses to work or you're considering a more scalable setup, you can configure WSUS to use a full SQL Server instance instead of WID.Install SQL Server Express:
- Download and install SQL Server Express 2019/2022.
- Create a blank database named SUSDB.
- Run the
wsusutil
command with the SQL instance name:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="YourServerName\SQLExpress" CONTENT_DIR="D:\WSUS"
Step 6: Verify Logs and Registry
- Check Postinstall Logs:
- Locate the WSUS setup logs in:
Code:C:\Program Files\Update Services\LogFiles
- Look for errors indicating what’s missing in the configuration.
- Locate the WSUS setup logs in:
- Verify the SQL Instance in Registry:
- Navigate to:
Code:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
- Confirm that the instance MSSQL$MICROSOFT##SSEE exists.
- Navigate to:
Let me know what happens after these steps! If it still doesn’t work, share key portions of the WSUS logs to pinpoint the issue. We’ll get there—I promise this isn’t winning!
- Thread Author
- #57
- Joined
- Mar 14, 2023
- Messages
- 42,441
If you're already using SQL Server (and not WID) for your WSUS database, then no, you do not need to install WID. Instead, the issue lies in correctly configuring WSUS to use your SQL instance. Let’s focus on resolving this by properly linking WSUS with your SQL Server setup.
Option 2: Create
If WSUS can’t create
Key log entries can help identify whether the issue is with permissions, connectivity, or schema mismatches.
Let me know how this progresses, and feel free to share relevant log snippets if something still feels off. We’ll make sure WSUS and SQL get on speaking terms!
Verify SQL Server Configuration
Here’s what we need to check to ensure WSUS works seamlessly with your SQL instance:Step 1: Verify SQL Instance
Confirm the name and state of your SQL Server instance where SUSDB is hosted. If unsure:- Open SQL Server Management Studio (SSMS) or connect via
SQLCMD
. - Query the existing databases:
Code:sql SELECT name FROM sys.databases;
- If
SUSDB
exists, great! If not, you’ll need to create or reinitialize it (details in Step 3).
- If
- Ensure WSUS Has Permissions:
- The SQL instance must allow connections from the WSUS Server.
- Add the WSUS machine account (
Domain\ServerName$
) orNT AUTHORITY\NETWORK SERVICE
as a login in SQL Server and grant it:db_owner
rights onSUSDB
.
- Confirm SQL is listening on the correct port (default:
1433
for TCP):- Use:
SQL Server Configuration Manager > Network Configuration > Protocols for
.
- Use:
Step 2: Reconfigure WSUS to Use SQL
Run the postinstall command again, specifying your SQL instance:- Use the Correct SQL Instance Name:
Replacewith the name of your SQL Server instance:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="\" CONTENT_DIR="D:\WSUS"
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="MyServer\SQLExpress" CONTENT_DIR="D:\WSUS"
\SQLInstance
:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="MyServer" CONTENT_DIR="D:\WSUS"
- Validate the Connection:
Ifwsusutil
fails, double-check:- The
SUSDB
exists. - SQL is accepting remote/TCP connections.
- Firewall is allowing the SQL port (default:
1433
).
- The
- Validate the Connection:
Step 3: Create or Reinitialize SUSDB (if missing)
IfSUSDB
doesn’t exist (or is corrupted), follow these steps to recreate it:Option 1: Let WSUS Rebuild It
- Stop the WSUSService (to avoid conflicts):
Code:bash net stop WsusService
- Run the
postinstall
command again. Provided WSUS has access to the SQL instance, it will automatically create SUSDB.
Option 2: Create SUSDB
Manually
If WSUS can’t create SUSDB
, do the following:- Use SQL Server Management Studio (SSMS) or
SQLCMD
to manually create the database:
Code:sql CREATE DATABASE SUSDB;
- Grant necessary permissions:
Code:sql USE SUSDB; CREATE USER [NT AUTHORITY\NETWORK SERVICE] FOR LOGIN [NT AUTHORITY\NETWORK SERVICE]; ALTER ROLE db_owner ADD MEMBER [NT AUTHORITY\NETWORK SERVICE];
- Re-run
postinstall
with the proper SQL instance.
Step 4: Validate Logs
Ifwsusutil.exe postinstall
still fails, check the logs for more clues:- WSUS Log:
- Located in:
Code:C:\Program Files\Update Services\LogFiles
- Look for any lines mentioning SQL or communication failures.
- Located in:
- SQL Logs:
- Open SQL Server Management Studio (SSMS) or check under:
Code:C:\Program Files\Microsoft SQL Server\\MSSQL\Log
- Open SQL Server Management Studio (SSMS) or check under:
Key log entries can help identify whether the issue is with permissions, connectivity, or schema mismatches.
Step 5: Optional - Bypass SQL for Testing
If technical challenges persist, you could switch to WID temporarily just to confirm WSUS functionality:- Install WID:
Code:bash Install-WindowsFeature -Name Windows-Internal-Database
- Run:
Code:bash wsusutil.exe postinstall CONTENT_DIR="D:\WSUS"
Let me know how this progresses, and feel free to share relevant log snippets if something still feels off. We’ll make sure WSUS and SQL get on speaking terms!
- Thread Author
- #59
- Joined
- Mar 14, 2023
- Messages
- 42,441
The error "The system cannot find the path specified" indicates that WSUS is unable to locate the specified Content Directory or there’s an issue with the SQL instance connection during the installation. Let’s address this step by step:
Key points:
Share any relevant error messages if re-runs still fail! We'll identify whether it's an SQL or path issue.
Step 1: Verify the Content Directory Path
Make sure the directory specified in theCONTENT_DIR
parameter actually exists and has correct permissions.- Check if the Path Exists:
- Navigate to
D:\WSUS\WSUSCONTENT
in File Explorer. - If it doesn’t exist, manually create it:
Code:bash mkdir D:\WSUS\WSUSCONTENT
- Navigate to
- Grant Correct Permissions:
- The WSUS service (and SQL Server process if hosted locally) needs access to this directory:
- Right-click the folder > Properties > Security Tab.
- Add
NT AUTHORITY\NETWORK SERVICE
and grant Modify permissions.
- The WSUS service (and SQL Server process if hosted locally) needs access to this directory:
Step 2: Confirm the SQL Instance Name
Ensure theSQL_INSTANCE_NAME
parameter is pointing to the correct SQL Server instance.- Check the SQL Server instance name:
- Open SQL Server Configuration Manager or SQL Server Management Studio (SSMS).
- Look for the full instance name (
ServerName\InstanceName
). Note:- Default instance:
ServerName
- Named instance:
ServerName\YourInstance
- Default instance:
- Validate the instance is running.
- Test connecting to the instance:
- Run
sqlcmd
from the command line:
Code:bash sqlcmd -S ServerName\InstanceName -E
ServerName\InstanceName
with your actual instance name). - If it fails, troubleshoot connectivity (e.g., SQL Server service status, firewall rules on port
1433
).
- Run
Step 3: Ensure WSUS Content Location Is Writable
If WSUS doesn’t have permission to write to the directory:- Temporarily move WSUS content to the default location:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="InstanceName" CONTENT_DIR="C:\WSUS"
- Once configured, move the content folder back:
- Use WSUS Console > Options > Server Cleanup Wizard > Clean up WSUS Data.
Step 4: Re-run WSUS Configuration
Re-run thewsusutil.exe postinstall
with the corrected parameters:
Bash:
wsusutil.exe postinstall SQL_INSTANCE_NAME="ServerName\InstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Ensure
D:\WSUS\WSUSCONTENT
exists and has appropriate permissions. - Ensure the SQL instance is reachable and the database is accessible.
Step 5: Check Logs for Specific Failures
- Open the WSUS logs:
- Look at:
Code:C:\Program Files\Update Services\LogFiles
- Files:
WSUSSetup.log
Change.log
- Look at:
- Review SQL Error Logs:
- Located under your SQL instance (e.g.,
C:\Program Files\Microsoft SQL Server\MSSQL\Log
).
- Located under your SQL instance (e.g.,
Share any relevant error messages if re-runs still fail! We'll identify whether it's an SQL or path issue.
Similar threads
- Replies
- 0
- Views
- 3K
- Solved
Windows 7
Complex Problem with Windows 7 (again)
- Replies
- 30
- Views
- 5K