[Autogenerated] So let's go back into our
machine and we'll look at how we can Innu
Morant the name spaces on the classes
available to us using the SIM commands.
What will then do is look at how we use
the SIM class Explorer in PowerShell iSCSI
to kind of do the same thing as we did
with the PowerShell commands. Okay, so
we're back at the terminal. What I want to
be able to do is actually find the classes
and instances that are available inside
the SIM class. So to do this, we can
actually just type get sim class. We don't
have to pass anything to it now. This will
go crazy and list out a whole host of
different things, which really is kind of
really unreadable. Even if I use this
scroll, you could just see there's
hundreds of these different things, so
that doesn't really help us. So what
we can look at is I want to be able to
identify everything that's, for example,
to do with the hard disk. So I can say,
get same class, win 32. Now that's a
little bit more kind of easier to manage.
You'll see that it gives me the name space
then gives me the SIM class name that I
was trying to get to, so everything that
contained the word disk. And then, of
course, anything that's associated to
that. So what this means is that we're
able to then identify the specific class
name that we wanted to use. So let's go a
little bit further now. The most important
thing he is that a SIM class such as Win
32 disc or something else contains various
methods. So what we do have the ability to
do is, I could say, Get sim class. I'm
going to do with the class name and we'll
keep it is Win 32 star, and then what I'm
looking for is I want to filter by the
type of method, so I'm going to say term,
which would basically be terminate and
I can. Do enter and you'll see that the
only class in the entire structure here is
Win 32 process that happens to have term
or what would be termination listed as a
class method. So this is a really fast way
have been able to identify which class it
is that I'm trying to get to now. If we go
back here and say Win 32 and just do
operator like that, then of course, this
will bring back our operating system, one
that obviously we utilized before Now,
though, that's helpful. What we are able
to do, then, is to retrieve the instances
inside that class so you can see we're
using operating system. So let me just
change this and we'll do went 30 to
underscore Prock and do a stop. So that
gives me the win 32 process or process.
Er, I'm gonna pick the process one. So let
me just clear this So we can see? And this
time I'm going to use get Sim instantiate
class name and then we'll use that win 32
process. Now what does this give us now?
Just what it does. It gives me a list of
all the processes or the instances off
that type. So that's really what the
instance comes down to The same class is
really the class that contains the type of
thing that we're looking for and the
instance because I've said it's a win 32
process. Go and get me that. So what would
happen if I change that to, say, process
er, if I do that, notice what happened, so
gets him instantiate goes and gets me the
process. Er and sure enough, it comes back
and says there's 2 16 core processes
there, so you can see that the SIM
instantiate command is for instances of
the type that you want to get to. Now we
can use the get sim instantiate little bit
more and we can say, Well, what I would
like to do is see everything in a specific
name space. So our route name spaces
called Route on. I'm going to say class
name and then use underscore underscore
name, space and press. Enter now what this
will do. This gives me the parent name off
the name spaces or the sub containers. At
least that we can utilize. Which means
that if I want to, then look for specific
instances of things I can then use any of
these. So I could say instances off things
within the Microsoft one. So if I go back
and get rid of my name space here and then
type, I forgot to put a space there.
Microsoft and press enter. It's not gonna
ask me for a class name. Now let's try and
be smart here and we'll say name space and
do enter now notice what happens. It gives
me an error. So just be aware that the
name spaces that exist in the classes may
not actually match together. So how do we
find those? Well, we could sit here and
write PowerShell trying to figure out what
it is. But actually, let's go to the start
menu here, and I'm gonna type the word
PowerShell. I'm gonna launch the
PowerShell I see as an administrator. And
what this will do is launch PowerShell I s
e which we don't normally use for
PowerShell seven. But what you'll see is I
have a different Adan that's been added.
This is called the Sim Explorer. Sim
Explorer is one that you can download If I
just minimize this on this, you'll see I
have Sim Explorer set up here. It's just
that executable you could download. So I'm
gonna put these back. And then what I can
do is in the computer name I can specify
the name that I wish to connect to. So I'm
gonna choose connect and notice what
happens. It instantly changes the view Now
you can't zoom in on this one. So when I
try to zoom, it zooms this section. But
what you can see is the same list that was
returned. If I go back here and just do
the same syntax, you can see we've got
default. MSD TC security. If I go here,
you can see m S d T c Security. But we
didn't know what was inside the Microsoft
one, so we couldn't really do anything. So
what we can do here is click on this one
on. Then this will load and you'll see it
starts to break down the things inside. If
I know, expand the classes. You can see
the list of classes that are available
inside those name spaces. Now notice the
format. Here the format is root Microsoft
a back here and we'll go back to the one
that we ran before. If I say slash
Microsoft and choose enter, you'll notice
it gives me the same thing. And that's
because notice the syntax I was using in
PowerShell I was literally just saying
Microsoft Wen. In reality, it's
hierarchical, so you have to say root
slash Microsoft and then we can start to
get the names of the stuff underneath so
we could go further down so I could scroll
here and let's go a bit further to the
bottom. And let's say I want the Microsoft
extended status and then you'll see that
we get all the properties that are
available. If there are any methods,
we can get that, too. So if I say win 32
provider or if I want to go to a timer
event, you can see the properties and any
methods. So the nice thing about a tool
like this is it allows me to kind of move
backwards and forwards inside here so I
can click Windows I can, then say remote
access client M s 409 So I can click into
here and notice it refreshes at the
bottom. So depending where you click will
then determine any properties or methods
that might be available. So there's some
Explorer is a way of you moving and
traversing up and down the tree to kind of
see what is available on the options that
are there. So five, for example, do go
back up to here, do default, click on
properties, methods, classes you can see
the list of classes come in, and you can
obviously go backwards and forwards so
highly recommend using the same Explorer
as an ability to kind of just view the
structure in more of a hierarchical
process instead of trying to guess, or at
least try and figure out. But if you are
going to do that, then what you can do is
you can obviously build this structure
here. So if I say Windows, it'll break it
down even further so you can see we just
literally going slash across and moving
it. So let me do that and do one more, and
then I'm going to say DNS and then do
AD DS gives me a value. So that's the kind
of the logic behind this is to be able to
find the classes, find the properties and retrieve the values that would be needed.