From the course: PowerShell: Scripting for Server Administration
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Use WMI objects - Server Tutorial
From the course: PowerShell: Scripting for Server Administration
Use WMI objects
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.