windows server 2012 not loading roles and features installed on the server.

Hello Experts. on a windows 2012 server, the server is not able to load the roles and features installed on the server, in server manger it states, this is because the server requires a reboot. after multiple reboots, still same issue. in the CBS logs, i see the error log file attached. the folder that it is searching under is empty. how can i resolve this issue. also when i try to rdp into the server, it causes a reboot of the server, with error showing 'your pc ran into a problem' KMODE_EXCEPTION_NOT_HANDLED. Please advise. thanks in advance.
Newguy 123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew LeniartIT Consultant & Freelance JournalistCommented:
Not too sure about the first part of your question, however...


That usually indicates a blue screen of death type crash, often caused by either a corrupt or incorrect driver. The two problems could be related.

Have you installed any new hardware to the faulting server of late? (This includes USB devices)

If you view device manager on the server, do you note any problems? (Look for yellow exclamation marks and red X's)

Can you identify the exception code of the KMODE error? Check this Microsoft article for some trouble shooting tips.

Hopefully, a few more experts will soon chime in with some more suggestions.

Is this virtual server or physical server?
I guess physical
Check bios settings and reset it to default value and check
Then probably  reinstall it with vanilla os, check if issue exists and then start installing drivers
Newguy 123Author Commented:
Hello, this is a virtual machine. I ran the bluescreenview, and placed the minidump file in it. It found 'the caused by driver' to be ntoskrnl.exe. In device manager on the server, all drivers show as healthy. Any way of further troubleshooting this, or ugrading this specific driver
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Andrew LeniartIT Consultant & Freelance JournalistCommented:

The driver you have identified is an integral part of the Windows operating system.

I suggest you open an elevated command prompt and type the following commands.

chkdsk /f  (a restart will be required) This will check (and correct) the server for crosslinked files and file system errors.

sfc /scannow  This will check all protected system files and should replace any that are found to be corrupt.

Retest after running the above two commands and report back.
Newguy 123Author Commented:
Hello Andrew, i ran the chkdsk /f, it ran successfully, no errors found. When i try to run the second command sfc /scannow in elevated cmd, it states 'there is a system repair pending which requires reboot to complete. Restart windows and run sfc again'. After rebooting the server, same message appears again when i try to run sfc /scannow. Please advise.
Andrew LeniartIT Consultant & Freelance JournalistCommented:

Boot into Safe mode by using the following command from an elevated command prompt.

bcdedit /set {bootmgr} displaybootmenu yes  (Tells Windows to display the boot menu after restarting)

Restart and press F8 at the boot menu to get into Advanced options. You should then be able to select "Safe Mode"

Once in safe mode, open an elevated command prompt and run the following command

dism.exe /image:C:\ /cleanup-image /revertpendingactions  (This should clear the system repair pending actions)

Does it complete successfully? If yes, run "sfc /scannow" again. Did it run and complete this time? If yes, retest to see if the problem still exists.

Note: To stop Windows pausing at the boot menu for future restarts, use the same command, but replace the 'yes' switch with 'no'  Ie:

bcdedit /set {bootmgr} displaybootmenu no  (Tells Windows to stop displaying the boot menu after restarting)

See how you go with the above and then report back for further help.

Newguy 123Author Commented:
Hello Andrew, i recieve error 87 when running the dism command, see attached photo. When i run it with /online switch, it states this command can only be run against offline images, please advise
Andrew LeniartIT Consultant & Freelance JournalistCommented:
Hmm.. The only other 'safe' thing I can think of you could try, is to try and manually remove the "pending.xml" file from the \windows\winsxs\ folder.

I don't have a 2012 server available to me at the moment to check if that will be possible while Windows is running. I suspect there may be a permissions issue, but it's worth a shot.

Booting the server into a recovery command prompt before windows loads should allow you to run the dism command, but I'm not totally clear on how you would boot a VM server into a system recovery console prompt. As explained in my PM, I'm getting into an area I'm not very clear on and I don't want to suggest you do things that may end up doing more harm than good. Might pay to wait for more expert input.

Andrew LeniartIT Consultant & Freelance JournalistCommented:
If you ended up rebuilding the Server VM as you said you might, please let us know and close this question without awarding any points. (Just select your own final comment as the answer)


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Remote Access

From novice to tech pro — start learning today.