Server Roles and server features are not listed

Problem:

Server Roles and server features are not listed, or may be giving an error, or switching to you to a main server manager window.

Add/Remove software list is empty

Windows patches are not installing

Windows Modules Installer service (Service Name: Trusted Installer) doesn’t start and error is logged “windows could not start the windows modules installer service on Local Computer. Error 126: The specified module could not be found”

Reason:

Winsxs folder permissions are changed, Files are deleted from WinSXS folder.

Inappropriate change of a registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version

Solution:

Step 1:
Locate the C:\Windows\Servicing\Version directory, and note the name of the subfolder in this directory. It will be named something like “6.1.7600.16385.” This is your TrustedInstaller ID.

Step 2:
Copy the subfolder name to the clipboard, and then paste it into Notepad for safekeeping.

Step 3:
In the C:\Windows\WinSxS directory, find a subfolder whose name begins with one of the following strings. (In the following subfolder names, the placeholderTrustedInstaller ID represents your TrustedInstaller ID.)
For 32-bit Windows
x86_microsoft-windows-servicingstack_31bf3856ad364e35_TrustedInstaller ID_none
For 64-bit Windows
amd64_microsoft-windows-servicingstack_31bf3856ad364e35_TrustedInstaller ID_none

Step 4:
Create the following registry subkey:
HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version

Step 5:
On the Version key that you created in last step, create an expandable string value or edit if it is already there . use the TrustedInstaller ID as your name, and use the full path of the folder that you identified in step 3 as the value (for example: %SystemRoot%\WinSxS\folder_name instead of C:\Windows\WinSxS\ folder_name)

Disk Inaccessible

Windows Server 2012 Disk Inaccessible

Problem: You are not able to access disk drives in windows server 2012 because UAC is enabled in windows 2012 server.

Solution: You need to turn off UAC via registry by changing DWORD “EnableLUA” value from 1 to 0 at this path “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system”.

Note: A reboot is required to make these changes. After the reboot, UAC will be disabled and disk drive will be accessible.

VSS writers re registration

VSS writers re registration

Sometimes few writers are not listed when running command vssadmin list writers due to vss writers corruption, this can be resolved with these below troubleshooting steps.

Backup is failing due to corrupted VSS writers or Re register VSS writers.
Error: 0x8000FFFF
Event ID: 12302

Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\Subscriptions

Delete this sub key (Subscriptions)

Open Service management console services.msc and restart below services.
COM+ Event System
COM+ System Application
Microsoft Software Shadow Copy Provider
Volume Shadow Copy

Re-register VSS writers with the below commands.

cd /d %windir%\system32
net stop vss
net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 /i eventcls.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll

Note The last command may not run successfully.

Now run vssadmin list writers command to Confirm that the VSS writers are now listed.

Wmi Repair

Wmi Repair Basic Level

When WMI is throwing errors you can get it repaired with the steps mentioned below. sometime WMI issue occur when SP is installed or some major security update open a command prompt with run as administrator privileges and run below commands.

Winmgmt /verifyrepository to do a check of the repository
Winmgmt /salvagerepository to rebuild the repository to the last known working (Most common fix)
Winmgmt /resetrepository to set the repository back to new build status.

 

Wmi Repair Medium Level

When WMI is throwing errors you can get it repaired with the steps mentioned below. sometime WMI issue occur when SP is instlled or some major security update.

Try to rebuild the repository…..
1. winmgmt /clearadap
2. winmgmt /kill
3. winmgmt /unregserver
4. winmgmt /regserver
5. winmgmt /resyncperf
6. net stop winmgmt
7. del %SystemRoot%\system32\Wbem\Repository\*.* /s
8. net start winmgmt
9. %SystemRoot%\system32\wbem\wbemtest.exe
10. Connect using Root/Default

first time connection will take some time since the repository is being rebuilt.

 

 

 

WMI Repair Advanced Level

When WMI is throwing errors you can get it repaired with the steps mentioned below. sometime WMI issue occur when SP is instlled or some major security update.

While doing WBEMTEST, (Via command prompt, %SystemRoot%\system32\wbem\wbemtest.exe), we get the below Error:-

