You need to learn the basics and have a point of reference for building your own scripts.
And this lesson will cover more powerful concepts that will provide you with a foundation of knowledge
for you.
And there remain examples in this course if you are already familiar with power.
You may want to use this video as a review or as a reference for a later after you've started writing
scripts.
If you are completely in your power show the concept may be familiar.
If you've worked with Unix common shelves like Unix based shells Rocio also allows you to string multiple
commands together on one line using a technique called pipelining.
This means that the output of one command becomes the input for another.
First off let's open Power Shell Rona's search for power shell on your computer.
You probably have several different options like Power Shell Power Shell eyes the Power Shell X 86 the
IAC or integrated scripting environment as I've mentioned already is a handy tool which allows you to
write scripts on the fly and also has a conventional low carb for all the power shell commands.
Right now this is more than when the int x 86 exist for backwards compatibility.
We want x 64 bit for our use for general use one just called Windows power shell.
You may want to pin it to your test bar right click it to give this option.
When you open it it will look like this.
If you don't like the white on blue right click the top bar select Properties and go to colors to change
things.
You may have to close and threw open Power Shell to get it to display correctly.
When we are ready we can navigate to our system and I seen about power Challice you always know where
you are because it tells you that in the prompt.
In my case it's Langley's but you should say something similar but with your username in case you don't
just type as cell space field character.
Make sure to include the space.
This will bring you to your home directory directory is just another word for folder and power shell
considers your user folder to be your home and turn SL space.
Tilt is just like opening a folder called to users and from there using your graphical user interface.
So let's start by learning how to move around between directories and view their contents to view directory
contents.
You could use get the child item command layout.
There are several aliases for it.
Also you could type GC LS or D.
All those are aliases for the get the child title command left our first command is Girl Child Titan
So go ahead and type it to him and he turned to her.
You see a list of everything in your current directory.
In my case that looks like this.
It could be different on your screen.
Notice that instead of this long command to get to this child diatom you could just enter jucy II.
It's an abbreviation for it or ls the command so will the command SOORLEY will belong in.
Are all of the form verb dush now.
These are called command lengths and to their form is supposed to make it easier to remember what they
do and predict similar command last.
Because command lets a rather long.
Most of them come with slicker aliases as I've mentioned that you can use instead.
I know fields present.
C'mon let's me their names but Olva's subsequently use standard aliases because they are much faster
to work with.
It is important to note that many criminals have multiple aliases for instance.
These can get child to item either GC ID or or less all of them do exactly the same theme.
While it is unsurprising that GCI is short for get child Titan you may be wondering where dir or ls
come from voer shell is relatively new and its designers anticipated many people who would use it we
already have experience with some existing command line interface.
Specifically are there is Microsoft command line interface called common prompt or is Linux command
line interface like bash which is now also standard on all six last medicament let's have an alias that
is standard command in one of these two systems.
And often for both in the present example dir comes from command prompt and LS comes from Bash.
I'll use PowerShares style aliases in this demonstration but I'll try to mention all the common Eliseus
particular those familiar for best use so Linux users.
So go ahead and try using GCI dir or ls command and see the contents of your directory.
Now when we do that we can move between directories with set the location Come on left or as well.
Abbreviation for it.
Or C D command.
It's good for Command Prompt previous command prompt Windows system and Linux system.
Let's type our cell and some folder which you can see in the output of your previous command and it
will change your location from your current location to the folder you've specified.
We can move back to our previous location again by type in our cell and two dots.
And of course the space between a cell command and two dots.
Now try and navigate back to the folder you've been before and to some other folder.
Makes sense.
The command and cell command if you want to navigate to like Allsop you could try Taipan as well cell
space two dots backslash two dots instead of backslash you could also type slash.
So power shell is not case sensitive and it doesn't care about the slashes so it could be a backslash
or just slash.
Now we can try create a new directory with Qadeer command in any folder you like.
If you want to get back to your home directory fast you could type again and sell space to build and
it'll get you to your home directory.
And here we can make a new directory that's type M-K dear and call the directory like Pyrus or whatever
name you like move into your new directory.
Use an S L command top by Taipan cell and whatever your title to your directory.
In my case it's best.
Now let's type juicy and you'll see that there is nothing here.
That's because we've just created this directory and it's empty.
We could again create a subdirectory here with M-K dear.
So let's create it.
Type in M-K dir and give it some long name in quotes like.
This is a very long name.
Know that if you give some long name to this directory you should put it in quotes.
Now enter GCI and hit enter again and you'll see your new directory.
Suppose we want to move into this directory.
You'd have to type as well.
And this long name not only will this take a while to type but if we have got one letter wrong Power
Shell won't be able to find our director.
Instead try just type in SL D and then hit the tab key and partial completes the name of the directory
for you including the quotes Yulian step 4 or to completion will save you a lot of time.
You'll notice that when power schelde completed the name it also goes through.
Ian Dalt backslash of the beginning of the directory name that dot is just shorthand for the current
directory when you type commands.
Power Shell.
All of this assumes there is a dot backslash at the beginning.
In other words that you are referring to Samson in the current directory.
So you don't have to type this part all the time
if you want to find some specific command but don't know if this command exists at all or you could
use get command command left which is very important.
And you can try looking for a command to this command left so get command itself will output all the
commands which are available for you if you need some command which will be looking for a noun like
proses you could use get command Desch noun and specify the noun you are looking for.
For example Brosius if you are looking for a command which contains a verb like start stop etc. You
could try and get command to destroy roar and specify the word you are looking for for example star.
If you're looking for South Pacific Command which is part of some module which you know like Power Shell
get or active directory model or some other module you could try use and get this module power shell
get that will find all the commands in that specific module.
And of course your extend standard is specifying that you are looking for vore and that more do like
get commanders more power shell get Andrea looking for vore find in that module.
Of course you can all of us look for help on that command.
Yes get does help come and let and specify the command you'll need help on for example find does Maggio
get health care.
Course several options like get help does online get help this fool etc..
You could try Taipan get help find us Mondial that's fool or DERSE online or dush examples that will
show you only examples of usage of this command.
In addition to get and come and get help for commands you can use get help to view supplemental help
files that explained General Power Shell concepts that focused primarily on scriptum to display the
help file for a particular concept type get help about underscore followed by the concept name for example
to use the help for the core power shell commands.
Type the following.
Get help about underscore or underscore commands or to view the entire list of conceptual help files
using the form and come and get help about underscore asterisk.
Now some words about command aliases through all discourse and the examples used when refer to a command
trellises or common Gletty aliases.
For example the short name of the fool command let the LSS can be very handy when trying to type long
scripts where you might want to optimize and keep them as small as and as short as possible.
For instance we have the command let a rare object.
We have two aliases for it.
You can use a question mark for it or just wear it.
Another example is for each object.
There are two aliases for it as well.
You can use bosomed character or just one vote for each.
Another example is select objects.
You can use Elyas just select for release command left and so on to get a list of all current.
This is just I've get ls.
Now some words about pipeline's.
The single most important concept in both a shell is the use of its flexible object based by applying
the concept of pipelines that is similar.
Is that your Sandom the output from one command to another.
But instead of parsing plaintext power shell works with objects and we can accomplish some very complex
tasks in just a single line of code.
As a quick example you can get all the services running on the server and pipe it to stop service command
left with just one line and you will find all the services and stop them.
Of course don't try to perform this on production server.
Now let's take a look at using a variable Zantop jokes which you will be using very often.
The variables are supposed to save temporal data to a new object so you can workers it later for example
to create a variable that stores an instance of the test user mailbox.
You can type the following command door character mailbox equals to get mailbox.
Test User as you can see to create a variable or instance of an object you prefix the variable name
with the dollar sign to the right of the variable name.
You have to use that equals assignment operator followed by the ratio of or the object that should be
assigned to the variable.
Keep in mind that the variables are only available during your current shell session and will be destroyed
when you close the shell.
And remember that you can work with variables in the same frame as you work with any object containing
named its properties.
My thoughts are also on.