Printers are getting deleted from a Windows 2012 R2 print server

Our Windows 2012 R2 Virtual server that is set up as a PrintServer has been completely losing printers.  e.g. printers that were in the printers are now gone.  

The server is a Hyper-V

In my 20 years I have never seen this happen.

Any help will be appreciated.
J.R. SitmanIT DirectorAsked:
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.

JohnBusiness Consultant (Owner)Commented:
I have not seen that either,

Clear the Print Spooler

Right-click “Command Prompt” and select “Run as administrator“.

Type net stop spooler then press “Enter“.
Type del %systemroot%\System32\spool\printers\* /Q then press “Enter“.
Type net start spooler then press “Enter“.

Now in the same command window, run:

dism.exe /online /cleanup-image /restorehealth

Best after this to restart the server.

Now set up a printer and test.
J.R. SitmanIT DirectorAuthor Commented:
I can do this, but not sure how long it might take to recreate the problem.
JohnBusiness Consultant (Owner)Commented:
Please let us know. Thanks
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

J.R. SitmanIT DirectorAuthor Commented:
I looked up "dism.exe"  and that does not sound like a good idea.

Deployment Image Servicing and Management (DISM.exe) is a command-line tool that can be used to service and prepare Windows images, including those used for Windows PE, Windows Recovery Environment (Windows RE) and Windows Setup. DISM can be used to service a Windows image (.wim) or a virtual hard disk (.vhd or .vhdx).
JohnBusiness Consultant (Owner)Commented:
The DISM command and parameters I posted will work with the existing system. It should not cause a problem - has not for me. As posted it uses the onboard sources.  

You can run /scanhealth instead of /restorehealth to check first.

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
J.R. SitmanIT DirectorAuthor Commented:
J.R. SitmanIT DirectorAuthor Commented:
Thanks.  Everything seems healthy.
JohnBusiness Consultant (Owner)Commented:
Thanks for the update and I was happy to help
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
Printers and Scanners

From novice to tech pro — start learning today.