0x80041002
wmi description: not found

While connecting to local WMI, (Run wmimgmt.msc from command prompt; right-button on “WMI Control (Local)”- properties), we get the below error:-

Failed to initialize all required WMI classes.
Win32_Processor: WMI: Not found
Win32_WMlsetting: WMI: Not found
Security information: Successful
Win32_OperatingSystem: WMI: Not Found

Troubleshooting steps:–

Rename Repository folder to repository_OLD.
ren %windir%\System32\wbem\Repository %windir%\System32\wbem\Repository_old

Create new Repository folder
md %windir%\System32\wbem\repository

sc config winmgmt start= disabled
net stop winmgmt /y
cd %windir%\system32\wbem
for /f %s in (‘dir /b *.dll’) do regsvr32 /s %s   –check all the WBEM DLLs are correctly registered
regsvr32 %windir%\system32\tscfgwmi.dll   –check that the Terminal Services provider is correctly registered
wmiprvse /regserver                                             –check that the provider host is correctly registered
winmgmt /regserver                                              –check that the WBEM Server (WMI service) is correctly registered
sc config winmgmt start= Auto
net start winmgmt

Recompile the MOF files under the WBEM folder

for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s

After reboot you can check doing a WBEMTEST as well as connecting to a local WMI.

 

Wmi Repair Medium Level

When WMI is throwing errors you can get it repaired with the steps mentioned below. sometime WMI issue occur when SP is instlled or some major security update.

Try to rebuild the repository…..
1. winmgmt /clearadap
2. winmgmt /kill
3. winmgmt /unregserver
4. winmgmt /regserver
5. winmgmt /resyncperf
6. net stop winmgmt
7. del %SystemRoot%\system32\Wbem\Repository\*.* /s
8. net start winmgmt
9. %SystemRoot%\system32\wbem\wbemtest.exe
10. Connecting using Root/Default

first time connection will take some time since the repository is being rebuilt.

Backup Failure (Vss Writers Failed)

Cause (Backup Failure)

When you run a command vssadmin list writers  through command prompt, it will list all the writers registered in the system and backup is failing due to some vss writers failed state for many different reasons, and required to restart the server.

if there is no list after running the command then run this command in an elevated command prompt.

This issue can be resolved sometime without rebooting the server by Manually restarting the selected VSS writers when in a failed state.

Resolution

Check VSS writer’s which all are in failed state and then see the associated Service Display Name in the table below and restart specific services.
Run the command again to confirm the status has changed Stable with no Error
If the VSS writers fail again, it will be necessary to restart the server.

 

VSS Writer Service Name Service Display Name
ASR Writer VSS Volume Shadow Copy
BITS Writer BITS Background Intelligent Transfer Service
COM+ REGDB Writer VSS Volume Shadow Copy
DFS Replication service writer DFSR DFS Replication
DHCP Jet Writer DHCPServer DHCP Server
FRS Writer NtFrs File Replication
FSRM writer srmsvc File Server Resource Manager
IIS Config Writer AppHostSvc Application Host Helper Service
IIS Metabase Writer IISADMIN IIS Admin Service
Microsoft Exchange Writer MSExchangeIS Microsoft Exchange Information Store
Microsoft Hyper-V VSS Writer vmms Hyper-V Virtual Machine Management
NTDS NTDS Active Directory Domain Services
OSearch VSS Writer OSearch Office SharePoint Server Search
OSearch14 VSS Writer OSearch14 SharePoint Server Search 14
Registry Writer VSS Volume Shadow Copy
Shadow Copy Optimization Writer VSS Volume Shadow Copy
SPSearch VSS Writer SPSearch Windows SharePoint Services Search
SPSearch4 VSS Writer SPSearch4 SharePoint Foundation Search V4
SqlServerWriter SQLWriter SQL Server VSS Writer
System Writer CryptSvc Cryptographic Services
TermServLicensing TermServLicensing Remote Desktop Licensing
WINS Jet Writer WINS Windows Internet Name Service (WINS)
WMI Writer Winmgmt Windows Management Instrumentation