Windows Server 2012 – WSUS Post-Install Tasks Fail Immediately

Not long ago, I was trying to re-install WSUS on a server that would not generate the ‘WSUS Administration’ website.

Post-installation tasks would also fail without giving me much to go on. After some time researching, I found several posts on message boards that all said to do different things to resolve the issue. Some of them even said to either reload the OS on the server (not always an option in a production environment), or call Microsoft for help (which as we all know costs $$$).

Here’s what I found…

In the installation log located in the %temp% folder there should be a log file with the .TMP file extension. (EXAMPLE: tmp56B7.tmp)

When looking at this file, it told me that a file it was looking for was not found, or corrupt.

When I ran the WSUS Console I saw the following:

___________________________________________________________________________

The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,

Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.

The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,

Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.

System.NullReferenceException — Object reference not set to an instance of an object.

Source

Microsoft.UpdateServices.UI.AdminApiAccess

Stack Trace:

at Microsoft.UpdateServices.UI.AdminApiAccess.AdminApiTools.GetLocalInstallDir()

at Microsoft.UpdateServices.UI.AdminApiAccess.Constants..cctor()

** this exception was nested inside of the following exception **

System.TypeInitializationException — The type initializer for ‘Microsoft.UpdateServices.UI.AdminApiAccess.Constants’ threw an exception.

Source

Microsoft.UpdateServices.UI.SnapIn

Stack Trace:

at Microsoft.UpdateServices.UI.SnapIn.Scope.RootScopeNode.GetComputerTargetFromCmdLine()

at Microsoft.UpdateServices.UI.SnapIn.Scope.RootScopeNode.AddServerScopeNodeFromCmdLine()

at Microsoft.UpdateServices.UI.SnapIn.Common.SnapInManager.OnLoadCustomData(AsyncStatus status, Byte[] persistenceData)

___________________________________________________________________________

To resolve the issue, I performed the following steps (in order):

1) Open a PowerShell session as Administrator and uninstall WSUS completely with the following command:

Remove-WindowsFeature –Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI –IncludeManagementTools

2) Delete the registry key HKLM\SOFTWARE\Microsoft\Update Services

3) Delete the WSUS file from %appdata%\Microsoft\MMC

4) Delete the Folder %ProgramFiles%\Update Services along with all of its subfolders and files.

5) Reboot the server

6) Run the System File Checker to find and repair any inconsistencies by typing the command below into the PowerShell prompt.

SFC /scannow

7) Reboot the server

8) Verify IIS is installed and working without errors

9) Open a Powershell session as Administrator an install WSUS with the following command:

To use a SQL DB:

Install-WindowsFeature –Name UpdateServices,UpdateServices-DB -IncludeManagementTools

To use WID:

Install-WindowsFeature –Name UpdateServices –IncludeManagementTools

10) Once WSUS installation has completed, change the current working directory to %programfiles%\Update Services\Tools and run one of the following post-installation commands:

To use a SQL DB:

.\wsusutil.exe postinstall SQL_INSTANCE_NAME=”SERVER\Instance” CONTENT_DIR=”<drive>:\WSUS”

To use WID:

.\wsusutil.exe postinstall CONTENT_DIR=”<drive>:\WSUS”

11) Wait for the command to complete successfully.

12) If you are using this WSUS instance as part of a farm, then open the Admin Console and configure your updates.

13) If you are using this instance as part of the roles within an SCCM Implementation, open the SCCM Console and install the Software Update point role.

Configure as needed and happy patching!

Food recipes: Low Fat – Low Carb – Low Calorie Hamburger Chili

This recipe is great for those of us trying to lose weight and eat healthy while on the road or even in our home markets. You can play around with the seasonings to adjust the flavor to your liking, but overall this is a great flavor!

Ingredients:
3 lbs – 96%/4% Lean Ground Beef
17 – Pureed Roma Tomatoes
1.5 tbsp – White Wine Vinegar
3 tbsp – Sea Salt
3 tsp – Ground White Pepper
3 tsp – Ground Black Pepper
2 tsp – Jalepeno Tobasco Sauce
2 tsp – El Tapatio Sauce
4 tbsp – Fresh Minced Garlic
6 tbsp – Dried Minced Onion
2 tsp – Ground Oregano
2 tsp – Ground Cumin
1 tsp – Cajun Spice or Cayenne Pepper
1 tbsp – Ground Chili Powder

Directions:
In Large Skillet add the the following and brown lightly. Then remove from heat and set aside.
3 lbs – 96%/4% Lean Ground Beef
2 tbsp – Dried Minced Onion
1 tbsp – Fresh Minced Garlic
1 tsp – Ground White Pepper
1 tsp – Ground Black Pepper
1 tbsp – Sea Salt

In large crockpot mix the following and set on high heat and stir occasionally.
17 – Fresh Roma Tomatoes pureed (stems removed)
2 tbsp – Sea Salt
2 tsp – Ground White Pepper
2 tsp – Ground Black Pepper
2 tsp – Jalepeno Tobasco Sauce
2 tsp – El Tapatio Sauce
2 tbsp – Fresh Minced Garlic
4 tbsp – Dried Minced Onion
2 tsp – Ground Oregano
2 tsp – Ground Cumin
1 tsp – Cajun Spices or Ground Cayenne Pepper
1 tbsp – Ground Chili Powder
1.5 tbsp – White Wine Vinegar

Once tomato mixture is seasoned and hot, add the browned ground beef from skillet and stir well. Turn crockpot down to low and let simmer 6 to 10 hours stirring occasionally. Adjust spices to taste before serving.

Makes 20-24 X 4 ounce servings (1/2 Cup)

Nutritional information:

Serving Size: 4 oz. (1/2 Cup)
Calories – 97
Cal from Fat – 24
Total Fat – 2.7g
Saturated Fat – 1g
Trans Fat – 0g
Cholesterol – 34g
Sodium – 181mg
Potassium – 0
Total Carb – 2.4g
Dietary Fiber – .5g
Sugars – 1.25g
Protein – 14.25g
Vitamin A – 6.25%
Vitamin C – 15.1%
Iron – 9.6%

Enjoy!! Please comment with variations and opinions!

Hello world!

My name is Phil Pritchett; I am currently a Sr. Consultant at one of the top three largest VAR/ SI partners for Microsoft. Though I may have extensive knowledge and expertise across several areas within IT, my focus has been upon Microsoft Technologies (specifically System Center, and Desktop Management). I don’t profess to be an expert who knows everything there is, I am merely an engineer like many of you who wants to share my findings so that others may benefit.

My career started many years ago when I was working as private security for Paul Allen. One evening during a Blazers vs. Bulls game, I happened to be getting a few laughs with some coworkers at the expense of Mr. Gates. Like those funny stories we always read about or see in TV sitcoms, guess who was standing behind me and listening to the whole thing? Yup, you guessed it….Bill Gates himself…

After some quick apologies, I soon realized that he did in fact have a good sense of humor as he threw some “rent-a-cop” remarks my direction. We had a few chuckles as we walked toward the locker room, then I asked him for a little career advice because computers and technology were always a hobby for me.

It’s been years since then, so the words may have been different but the meaning is the same…

“Technology is the future of our world. If you intend to make a mark on it (the world), then do it now. Don’t wait, because someone else may be waiting for you to inspire them to do the same. Besides, why not get paid for something that you love?”

So, here I am 16+/- years later starting my first blog. My intent is to chronicle my journey as a consultant from this day forward, help some with technology concerns, and inspire others to follow the path that is right for them through the mentally and emotionally charged world of technology and consulting.