1 hour 43 minutes
Hello, everyone. I'm instructor Gerry Roberts, and this is Power Shell. Scripting
this video. We're gonna learn about some additional help items. We're gonna learn about the about library
to show window command and the show Command command.
First of all, the about library. So power Shell actually has a very robust about library. And according to Microsoft, these air topics that cover arranges of concepts about power shell
basically these air help files to help the user understand some concepts within power show
the output you yet from the about files is pretty similar to the dash full switch that we did with the help commands a couple videos ago.
It's more robust and normal help files. For example,
if we wanted to get information about environment variables, we would use the get dash help space and then Leslie about file, which is about underscore environment, underscore variables.
Now, something to notice. The about files will always start with about underscore. So, whatever you're looking up, we'll start with about underscored.
Now, the command here will bring up the about file for environment variables. What you can see in the picture over here, we piped it to a text file, so you can look at the information
now. In some cases, it might be easier to pick to the text file so you can sit there and read it or have for later. In other cases, you can go ahead and just put it on your power shell window and read through it.
If you want to see all of the about files that are available, you can type get dash Help Space about underscore on wild card.
This will find all of the about files by using about underscore and a wild card to find any files that start with about Underscore. Remember
all those files for the about file certain about Underscore
if you don't wanna look in power show, you can find them on the Microsoft Docks website.
If you go to the Microsoft Docks Power Shell website
and look up
about files, you'll be able to find the article that lists all those files.
Or you can try typing this entire you Earl into your browser and you'll be able to find it that way. Now knows this is another Ian Dash us if you are in a different country. Easiest way to find it is to go to the marker soft doctor website
type in Power Shell. And then when you find the power shell page
search for about files on the power show page,
another useful item is the show window command Dachau windows, actually a switch parameter, and it moves the output from the current window to another one doesn't make it easier to read.
For example, here
we did get help space about aliases, and then we did the parameter for show window. And instead of showing all that information in the current window, it pops up another window to make it easier to read.
It also gives you the bonus of having a search feature, which, if you look at the top of
the show window window, you can see fine. If you start typing in something it will look for, just like you could find it in a word document or another item,
and you'll also be able to scroll through using previous and next if it finds them more than one result for your search.
Another useful command, the Dash O Dash Command.
This is very useful because it allows you to pop up a command into a graphical window so you can
work with it a little bit easier than just hyping it out
When that pops up instead of having it local. Like the show window, it's actually information about the command,
so you have a bunch of tabs. Each tab is a parameter for that command,
any command parameter that is required so any of those that have to be done
are marked with an asterisk.
Any changes that you make in this window, you could run into your regular power show window by clicking Run at the bottom.
You could also copy any of these changes by using copy at the bottom, and that will copy your information into the clipboard so you can look at it later.
so things you change from time to time, so you may have to update your help files in order to do this.
There's a couple things if you're online, it's very simple. You just type update help. It'll run for a few minutes, and it'll pull all the different changes from online for the Microsoft Server and update for you
if you are offline. Unfortunately, it's a little more complicated.
So what, you have to do is you have to go to another computer.
There is updated
yousa saved ash help command to save them to a drive or removable media, so that saves all the updates to something you could bring to the other computer.
Then, when you get to the other computer and you put in the media, you have to run update help with a source path parameter Pointing to that media that you have,
and what it'll do is it'll sink the files from that media to your computer to update your health
post assessment time. So if you wanted to move the output of a command to another window to make it easier to read, which switch parameter would you use?
Would you toggle window, show, window, show command or show?
I'll give you a minute to go ahead. Think about it.
so it would actually be show window. Now show window moves the output of a command to another window to make it easier to read.
Now remember, show command
moves the command itself to another window and shows you the parameters for that command. So that's why you would choose show window
Create Scheduled Jobs with Windows PowerShell
The Create Scheduled Jobs with Windows PowerShell Guided IT pro Challenge from Learn on Demand ...
Learn On Demand
This Azure Automation IT Pro Challenge helps learners understand how to use the Azure Portal ...
Learn On Demand