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
In this video, we're gonna talk about which power shell tools you can use to work with. Power show
00:11
power Shell in the command line,
00:14
customizing the interface
00:16
and some tools for power shell scripting.
00:20
First, let's talk about power shell tools. In order to use Power shell, you have to use one of the tools. There are a couple main tools that are loaded into Windows Instances. The 1st 1 is Consul. There's an X 64 in the X 86 version, so there's a 32 bit of 64 bit version
00:40
when opening them
00:41
x 64 bit. It's usually listed as just power shell, and X 86 is usually listed as Power Shell X 86.
00:52
This is good for basic power shell usage.
00:56
You also have power shell I s C. I S C stands for integrated scripting environment and this is great for writing scripts, saving scripts and testing them.
01:07
Open the tools. There are a couple methods,
01:11
easiest way of locating and opening them.
01:15
I say use the window search future as you can see. Picture to the right
01:19
Typically, when you type in power show, you'll get a list that looks similar to this
01:23
and you'll see that you have the eye S E X 86
01:29
and you also have the regular one listing.
01:33
Best practice is to run an administrative mode. So when you go to open up our shell, I s C. You can either right click
01:42
or go administrator mode,
01:44
and that's the same for the consul's. So any time you try to open any of them, right click administrator mode or if you noticed in Windows 10 you also get this little option here in the apse pain that says Run as an administrator
01:57
for server, There's actually a special place you confined power shell tools.
02:02
If you go to server manager and you go to the tools menu, you can find them in there now. You could still search for them, just like you can in the client version of Windows. It just seems a lot quicker to go Tools and power show.
02:17
Now, if you're not using a tool and you want to use the command line instead, you can actually do that is very simple. So opening and closing power shell in the command line
02:30
for opening
02:30
you type in power show, and as you can see here, you'll get a prompt. This is power shell copyright information, and then you will get your listing here with P s in the front instead of just you're a regular propped closing power shell.
02:49
Very simple as well. Just have been exit, and you will go back to a normal command line product.
02:59
The other thing you could. D'oh!
03:00
As you can customize the interface for power show
03:04
now when you open up power shell,
03:07
you'll notice that is very basic on the man Prompted Still white on black in Power Shell, It's white on blue
03:15
eso. You'll want to change that in some cases, so it's easier for you to read or look at
03:22
to change it in the command line. Prompt. It's simple. Just right. Click the title baller Cheese properties. You'll see a little menu comes up
03:30
and then it pops up to this nice little box, for you can go and change a couple different things. If you go to the fought section right here,
03:38
you'll see that you can change font size type. All that good stuff if you want to change the color so it's a little bit easier to read. You can go to the colors tab and change those items. One thing you'll want to notice in the colors tab is that you have text for your screen and for pop ups
03:58
so you can change the background and the text on the normal screen, as well as any pop ups that might come up a za result of a command
04:08
in consul very similar to the command line. Prompt on how you're going to be able to make those changes
04:15
just right. Click of the top Goto properties and you'll see that you get a similar box with thoughts, colors and all that good stuff that you can d'oh again. And here fought changes, font size type. All that good stuff and colors will change the consul colors.
04:31
You have foreground and background just since you do in the command line, as well as pop up colors like you do in the command line
04:41
now, big difference with I S C or integrated script environment. There are a lot more options for customization,
04:48
so you could do font color and size if you got tools and options. You can change that in there.
04:55
You'll see
04:57
it's under colors and thoughts. There's also some other settings in general settings where you can change items like whether that intel a sense has turned on whether or not you can view line numbers when you're typing out and all that good stuff. Another thing in here that you don't get with others is a restored defaults where you can go back
05:16
to power Show I s C
05:18
defaults. This is something you can't really do in the console.
05:24
You could also change how the window is organized and what you want to show. You know, Consul Command line. You pretty much just have a box, and that's it. And I see you have a couple of different boxes with different things that you can move around.
05:39
So if you want to add things like, say, the script pain so you can write out your scripts,
05:44
you can go to view and then choose item you want to view.
05:48
Now the script pain can be viewed on the right or on the top. So that is something to remember, so you can move that around a little bit to make it easier to read.
05:59
You also have a command at on
06:01
that you can add to the right there. It's an adult that allows you to search for commands, which is super useful if you can't remember a whole command. But you remember part of it, you could start typing it, and I'll come up with a list of similar items to what you're typing.
06:20
Cem scripting tools that are available
06:24
scripting you can do with Power Shell. I s see there are a lot of people that do that
06:30
come and it's very useful. Very easy, even have little options for color coding and stuff like that. You can't even write your scripts in note pad and just write him out and save him as a dot ps one file. You can also use a tool called note pad plus plus
06:46
note. Pad plus plus allows you
06:49
to kind of work like you're in a power shall. I s see your visual studio environment where you can color code, all your commands.
06:59
You also have visual studio. You can do power shell scripting in visual studio and save it as a dot PS one and run it as a power shell script.
07:08
So are post assessment time here.
07:10
If you wanted to use a power shell tool that was good for scripting, which tool would you Years.
07:15
But you use the command propped. Would you use powershell x 86?
07:20
Would you use powershell I s C
07:24
for power shell X 64.
07:27
Now you can pause
07:29
if you'd like.
07:32
All right, so the answer is C Power Shell. I s E Parshall. I see you remember is integrated script environment. So it's designed for usage with scripts.

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