Time
1 hour 43 minutes
Difficulty
Intermediate
CEU/CPE
2

Video Transcription

00:00
Hello, everyone. I'm instructor Gerry Roberts, and this is Power Shell. Scripting
00:05
this video. We're gonna learn about some additional help items. We're gonna learn about the about library
00:11
to show window command and the show Command command.
00:16
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
00:29
basically these air help files to help the user understand some concepts within power show
00:36
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.
00:44
It's more robust and normal help files. For example,
00:48
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.
01:02
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.
01:11
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
01:23
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.
01:36
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.
01:46
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
01:57
all those files for the about file certain about Underscore
02:04
Or,
02:05
if you don't wanna look in power show, you can find them on the Microsoft Docks website.
02:12
If you go to the Microsoft Docks Power Shell website
02:15
and look up
02:17
about files, you'll be able to find the article that lists all those files.
02:23
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
02:40
type in Power Shell. And then when you find the power shell page
02:45
search for about files on the power show page,
02:50
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.
03:00
For example, here
03:02
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.
03:16
It also gives you the bonus of having a search feature, which, if you look at the top of
03:23
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,
03:32
and you'll also be able to scroll through using previous and next if it finds them more than one result for your search.
03:44
Another useful command, the Dash O Dash Command.
03:47
This is very useful because it allows you to pop up a command into a graphical window so you can
03:57
work with it a little bit easier than just hyping it out
04:00
When that pops up instead of having it local. Like the show window, it's actually information about the command,
04:09
so you have a bunch of tabs. Each tab is a parameter for that command,
04:14
any command parameter that is required so any of those that have to be done
04:20
are marked with an asterisk.
04:24
Any changes that you make in this window, you could run into your regular power show window by clicking Run at the bottom.
04:31
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.
04:45
Updating help
04:46
so things you change from time to time, so you may have to update your help files in order to do this.
04:55
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
05:09
if you are offline. Unfortunately, it's a little more complicated.
05:13
So what, you have to do is you have to go to another computer.
05:15
There is updated
05:18
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.
05:29
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,
05:39
and what it'll do is it'll sink the files from that media to your computer to update your health
05:47
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?
05:58
Would you toggle window, show, window, show command or show?
06:04
I'll give you a minute to go ahead. Think about it.
06:10
All right,
06:11
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.
06:18
Now remember, show command
06:21
moves the command itself to another window and shows you the parameters for that command. So that's why you would choose show window

Up Next

Intro to Powershell Scripting

In this course, you will learn the fundamentals of Microsoft Powershell, which is a popular task automation and configuration management framework. In this course you will learn the basics of the tool, to get started scripting today!

Instructed By

Instructor Profile Image
Gerrianne Roberts
Professor, Network Engineering Technology
Instructor