Hello, everyone. I'm instructor Gerry Roberts, and this is Power Shell scripting in this video. We're gonna talk about how to get some computer information, and we're gonna use the C. I am Incense
So to do that, we're gonna look at sea. I am. Instance,
the get see I am in since command. Then we're gonna look at some classes for CM and since which are the 1 32 deaths up
when 32 bios when 32 processor and win 32 computer system classes
using C. I am instance to get computer information.
Now we can use the C. I am instance to get information about a computer. See, I am actually stands for comment. Information module.
This particular module works with W M I A.
Which is the Windows management instrumentation
together. Information. You may be familiar with W M I. If you've worked with remote computers before,
get see I am in. Since command is a command that we actually use to get the information about a computer
with the command, you have to specify it item you want to get. That's where the dash class name portion comes into play. This particular parameter allows you to specify which class of information you want to get.
Another parameter. You can use his dash computer name.
Yeah, if you're reminding the command locally, you don't have to use computer name. Computer name is used solely for when you're working with another computer other than the one that you're currently using.
So that would be, say, if you're connecting remotely to another server or another client and trying to gather information about it.
So a couple classes for our C I. Am instance,
the 1st 1 is Win 30 to underscore Desktop.
This particular one does what it sounds like, and it gets information about the desktop. You know, gather information about all the desktops on the specified computer, whether or not they are in use.
The next one is Win 30 to underscore biased. This one also does what it sounds like and gets information for the BIOS as well as you. Fi
processor is another one we can use, and the wind 30 to Underscore Processor does exactly what it sounds like. A swell and gets information for your processor or processors of that computer.
The wind 30 to underscore. Computer system is another useful class in this class. List information about the computer manufacturer and model.
And it's now time for a short demo so we can take a look at sea. I am instance in action.
Now that we have power show up, we can take a look at the get See I am. And since in action.
So when you're doing that, you didn't get C I and instance
Tash class name and you specify which class you want to get information about. We're gonna go through the couple. We went through the power point. Just see you take a look at what that looks like.
So the 1st 1 we're gonna do is win 30 to underscore Best top
Net shows us that there are a couple of desktops in this particular machine. There's a system, a local service, a network service. There's mine. And there's of course, the default.
all these settings air located in your registry. Now the next one we want to look at is going to be by us information till we d'oh get tea. I am since
class name win 30 to underscore.
and now we have information about the BIOS.
Next, we'll take a look at processor,
so it's get Dash C I and Incense bash. Last name When? 32 processor
there. I have more information about my processor. You know, if I want to make that look a little bit better, I could pipe in a format lis,
and you would get a little bit better output so you could read it.
Now, one thing you will want to notice here
is that when you're pulling this information and doing the commands, this is not a case sensitive module. So anytime you do get see, I am instance, You don't have to be very careful about the case. Last one we're gonna d'oh
is we're gonna do the win 30 to underscore computer system
and you get information about the particular computer. Now again, this is one of the ones you're probably gonna wanna format list, so it looks a little bit better.
But you get the idea there that these particular classes give you quite a bit of information about different pieces on your system. These air super useful, especially in an enterprise environment, when you're trying to get information about all of the computers that are working on the network.
So you have a better idea of a baseline as well as what you're working with
and whether you need to do updates or you need to change out. Equipment also noticed that when I put in, get deaf. See, I am instance I didn't do the dash class name.
This is one of those instances which the parameter order counts so you could put the value in and not have to do the parameter name itself. The parameter still required just not the name.
Now that we've finished our demo, it's on to quiz.
So this post assessment question
wants you to know if you wanted to list information about the computer bias. Which C I am is since class would you use
would you use the wind 30 to underscore computer system
the wind 30 to underscore by us or the wind 30 to underscore processor.
So go ahead, give you a second to see if you can figure that out. You can also posit video if you'd like.
All right. The answer is C win 30 to underscore bus. Remember when 30 to underscore. Boss is a classic contains information about the bios and the UV.
we learned some information about getting computer information using get dash C. I am instance.