PowerShell and why you need to know it

Many users may be familiar with command prompt where you can run different commands to get information from systems or even to make changes to the systems. PowerShell is intended to replace command prompt and also give more power and efficiency to the person running the commands.

What is PowerShell?

To understand PowerShell you first need to know what a shell is. A shell is an interface that gives you access to services that are running on the computer system(I say computer system because not only windows have shell access eg. Linux has BASH). The shell doesn’t only include the text based interface it also refers to the GUI(Graphical User Interface).
So now the name might start making sense, it is a “Power Shell” as in powerful shell. PowerShell is designed to give the system administrators more power over the systems that they control.
PowerShell is based off of Microsoft .NET framework  which allows you to interact with most Microsoft services using the command line shell and also the PowerShell scripting language.
If you are managing Windows or Windows Server environments knowing your way around PowerShell can be quite helpful.

Why would you want to know PowerShell

This tool is actually really powerful, you can use PowerShell scripting to automate many processes that can be time consuming.
Let’s say for example you wanted to reboot your server, no worries you can just log in and select restart and your done. So this process could take up to five minutes and is not too difficult.
Now let’s say you want to reboot 100 of your servers. How long do you think it would take to log into each server and select reboot?
500 minutes? That’s a bit over 8 hours.
A good resolution for this using PowerShell would be to query Active Directory to list all of your servers in an OU then execute a reboot on all of them directly from one shell. You could even schedule this to happen overnight when none of your users are onsite.
This is why PowerShell is so important to know, it can save you and most importantly your employer time.
powershell search windows
Posted in: