SlideShare a Scribd company logo
1 of 26
UNDERSTANDING WMI
OVERVIEW
• What is WMI?
• Exploring WMI
• Troubleshooting WMI
• WMI Error Codes
• Why do we care
WHAT IS WMI?
• History
• Uses
• Components
 Repository
 Namespace
 Class
 Object
 Method
HISTORY AND USES
• Introduced and available in Windows Millennium , XP, Vista and later Operating system.
• Was add on Windows 98, 94
• Very handy for script and programming
Ex. Get the installed applications, add users to group, Reboot the computer remotely
• SQL server• WMI
COMPONENTS
REPOSITORY
NAMESPACE
WMI SQL SERVER
CLASSES
WMI SQL SERVER
OBJECTS WITH IN CLASSES
WMI SQL SERVER
METHOD
WMI SQL SERVER
EXPLORING
WMI
• WMI Control , WBEMTest
• File System
• Registry
WMI
CONTROL
Can be accessed via
compmgmt.msc
Logged tab disabled in 2008 &
2012
WMI
FILE SYSTEM BACKUP AND
REGISTRY SETTINGS
WBEMTEST
• This is a tool to access WMI
and view data.
• CIMV2 is root level
namespace
• Create & Delete classes,
run query
• Attached CDROMDrive
Details
WBEMTEST
• Local User account details
TROUBLESHOOTING
WMI
• Verify error code - 8004xxxxxx
• WMI Logs
• WMIDiag
• Reregister WMI Modules
• Recompile WMI MOFs
• Rebuild WMI – LAST OPTION
WMI ERROR CODES
• First, you need to check error codes.
• All WMI Error starts with 0x8004xxx
• Log Location:
• C:WindowsSystem32Wbemlogs
WMIDIAG
• It’s a free tool, available in Microsoft
Download Link : https://blogs.technet.microsoft.com/askperf/2015/05/12/wmidiag-
2-2-is-here/
• Looks whether WMI is healthy or not and within WMI like Namespaces are
healthy or corrupted
RE-REGISTER WMI MODULES
• Re-register all *.dlls under
Webem directory
RECOMPILE WMI
MOFS
• Bunch of Mofs needs to recompiled to
become WMI healthy.
• This command re-compile all Mof files.
• If there is problem with specific
namespace (like SMS,CIMv2)we can
take specific mofs and recompile it.
• MOF files only become effective when
the files are compiled
• Mofcomp.exe used to compile Mof files
REBUILD REPOSITORY
• Stop WMI service and rename Repository folder under Wbem folder and start
WMI service.
• It is the last option and it resets the repository fresh.
• Very quick to do that but don’t necessarily fix anything.
• Need to find Root cause and fix the problem.
• Can take backup of WMI and restore it to anyother computer to find what is
going on
WHY DO WE CARE?
• Core Dependency for Servers and clients
• SCCM Administrator console
• Engine to access database
• Storage of client data and settings
SCCM CLIENT INSTALLATION THROUGH WMI
Understanding WMI
Understanding WMI
Understanding WMI
Understanding WMI

More Related Content

Similar to Understanding WMI

MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...Victor Toal
 
WMI - A FRONT DOOR FOR MALWARES
WMI - A FRONT DOOR FOR MALWARESWMI - A FRONT DOOR FOR MALWARES
WMI - A FRONT DOOR FOR MALWARESSanthosh Kumar
 
IconUS 2016 conference - Connections Administration Skills
IconUS 2016 conference - Connections Administration SkillsIconUS 2016 conference - Connections Administration Skills
IconUS 2016 conference - Connections Administration SkillsVictor Toal
 
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...WASdev Community
 
MWLug 2013 - IBM Connections Basic Skills
MWLug 2013 - IBM Connections Basic SkillsMWLug 2013 - IBM Connections Basic Skills
MWLug 2013 - IBM Connections Basic SkillsVictor Toal
 
