In this segment, learn how to find WMI objects and see how to extract details of a Windows computer by pulling the properties of a WMI instance.
- [Instructor] WMI was originally built…on Microsoft proprietary technology,…which means it wasn't originally intended…to search other operating systems.…For that reason, and others I'm sure,…WMI cmdlets have taken longer…to be ported over to power shell core…in its multi platform compatibility.…So with that in mind, I'm going…to stick with Windows PowerShell in this section.…We have here a Windows 10 enterprise workstation…that's been joined to the landonhotel.com domain.…
And this is the computer that I'm going…to use for this demonstration.…One of the challenges in working…with WMI is finding exactly which namespace,…class, and instance contains the information…that you want to read or manipulate.…So let me go ahead and open PowerShell…with administrative access and let's take a look…at some of these objects.…There is a cmdlet to list all…of the WMI objects for you.…It is Get-WMIObject...…
but if I run it like that with no parameters, depending…on the version of PowerShell that I'm running,…I'll either get nothing or I'll get a prompt…
Released
8/17/2018- Creating a PowerShell script
- Creating scripts in IDE or Visual Studio Code
- Working with files
- Loading modules
- Using functions
- Managing servers with WMI
- Adding users to a domain
Share this video
Embed this video
Video: Use WMI objects