You have learned that objects contain members and that those members consist of properties methods anti-wealth
to this point to this course you have used properties of objects.
Now you will be able to use methods methods tell an object to perform some action or task repository
or objects that you Querrey with WMI or see him frequently have methods that reconfigure their manageable
components that the objects represent.
For example that re-inserted to discuss service class-C instances represent background services.
The class a change method that reconfigures many of the settings for a service that include its logon
password name and start mode.
If you know the class that represents the manageable component that you want to reconfigure you can
discover the methods of that class by use and get mamber for example get WMI object.
This class Winsford to discuss service pipe get member or GM.
The resulting list will display all available methods.
Remember that not every class or for small sets.
So sometimes the list may not include any methods.
The output of get member does not explain how to use the methods unless you are already know how to
use them.
You have to find the documentation for the class.
The same technique will not work with.
Get some instance because the objects are returned by that command do not have a complete set of methods.
Instead you would run this command.
Get some class first class to do just cause service by select object Desch expand property.
Same class methods.
There is no efficient way to search across all classes for a given method.
To do this in Windows POAs shell you would have to wear it every class by each one to get mamber and
search that output for a method name or keyword.
This approach would be very time consuming and impractical and Internet search engine would pro-white
faster and easier way to search for classes and methods.
So let's talk a bit about in documentation method documentation if any exists will be included on the
documentation or web page on the repository class.
Remember that repository classes are not typically well documented.
Especially classes not in their root seem the two namespace and Internet search engine is the fastest
way to find the documentation for a class after the class name into a search engine.
And one of the first few search results will typically be the class documentation page.
The documentation page will include a section named Masset.
There are other classmates that are listed.
You can click any method name to display instructions for using that method.
They mainly use all the documentation is to determine that arguments each message requires.
For example the re-inserted to shut down method or that when so to underscore operating system class
except as a single argument.
The argument is an integer and it lets the Masset.
What kind of shut down restart or other action to take.
Well let's take a look at some demonstration examples you'll see how to discover class methods and how
to find their documentation.
So to display the members of re-inserted to underscore service class just type get WMI object the class
name re-inserted to underscore service and pipe it to get mamber.
Here you can find change method for example.
So to use Windows powers cell to display the definition for change method of VIN so to to service type
got WMI object class re-inserted to service by GET member pipe their name equals change and pyper to
form a list by name and definition.
Now let's find online documentation for the change set of incertitude service you have to open a web
browser go to some search engine like Google or bin and events or to to discuss service as a search
term in the search result click Vincit to underscore a service class for Windows.
And you could find and I'm as dn documentation page and read about this method.
So scroll down to the mansard section list and then click change.
You can find that the method has 11 parameters and you can review all these parameters.