A Hitchhiker's Guide to troubleshooting IBM Connections
A Hitchhiker's Guide to troubleshooting IBM ConnectionsA Hitchhiker's Guide to troubleshooting IBM Connections
A Hitchhiker's Guide to troubleshooting IBM ConnectionsICON UK EVENTS Limited
 
A hitchhiker’s guide to troubleshooting ibm connections
A hitchhiker’s guide to troubleshooting ibm connectionsA hitchhiker’s guide to troubleshooting ibm connections
A hitchhiker’s guide to troubleshooting ibm connectionsSharon James
 
IamLUG2013 Connections Administration
IamLUG2013 Connections AdministrationIamLUG2013 Connections Administration
IamLUG2013 Connections AdministrationVictor Toal
 
What's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine ManagerWhat's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine ManagerTomica Kaniski
 
Social Connections - Installing Free Addons to IBM Conenctions
Social Connections - Installing Free Addons to IBM ConenctionsSocial Connections - Installing Free Addons to IBM Conenctions
Social Connections - Installing Free Addons to IBM ConenctionsVictor Toal
 
Unleashing the Power: A Lap Around PowerShell 3.0
Unleashing the Power: A Lap Around PowerShell 3.0Unleashing the Power: A Lap Around PowerShell 3.0
Unleashing the Power: A Lap Around PowerShell 3.0Sarah Dutkiewicz
 
CNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: ExploitationCNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: ExploitationSam Bowne
 
WMI for Penetration Testers - Arcticcon 2017
WMI for Penetration Testers - Arcticcon 2017WMI for Penetration Testers - Arcticcon 2017
WMI for Penetration Testers - Arcticcon 2017Alexander Polce Leary
 
A Lap Around PowerShell 3.0
A Lap Around PowerShell 3.0A Lap Around PowerShell 3.0
A Lap Around PowerShell 3.0Sarah Dutkiewicz
 
VMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld
 
PACLUG sametime presentation
PACLUG sametime presentationPACLUG sametime presentation
PACLUG sametime presentationamhiggins
 

Similar to Understanding WMI (20)

MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
 
WMI - A FRONT DOOR FOR MALWARES
WMI - A FRONT DOOR FOR MALWARESWMI - A FRONT DOOR FOR MALWARES
WMI - A FRONT DOOR FOR MALWARES
 
IconUS 2016 conference - Connections Administration Skills
IconUS 2016 conference - Connections Administration SkillsIconUS 2016 conference - Connections Administration Skills
IconUS 2016 conference - Connections Administration Skills
 
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
AAI-2016 WebSphere Application Server Installation and Maintenance in the Ent...
 
MWLug 2013 - IBM Connections Basic Skills
MWLug 2013 - IBM Connections Basic SkillsMWLug 2013 - IBM Connections Basic Skills
MWLug 2013 - IBM Connections Basic Skills
 
A Hitchhiker's Guide to troubleshooting IBM Connections
A Hitchhiker's Guide to troubleshooting IBM ConnectionsA Hitchhiker's Guide to troubleshooting IBM Connections
A Hitchhiker's Guide to troubleshooting IBM Connections
 
A hitchhiker’s guide to troubleshooting ibm connections
A hitchhiker’s guide to troubleshooting ibm connectionsA hitchhiker’s guide to troubleshooting ibm connections
A hitchhiker’s guide to troubleshooting ibm connections
 
IamLUG2013 Connections Administration
IamLUG2013 Connections AdministrationIamLUG2013 Connections Administration
IamLUG2013 Connections Administration
 
What's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine ManagerWhat's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine Manager
 
Social Connections - Installing Free Addons to IBM Conenctions
Social Connections - Installing Free Addons to IBM ConenctionsSocial Connections - Installing Free Addons to IBM Conenctions
Social Connections - Installing Free Addons to IBM Conenctions
 
