02 The Basics of PowerShell
02 The Basics of PowerShell
1
What about UNIX or Linux commands
Type LS – Displays the contents of a specified location.
PWD – Returns the current working directory name.
MAN - Gives help on the get-service command.
CAT -path c:\sec.txt
and there is our security log that we saved from a previous lecture
Q: Is there a command that I can type to give me a list of aliases which is another name for a
command that points to the real command that PowerShell recognizes?
A: get-alias
Checkout the list of aliases, I am sure you will see some that you recognize. Take a little time to
experiment with familiar commands.
Q: Why would Microsoft developers include commands from these other operating systems.
A: So, people from the Unix/Linux world would be able to sit down open up PowerShell and find
commands that they are familiar with. Granted there are differences between the various tools,
but I think this encourages others to dig in and hopefully discover the power of PowerShell.
3. In this course we will concentrate mainly on using PowerShell with Windows 10 and
Windows server 2016.
4. You may say, well Robert you really haven’t convinced me yet - why would I want to go
to the trouble to learn PowerShell?
Let me ask you this:
If you were the hiring manager in charge of hiring all your system admins, who would
you rather have on your team. A person that manually performs his everyday tasks
using the basic tools. Or an Admin that takes seconds to perform the same tasks in an
automated fashion. The answer is obvious. So welcome to PowerShell this is the future
for administrators.