Using PowerShell Help

All PowerShell cmdlets have a particular syntax that the command must follow to work properly. Additionally, many of the cmdlets have many different switches, or variables, that you can configure in order to tweak the command to do something specific. We have walked through many examples of this already. What if you want to discover more about any particular PowerShell cmdlet? You could certainly turn to the internet and type the name of the command into your search engine, and that would likely steer you toward a Microsoft Technet page with all of the information you are looking for. If you don't feel like searching the internet, there is help information stored right inside PowerShell. For any cmdlet inside PowerShell for which you want to query up all of its related options and information, you simply open PowerShell and type the word help followed by the name of the cmdlet.

Let's take a look at one together. We have already used the New-GPO cmdlet, but we did so in a very simple way. There are additional options you can flag onto a New-GPO command in order to set up more things about the GPO when it is first created. For example, you can create a new GPO and require it to be built from a Starter GPO, just like we can do inside GPMC. If I want to learn more about how to build out that more complex command, I would open PowerShell and type Help New-GPO:

Depending on your machine's internet connection, the results displayed may be static data that is stored inside PowerShell, or it may be more comprehensive. If there is updated information available online, and if PowerShell has access to the internet to pull the newest Help data from Microsoft's server, you may see even better results. You will see a message regarding this near the end of the command output, so you know whether or not you still need to visit Technet in order to find the latest/newest information.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.147.77