Hey everybody.
Welcome to the Windows command line mini module.
So this module we're gonna go over the Windows command line at a medium to high level just to kind of
get you familiar with moving things around what some of the command options are a little bit more familiar
with the command line on the Windows platform.
Now we're going to start off with this video about how to access the command line.
I know you've probably seen me do it and a few other videos but we're gonna go into a few more different
ways to do it.
Some of them allow you to bypass certain things and some are just standard ways.
The next few videos we're gonna go over how to navigate around inside the command line.
How to work with files and directories.
Some piping which is different than the named pipes that we were talking about before.
How standard input output and error works.
Working with some data and then doing some management tasks some windows such as adding removing users
finding packages that are installed adding a task identifying network devices or network connections
that are connect to this machine.
So that's kind of the mini course in a nutshell.
Now we're going to go into different ways to access the command line.
So the most common way to do this is down at your start menu.
You go ahead and right click and you will see command prompt command prompt.
Now this is the elevated one for admin rights using your full administrative access token.
And this is your standard one using your regular access token.
So we see here pops right up no problems.
There's also something called run now run allows you to run different types of commands for here.
Example if I hit enter right now it would just would open up notepad for this one we're going to do
CMT poof that pops up to now there are a few other things you could do a search down here type CMB and
it would pop up as well.
There is a another one where if you have the file explorer open let's say your browsing to the desktop
right.
You can just come up right here and do CMT and opens up in the directory that you're already working
with which is a nice little shortcut.
So just keep that one in your back pocket the next one we're going to do is let's say you have limited
access and you want to run a bat file which is there scripting language.
So we would come in here CMT exceed we're going to save this as
a text file.
We'll just do that.
So bat extension.
Now we're not going to go over our how batch works but I will make another mini course on this as well.
So right here we have CMT double click that opens up.
And it also opens it from the location that you ran it from.
Now these are just a few simple ways to access the command line.
Now we're going to do is do something a little bit more interesting.
So if we go to administrative windows administrative services and we go to stop Task Scheduler we can
set a task to run that will launch control panel for us.
So we do see indeed we set a trigger which is the condition.
So in this case you could tell it's ten thirty two in the morning.
So we'll change this to Ten thirty three and on actions new action.
We're just going to do CMT actually we're going to save save and apply.
Now we're just going to sit here for a second and wait for this to creep around ten thirty three
okay.
Now we're at ten thirty three soldiers give it a second to where the task scheduler and go ahead and
kick it off it should just pop up in the middle of our screen
area so we can see as administrators are even system to perfect.
Now these are just some of the ways to access that there are some unique ways to access it such as you
could go directly to the executable so we're suppose to be in system thirty two system thirty two we'll
do CND and use double click open it up to now some of these can bypass workstation restriction restrictions
restrictions so coming in there and actually hitting the executable most likely isn't going to bypass
anything the bat file that we created can sometimes bypass things and the task scheduler can also bypass
it depends on how things were set up it's always good if you need if you need command line you can always
test a few different ways to go about it.
So this has been the end of part one in the next video we're going to go over how to navigate inside
of the command line.