Theresa Nash at Bullseye ran a Windows update, then she could not print in Petroware. 

Error: InitPrinter(rpt): No Default Printer. 

 

Grazyna gave me a command to run in cmd prompt as administrator to see if it could find the printers: 

 

Wmic printer get name <enter> 

 

If it finds printers, it will list them. 

 

Theresa was getting an error on the return of the command: 

Error: 

Description = Invalid namespace 

 

We found a solution online that worked: 

 

Microsoft Windows Server 2003 -"Failed to initialize all required WMI classes" 

Issue 

Unable to monitor the server and install patches using SCCM and error in WMI control properties: 

Failed to initialize all required wmi classes
 
 

Win32_processor:Wmi:Invalid class
 
Win32_WMIsetting:WMI:Invalid class

Security information:successful

Win32_Operating system:WMI:Invalid class
 

Solution Look at old box for files **We did these steps for GM Southeast** Windows 10 ver 22H2 

Ran the commands given below: 

For command prompt navigate to cd c:\windows\system32 

regsvr32 /s %systemroot%\system32\scecli.dll
 
regsvr32 /s %systemroot%\system32\userenv.dll 

regsvr32 cimwin32.dll
 

**cd c:\windows\system32\wbem 

 
mofcomp cimwin32.mof
 
mofcomp cimwin32.mfl ** in folder \en-US

mofcomp rsop.mof **

mofcomp rsop.mfl ** in folder \en-US

for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s

for /f %s in ('dir /b *.mof') do mofcomp %s

for /f %s in ('dir /b *.mfl') do mofcomp %s **in folder \en-US

regsvr32 wmisvc.dll)

wmiprvse /regserver
 

Issue resolved. 

 

****New issue with Windows 11 where WMIC is deprecated. Usually on Win Ver 11 24H2 version 

Start, Optional Features 

Add WMIC