- Joined
- Mar 14, 2023
- Messages
- 42,450
The logs from the DISM command showing the 0x80070bc9 error indicate that there are still serious corruption issues within your Windows installation or component store that are impeding the installation and repair processes. This error usually denotes that the repair attempt failed due to missing files or corruption issues.
This will point to a different WIM-type file that may contain the necessary components.
Key Points from the Logs:
- COM Exceptions are still being thrown, indicating issues in resolving paths.
- The CBS (Component-Based Servicing) has reported that it cannot finalize repairs or locate the necessary files.
Next Steps to Resolve the Issues
Step 1: Mount the ISO and Verify Files
- Ensure Correct Mounting of the Windows Server 2022 ISO.
- Remount the ISO if needed to avoid any file access issues.
- Check that install.wim or install.esd files are present in
D:\sources
(or the relevant drive).
- Execute DISM with Explicit Source:
Bash:dism /online /cleanup-image /restorehealth /source:wim:D:\sources\install.wim:1 /limitaccess
D:
with your mounted ISO drive letter and check the correct index if needed.
Step 2: Try Using an ESD File If Present
If your mounted ISO contains aninstall.esd
file instead:
Bash:
dism /online /cleanup-image /restorehealth /source:esd:D:\sources\install.esd:1 /limitaccess
Step 3: Perform an In-Place Upgrade Repair (if DISM Keeps Failing)
- Run Setup from the ISO:
If DISM continues to fail, perform an in-place upgrade repair:- Navigate to the mounted ISO.
- Run
setup.exe
from the directory. - Ensure you select Upgrade this PC while keeping files and settings intact.
- Follow through with the setup wizard, carefully choosing upgrade options. This should replace any corrupted files while keeping your settings intact.
Step 4: Check CBS Log Again
- After doing the above, if there's still no progress, check for error entries in CBS.log:
Code:C:\Windows\Logs\CBS\cbs.log
- Pay attention to file names or specific features mentioned that might still be causing hurdles.
If Issues Persist
If issues persist even after the in-place upgrade:- Consider Full Backup Restores.
- If you have backups of your configurations, restoration might alleviate corrupted states that can complicate operations.
Conclusion
By systematically checking the source files for integrity and performing DISM with appropriate sources, you can resolve underlying discrepancies in your current installation. Should these recommended steps not yield results, don’t hesitate to reach out with log details or process outcomes—we’re close to getting everything stabilized!- Thread Author
- #142
wsusutil.exe postinstall -skipIISConfig SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
Fatal Error: The system cannot find the path specified.
The log error is:
2024-12-11 08:55:11 Starting service W3SVC
2024-12-11 08:55:11 Configuring IIS...
2024-12-11 08:55:11 Start: ConfigureWebsite
2024-12-11 08:55:11 System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at Microsoft.UpdateServices.Administration.UseCustomWebSite..ctor()
at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: The system cannot find the path specified.
The log error is:
2024-12-11 08:55:11 Starting service W3SVC
2024-12-11 08:55:11 Configuring IIS...
2024-12-11 08:55:11 Start: ConfigureWebsite
2024-12-11 08:55:11 System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at Microsoft.UpdateServices.Administration.UseCustomWebSite..ctor()
at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
- Joined
- Mar 14, 2023
- Messages
- 42,450
It looks like the postinstall process for WSUS is still failing due to the COMException (0x80070003) indicating that it cannot find a specified path, even when using the
-skipIISConfig
option. This suggests that there are possibly unresolved issues with the IIS configuration or the expected WSUS file paths.Here’s a structured approach to resolving this:
Step 1: Validate the Paths Again
- Verify the Content Directory:
- Ensure the directory
D:\WSUS\WSUSCONTENT
exists and is accessible:- You should have the
D:\WSUS\WSUSCONTENT
path created and ensure that it contains the necessary files (likesuscomp.dll
and related folders). If it’s empty or missing critical files, this could lead to issues.
- You should have the
- Ensure the directory
- Check Default Document Settings in IIS:
- Open IIS Manager > Navigate to WSUS Administration.
- Ensure that Default Document is set up correctly, and that
default.aspx
(or equivalent page) is present in the path for WSUS if applicable.
Step 2: Confirm IIS Permissions and Settings
- Directory Browsing Enabled:
- Confirm that Directory Browsing is enabled for the WSUS Administration folder.
- Right-click on the WSUS Administration site > Check under Directory Browsing features.
- Check Service Account Permissions:
- Ensure IIS and WSUS have the right Service Accounts assigned and permissions configured:
- The application pool for WSUS (
WsusPool
) should run underNetworkService
or a specific account with enough permissions.
- The application pool for WSUS (
- In IIS:
- Right-click on the application pool > Identity > Ensure the right identity is chosen.
- Ensure IIS and WSUS have the right Service Accounts assigned and permissions configured:
Step 3: Attempt Manual Configuration of IIS
- Manually Configure Required Virtual Directories:
- Look into the IIS virtual directory configuration for potential misconfigurations:
- Ensure that folders such as ClientWebService, ApiRemoting30, and the others are correctly mapped back to their physical paths.
- Look into the IIS virtual directory configuration for potential misconfigurations:
- Remove and Re-Add Virtual Directories:
- If there are directories not responding, you could remove them and create them manually, ensuring the correct physical path is used.
Step 4: Check Application Pools
- Confirm Application Pool Settings:
- Open IIS manager and go to Application Pools.
- Ensure that the WsusPool is set correctly:
- Right-click on WsusPool > Advanced Settings:
- Ensure the Identity is
NetworkService
or another account set with appropriate rights.
Step 5: Retry WSUS Postinstall Command
- Run the following in Command Prompt:
- After confirming paths and settings:
Code:bash wsusutil.exe postinstall -skipIISConfig SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- After confirming paths and settings:
- Check Logs Again:
- If the command fails again, review the WSUS Setup log in:
Code:C:\Program Files\Update Services\LogFiles\WSUSSetup.log
- Look for any specific IIS paths causing concern.
- If the command fails again, review the WSUS Setup log in:
Final Consideration
Making targeted modifications to IIS should help WSUS find the paths it needs to function. By confirming directory statuses and permissions, we’re aiming to ensure a successful configuration. If the error persists, let me know what new details come from the logs or if there are recurring issues—we’ll figure it out together!- Thread Author
- #144
1.1 what are all the files supposed to be in that folder?
Also, When I run the post install command, it creates the WSUScontent folder and updateservicepackages in my WSUSContenct folder. and they are emtpy. Should the CONTENT_DIR be D:\WSUS then because the updates are all in the WSUSContent Folder?
Also, When I run the post install command, it creates the WSUScontent folder and updateservicepackages in my WSUSContenct folder. and they are emtpy. Should the CONTENT_DIR be D:\WSUS then because the updates are all in the WSUSContent Folder?
- Joined
- Mar 14, 2023
- Messages
- 42,450
Understanding WSUS Content Structure
- WSUS Directory Structure:
The typical WSUS directory structure includes several essential files and folders, especially under the WSUSCONTENT
directory. Here are the critical components you would expect to see:
Expected Files and Folders in WSUSCONTENT
- Updates: This is where the update files are stored. Inside, you might see folders corresponding to updates.
- EULA: End User License Agreements for updates.
- Files and directories related to metadata for updates managed by WSUS.
The contents can include structured directories by categories, update types, or specific product identifiers. If you see the UpdateServicePackages
folder there, it usually contains compressed update packages WSUS is managing.
- Backing Up Content Directory:
You’re correct that WSUS uses a structured hierarchy for managing its content. It’s essential that this structure be maintained for WSUS to operate effectively.
Updating CONTENT_DIR
Correct Specification of CONTENT_DIR
- The CONTENT_DIR path should likely point to
D:\WSUS\WSUSCONTENT
instead of just D:\WSUS
. This way, WSUS knows where to look for its updates.
In your command:
Bash:
wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
This indicates that the content should be specifically located in that folder structure, hence keeping your updates organized.
Checking Updates
- Running the Postinstall Command:
- If postinstall keeps creating additional folders like
Updates
and UpdateServicePackages
, but they remain empty or not populated, here are a few implications:
- WSUS wasn’t able to find or download update files successfully, potentially due to misconfigurations or issues with the SQL connection.
- Troubleshooting Steps:
- Confirm that:
- SQL Database (SUSDB) is correctly set up and accessible.
- Network connectivity and configurations allow WSUS to reach Microsoft's update servers.
- You can further run the following command toward reinitializing the WSUS configuration post content directory setup:
Code:
bash
wsusutil.exe reset
Final Steps to Proceed
- Adjust Your CONTENT_DIR Reference:
- Ensure that your defined
CONTENT_DIR
in the commands correctly references where all updates will be expected.
- Rerun the Postinstall Command with the Correct Directory:
- Try the
postinstall
command again:
Code:
bash
wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Check Logs for New Errors:
- Investigate logs for anything new if you face errors during the above process:
- WSUSSetup.log
- IIS Logs
- Event Viewer under Windows Logs > Application.
Let me know how this goes or if there are new logs or errors that arise; we’re refining back toward a functional WSUS!
The typical WSUS directory structure includes several essential files and folders, especially under the
WSUSCONTENT
directory. Here are the critical components you would expect to see:Expected Files and Folders in WSUSCONTENT
- Updates: This is where the update files are stored. Inside, you might see folders corresponding to updates.
- EULA: End User License Agreements for updates.
- Files and directories related to metadata for updates managed by WSUS.
UpdateServicePackages
folder there, it usually contains compressed update packages WSUS is managing.You’re correct that WSUS uses a structured hierarchy for managing its content. It’s essential that this structure be maintained for WSUS to operate effectively.
D:\WSUS\WSUSCONTENT
instead of just D:\WSUS
. This way, WSUS knows where to look for its updates.
Bash:
wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- If postinstall keeps creating additional folders like
Updates
andUpdateServicePackages
, but they remain empty or not populated, here are a few implications:- WSUS wasn’t able to find or download update files successfully, potentially due to misconfigurations or issues with the SQL connection.
- Confirm that:
- SQL Database (SUSDB) is correctly set up and accessible.
- Network connectivity and configurations allow WSUS to reach Microsoft's update servers.
- You can further run the following command toward reinitializing the WSUS configuration post content directory setup:
Code:bash wsusutil.exe reset
- Ensure that your defined
CONTENT_DIR
in the commands correctly references where all updates will be expected.
- Try the
postinstall
command again:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Investigate logs for anything new if you face errors during the above process:
- WSUSSetup.log
- IIS Logs
- Event Viewer under Windows Logs > Application.
- Thread Author
- #146
- Joined
- Mar 14, 2023
- Messages
- 42,450
I'm sorry to hear that the WSUS installation is still failing despite making the necessary adjustments. Given that we've been troubleshooting various aspects, let's take a deeper and more structured approach to isolate the issues effectively.
Please let me know how this approach goes, and we can address any new details that emerge!
Detailed Troubleshooting Steps
Step 1: Review and Document Error Messages
- Check the Latest Log Files:
- Look at the WSUSSetup.log again in:
Code:C:\Program Files\Update Services\LogFiles
- Identify the most recent error messages generated during the attempts to run the
wsusutil postinstall
.
- Look at the WSUSSetup.log again in:
- IIS Logs:
- Examine the IIS logs located under:
Code:C:\inetpub\logs\LogFiles\W3SVC1
- Pay attention to specific requests around the time you encountered errors, especially for
403
or404
statuses.
- Examine the IIS logs located under:
- Event Viewer:
Look for any application errors under:- Windows Logs > Application for any entries related to WSUS or IIS.
Step 2: Clear Out Old Configurations
If any configurations are left over from previous installations, we may need to clear and reset these before attempting installation again:- Stop WSUS Service:
Code:bash net stop WsusService
- Backup and Remove Content Folders:
- Backup any vital information.
- Clear any previous content and temporary data:
Code:bash del /s /q D:\WSUS\WSUSCONTENT*
- Confirm Deletion of Old Virtual Directories:
- In IIS Manager, check if any WSUS-related directories (ApiRemoting30, ClientWebService, etc.) still exist.
- Remove any that don’t respond or yield a 404 or 403 error.
Step 3: Ensure Proper IIS Configuration
- Enable Features:
- Double-check that all necessary IIS features are enabled as covered previously. Ensure:
- ASP.NET and ISAPI Extensions are installed.
- Directory Browsing is enabled for test access.
- Double-check that all necessary IIS features are enabled as covered previously. Ensure:
- Set Up Correct Default Document:
- Use IIS Manager to confirm there’s a valid document in place for the WSUS Administration console:
- If potential files are missing, WSUS was not fully installed, potentially due to the previous errors.
- Use IIS Manager to confirm there’s a valid document in place for the WSUS Administration console:
Step 4: Re-attempt the Postinstall Command
- After performing the above checks and balancing the settings:
- Run the command:
Code:bash wsusutil.exe postinstall -skipIISConfig SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Run the command:
- If the Setup Option Failures Persist:
- As a last resort before deeper troubleshooting, consider downloading the respective WSUS installer or relevant packages directly again from Microsoft's site for WSUS and reinstalling.
Last Thoughts
If after all these checks and resets the situation remains unresolved, log files will be essential for understanding what went wrong. Key insights there will shed light on specific underlying issues—like database connections, file path problems, misconfigured IIS settings, etc.Please let me know how this approach goes, and we can address any new details that emerge!
- Thread Author
- #148
- Joined
- Mar 14, 2023
- Messages
- 42,450
The version number 10.0.20348.2849 that you're seeing in the WSUS "About" section signifies that you are running the WSUS version associated with Windows Server 2022. This is a stable version, which offers various enhancements and feature updates compared to prior releases. However, the fact that you are encountering issues may indicate residual configuration problems rather than a version-specific fault.
Next Steps Based on Version Confirmation
With the version clarified, let's use this context to tackle the ongoing issues more effectively:Step 1: Check Corresponding KB Articles
Make sure your WSUS installation aligns with the latest feature updates available. Pay attention to any relevant patches or cumulative updates for WSUS for your specific version:- You can verify if any new KB articles apply based on version 10.0.20348.2849 using the Microsoft Update Catalog or WSUS-related announcements.
Step 2: Recheck WSUS Configurations
Since you're working with WSUS for Windows Server 2022, following configurations may help ensure everything is in place:- Verify the WSUS Database:
- Since you mentioned you are using SQL Server:
- Open SQL Server Management Studio to confirm that the database SUSDB exists and is accessible.
- Identify whether the SQL configurations for WSUS are aligned with the WSUS instance name.
- Since you mentioned you are using SQL Server:
- Ensure IIS Configurations are Optimal:
- Right-click on WSUS Administration > Confirm the default document is set correctly in IIS, and ensure the necessary virtual directories are there.
- Permissions:
- Ensure that the user accounts under which WSUS and SQL Server run have the necessary permissions to access the directories specified in configurations.
Postinstall Command Feedback
If running the postinstall command still triggers the same errors, gather more logs from WSUSSetup.log and IIS logs to identify any ongoing configuration issues.- Postinstall Command:
Bash:wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Or run it with:
Bash:wsusutil.exe postinstall -skipIISConfig SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
Adapt And Collect:
- If the error persists, please check the following logs:
- WSUSSetup.log for insights into the specific issues.
- IIS logs under:
Code:C:\inetpub\logs\LogFiles\W3SVC1\
- Check any Event Viewer logs for application issues that align with your WSUS activities, especially under Applications and Services Logs.
Conclusion
By confirming the version and checking against the latest improvements, we can ensure you’re operating with a stable version of WSUS. Make sure configurations and paths are checked properly, especially with SQL Server connections. Keep me updated on your findings and any new issues from logs or tests, and we’ll continue addressing this until everything functions properly!- Thread Author
- #150
- Joined
- Mar 14, 2023
- Messages
- 42,450
Yes, the C:\Program Files\Update Services\WebServices\Root directory should contain several key files and possibly additional folders that are essential for WSUS to operate properly. The presence of only the
Once you've reinstalled, let me know how it goes, and we will continue troubleshooting if issues show up during the reinstall. We’re aiming for a clean and functional WSUS setup!
aspnet_client
folder indicates that the WSUS installation may be incomplete or corrupted. Here’s what to expect in this directory:Expected Contents in WSUS Administration Site
- Default.aspx:
- This is typically the primary default document that IIS serves when navigating to the WSUS Administration site. If this file is missing, you will encounter issues when attempting to access the console.
- Web.config:
- The configuration file for the WSUS site settings, necessary for proper functionality.
- Various
.aspx
Files:- Files like
ClientWebService.asmx
,ApiRemoting30.asmx
, etc., that WSUS relies on for its web services.
- Files like
- Other Folders:
- You may also find other essential directories associated with WSUS functionalities.
Actions to Take
Step 1: Verify the Installation
Since the expected files are missing:- Consider Reinstalling WSUS:
- Uninstall WSUS via Add Roles and Features in Server Manager.
- Remove any remnants: Ensure that C:\Program Files\Update Services is entirely cleaned out after uninstallation, as remnants may interfere with reinstallation.
- Reinstall WSUS:
- Proceed to Add Roles and Features in Server Manager > Install Windows Server Update Services again.
- Ensure to include Management Tools and required features.
Step 2: Validate Installation and Configuration
After the reinstallation:- Check for Expected Files:
- Navigate back to C:\Program Files\Update Services\WebServices\Root and confirm that key files, including Default.aspx, are present.
- Run the Postinstall Command:
- After validating that everything appears correctly installed, run:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- After validating that everything appears correctly installed, run:
Step 3: Check and Allow Permissions
- Confirm Permissions:
- Ensure that the permissions on the WSUS installation path allow
NETWORK SERVICE
or the relevant application pool user to access and execute these files.
- Ensure that the permissions on the WSUS installation path allow
Conclusion
If you find the WSUS installation is indeed incomplete (with missing files), the straightforward approach is to carefully uninstall and reinstall WSUS, ensuring it successfully populates all required files and directories.Once you've reinstalled, let me know how it goes, and we will continue troubleshooting if issues show up during the reinstall. We’re aiming for a clean and functional WSUS setup!
- Thread Author
- #152
- Joined
- Mar 14, 2023
- Messages
- 42,450
Yes, you can install WSUS on a test machine and then copy the necessary files to your primary server. This approach can be beneficial if you're facing persistent issues with a reinstallation on the main server. Here are the steps to follow to ensure a smooth process:
Steps to Install WSUS on a Test Machine
Step 1: Set Up the Test Machine
- Install the Same Version of Windows Server:
- Ensure the test machine is running the same version of Windows Server (and edition) as your production machine, which helps maintain compatibility.
- Install WSUS:
- Using Server Manager, add the Windows Server Update Services role.
- Make sure to include all required features as you did previously.
Step 2: Verify WSUS Installation
- Check the WSUS Directory:
- After the installation, verify that the installation has created the necessary files and directories in:
Code:C:\Program Files\Update Services\WebServices\Root\
- The folder should contain at least:
- Default.aspx
- Web.config
- Other related
.aspx
files and folders.
- After the installation, verify that the installation has created the necessary files and directories in:
- Populate the Content Directory:
- If you want to copy the WSUS content, ensure the CONTENT_DIR (e.g.,
D:\WSUS\WSUSCONTENT
) has files populated correctly.
- If you want to copy the WSUS content, ensure the CONTENT_DIR (e.g.,
Step 3: Backing Up Files
- Copy Files from Test Machine:
- After verifying successful installation and the directory structure, you can copy necessary files/directories:
- From
C:\Program Files\Update Services\WebServices\Root
- From the Content Directory (
D:\WSUS\WSUSCONTENT
).
- From
- Use a secure method, such as a shared folder, USB drive, or direct file transfer.
- After verifying successful installation and the directory structure, you can copy necessary files/directories:
Step 4: Restore Files on Production Machine
- Stop WSUS Services on the production server:
Code:bash net stop WsusService
- Uninstall WSUS from Production once you've backed up recent configurations:
- Ensure you've followed the earlier steps for uninstalling and cleaning up residual files.
- Copy Test Installation Files:
- Paste the files you copied from the test machine back into the corresponding directories on the production server.
Step 5: Validate and Configure
- Run the Postinstall Command on the Production Server:
Once files are copied, attempt to run:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="YourInstanceName" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Start WSUS Services:
- Restart the WSUS Service after running:
Code:bash net start WsusService
- Restart the WSUS Service after running:
- Check WSUS Functionality:
- Attempt to access the WSUS console:
Code:plaintext http://arimgmt:8530/WSUSAdmin
- Attempt to access the WSUS console:
Additional Considerations:
- Dependencies: Ensure you have all the necessary prerequisites and dependencies on the test machine.
- Configuration Consistency: Copy over any custom configuration files if present in IIS settings from the production server to avoid missing configurations.
- Testing Before Production: Testing in a sandbox environment minimizes risks in your production setup.
Conclusion
Using a test environment to build the WSUS setup and then copying the necessary files is a pragmatic approach when faced with persistent installation issues. If you encounter any barriers during the process or have specific questions about file paths or configurations, feel free to reach out! We’ll work together to ensure this process leads you to a stable WSUS setup.- Thread Author
- #154
- Joined
- Mar 14, 2023
- Messages
- 42,450
I appreciate the update! It sounds like you're diligently working through the issues with WSUS, and I understand that sometimes it can be a slow process to pinpoint the root cause of persistent problems.
Hope to hear from you soon, and in the meantime, take care as you work through this!
If Things Remain Unclear:
When you’re ready, sharing more specific details about any error messages, behaviors observed during installation, or even log entries will be helpful. Here are a few things to consider investigating further:- Log Files:
- Any new entries in WSUSSetup.log or the other log files can provide insights into what might be failing during the installation process.
- Specific HRESULT codes or error messages can guide targeted troubleshooting steps.
- SQL Server Connection:
- Re-confirm that your WSUS installation can communicate with its SQL Server database. Ensure that the database is accessible, running, and that all necessary accounts have the right permissions.
- IIS Configuration:
- Make sure all necessary virtual directories are correctly set up in IIS without missing configurations or broken links.
- Pending Windows Updates:
- Sometimes, pending system updates can interfere with application installations. Ensure the system is fully updated.
- WSUS Cleanup:
- Issues can sometimes stem from previous configurations that hang around despite reinstall efforts. Ensuring a clean removal of old settings and configurations can help.
Let Me Know How I Can Help
Whenever you're ready to dive back in, feel free to update me with whatever specifics you can. We can further refine our approach based on any new information available. Whether it requires adjustments to SQL, IIS, or potential file recovery—it’s all part of the process of getting WSUS up and running smoothly!Hope to hear from you soon, and in the meantime, take care as you work through this!
- Thread Author
- #156
OK I got it setup on test computer after I had to add NT SERVICE\ALL SERVICES to the logon as service in group policy. Then I did a test wsusutil.exe postinstall SQL_INSTANCE_NAME="Instance Name" CONTENT_DIR="C:\WSUS" and it worked. I went back to the production computer and made sure the NT SERVICE\ALL SERVICES was updated in the logon as service and it was. Tried the wsusutil.exe postinstall SQL_INSTANCE_NAME="ARIMGMT" CONTENT_DIR="D:\WSUS\WSUSCONTENT" and it failde with same error. I checked the folders there is nothingin the root folder on the test machine so it looks like we are OK on the produmachine. So here is my next step. Backup IIS with the appcmd. Uninstall WSUS and Try to resintall WSUS again on the production machine.
What is the command to backup IIS again appcmd.exe add backup "Backupname"?
What is the command to backup IIS again appcmd.exe add backup "Backupname"?
- Joined
- Mar 14, 2023
- Messages
- 42,450
Awesome progress! It’s great to hear you successfully set up WSUS on the test machine after adding the necessary permissions, and it’s excellent you plan to apply those learnings back to your production server.
Backup Command for IIS Configuration
To back up your IIS configuration, you can use theappcmd
command as follows:
Bash:
appcmd add backup "BackupName"
Steps to Execute the Backup Command
- Open Command Prompt as Administrator.
- Run the Backup Command:
Code:bash appcmd add backup "WSUSBackupBeforeUninstall"
- Replace
WSUSBackupBeforeUninstall
with any descriptive name of your choice.
- Replace
Uninstalling and Reinstalling WSUS
Once you've backed up your IIS configuration:- Uninstall WSUS:
- Open Server Manager, remove the Windows Server Update Services role carefully.
- Ensure D:\WSUS or wherever your WSUS content is stored is either backed up somewhere safe or emptied for a fresh setup.
- Reinstall WSUS:
- Go back to Add Roles and Features and choose to reinstall WSUS as before. Ensure all necessary components are included.
- Reconfigure After Reinstallation:
- Once WSUS is installed, again run the postinstall command:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="ARIMGMT" CONTENT_DIR="D:\WSUS\WSUSCONTENT"
- Once WSUS is installed, again run the postinstall command:
Final Steps
- After reinstallation, make sure you have all features in place:
- Check for virtual directories, permissions, and proper runtime on the WsusPool in IIS.
- Test WSUS Functionality:
- Access the WSUS Administration console to ensure that it’s operational before you add configurations back.
- Documentation:
- Keep notes of each step and adjustments made in the process—you may find a future simplification.
- Thread Author
- #158
- Joined
- Mar 14, 2023
- Messages
- 42,450
It’s good to hear that you’re moving forward, but I understand the frustration of still facing that persistent error during the WSUS post-installation step. The consistency of the error points towards some core configuration issues, especially if it’s repeating the "The system cannot find the path specified" message.
Key Areas to Inspect and Troubleshoot Further
Step 1: Verify SQL Instance Configuration
- Check SQL Instance Accessibility:
- Double-check that your WSUS installation is configured to connect to the SQL Server instance correctly.
- Open SQL Server Management Studio and verify:
- The instance name is precisely represented (
ARIMGMT
in your command). - SUSDB exists and is being accessed correctly.
- The instance name is precisely represented (
- Check SQL Permissions:
- Confirm the SQL Server account used for WSUS has db_owner permissions to the SUSDB database. This account should also have permission to access the
D:\WSUS
path.
- Confirm the SQL Server account used for WSUS has db_owner permissions to the SUSDB database. This account should also have permission to access the
Step 2: Verify Content Directory Paths and Permissions
- Confirm Content Directory:
- Make sure the
D:\WSUS
directory exists, is structured as expected, and has the correct files set up correctly. - Check for read and write permissions on
D:\WSUS
.
- Make sure the
- Sample Command:
- If your content directory is where WSUS expects to find update files, ensure the path is correctly referenced when running
wsusutil
:
Code:bash wsusutil.exe postinstall SQL_INSTANCE_NAME="ARIMGMT" CONTENT_DIR="D:\WSUS"
- If your content directory is where WSUS expects to find update files, ensure the path is correctly referenced when running
Step 3: Check Event Viewer for Issues
- Look at the Event Viewer for any application errors that correspond with the time you attempted the
wsusutil.exe
command. This can help provide context around what might be failing.
- Windows Logs > Application
- Check for any warnings or error messages related to WSUS or SQL Server.
Step 4: Use Logs for Final Troubleshooting
- Log Files Location:
- Keep checking:
- WSUSSetup.log (even if you couldn’t find it earlier).
- WSUS-related logs in:
Code:C:\Program Files\Update Services\LogFiles
- Keep checking:
- Focus on Specific Messages:
- Look for any new entries or error messages that might indicate what specific path or component is missing/moored during the installation process.
Step 5: Identify Other Dependencies
Make sure:- Any IIS settings that might be pointing to previous content directories are cleaned up.
- Ensure no remnants from old WSUS installations are lingering, which could confuse configurations.
Retest WSUS Postinstall Command
- After checking and adjusting the above points, attempt running the WSUS postinstall command again:
Bash:wsusutil.exe postinstall SQL_INSTANCE_NAME="ARIMGMT" CONTENT_DIR="D:\WSUS"
- Thread Author
- #160
Similar threads
- Replies
- 0
- Views
- 3K
- Solved
Windows 7
Complex Problem with Windows 7 (again)
- Replies
- 30
- Views
- 5K