Unleashing the Power: A Lap Around PowerShell 3.0
Unleashing the Power: A Lap Around PowerShell 3.0Unleashing the Power: A Lap Around PowerShell 3.0
Unleashing the Power: A Lap Around PowerShell 3.0
 
virtual machine.ppt
virtual machine.pptvirtual machine.ppt
virtual machine.ppt
 
CNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: ExploitationCNIT 124: Ch 8: Exploitation
CNIT 124: Ch 8: Exploitation
 
10215 A 04
10215 A 0410215 A 04
10215 A 04
 
WMI for Penetration Testers - Arcticcon 2017
WMI for Penetration Testers - Arcticcon 2017WMI for Penetration Testers - Arcticcon 2017
WMI for Penetration Testers - Arcticcon 2017
 
A Lap Around PowerShell 3.0
A Lap Around PowerShell 3.0A Lap Around PowerShell 3.0
A Lap Around PowerShell 3.0
 
VMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep Dive
 
Sample Absolute beginners guide
Sample Absolute beginners guideSample Absolute beginners guide
Sample Absolute beginners guide
 
PACLUG sametime presentation
PACLUG sametime presentationPACLUG sametime presentation
PACLUG sametime presentation
 
Project Moby
Project MobyProject Moby
Project Moby
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Understanding WMI

  • 2. OVERVIEW • What is WMI? • Exploring WMI • Troubleshooting WMI • WMI Error Codes • Why do we care
  • 3. WHAT IS WMI? • History • Uses • Components  Repository  Namespace  Class  Object  Method
  • 4. HISTORY AND USES • Introduced and available in Windows Millennium , XP, Vista and later Operating system. • Was add on Windows 98, 94 • Very handy for script and programming Ex. Get the installed applications, add users to group, Reboot the computer remotely
  • 5. • SQL server• WMI COMPONENTS REPOSITORY
  • 8. OBJECTS WITH IN CLASSES WMI SQL SERVER
  • 10. EXPLORING WMI • WMI Control , WBEMTest • File System • Registry
  • 11. WMI CONTROL Can be accessed via compmgmt.msc Logged tab disabled in 2008 & 2012
  • 12. WMI FILE SYSTEM BACKUP AND REGISTRY SETTINGS
  • 13. WBEMTEST • This is a tool to access WMI and view data. • CIMV2 is root level namespace • Create & Delete classes, run query • Attached CDROMDrive Details
  • 14. WBEMTEST • Local User account details
  • 15. TROUBLESHOOTING WMI • Verify error code - 8004xxxxxx • WMI Logs • WMIDiag • Reregister WMI Modules • Recompile WMI MOFs • Rebuild WMI – LAST OPTION
  • 16. WMI ERROR CODES • First, you need to check error codes. • All WMI Error starts with 0x8004xxx • Log Location: • C:WindowsSystem32Wbemlogs
  • 17. WMIDIAG • It’s a free tool, available in Microsoft Download Link : https://blogs.technet.microsoft.com/askperf/2015/05/12/wmidiag- 2-2-is-here/ • Looks whether WMI is healthy or not and within WMI like Namespaces are healthy or corrupted
  • 18. RE-REGISTER WMI MODULES • Re-register all *.dlls under Webem directory
  • 19. RECOMPILE WMI MOFS • Bunch of Mofs needs to recompiled to become WMI healthy. • This command re-compile all Mof files. • If there is problem with specific namespace (like SMS,CIMv2)we can take specific mofs and recompile it. • MOF files only become effective when the files are compiled • Mofcomp.exe used to compile Mof files
  • 20. REBUILD REPOSITORY • Stop WMI service and rename Repository folder under Wbem folder and start WMI service. • It is the last option and it resets the repository fresh. • Very quick to do that but don’t necessarily fix anything. • Need to find Root cause and fix the problem. • Can take backup of WMI and restore it to anyother computer to find what is going on
  • 21. WHY DO WE CARE? • Core Dependency for Servers and clients • SCCM Administrator console • Engine to access database • Storage of client data and settings