Link to home
Start Free TrialLog in
Avatar of J.R. Sitman
J.R. SitmanFlag for United States of America

asked on

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.
Avatar of John
John
Flag of Canada image

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.
Avatar of J.R. Sitman

ASKER

I can do this, but not sure how long it might take to recreate the problem.
Please let us know. Thanks
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).
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks
Thanks.  Everything seems healthy.
Thanks for the update and I was happy to help