PowerShell Commands Every PC User Should Know
It’s not sorcery, it’s PowerShell! Powershell is a command language built into Microsoft Windows that offers a slew of powerful functions right out of the box while, for advanced users, the whole operating system can become an exciting playground. Even if you’re just looking to understand a few of the most basic commands and functionalities of PowerShell, however, you’re off to a good start with taking control of your computer.
Why would you want to understand PowerShell?
Why would you want to understand PowerShell? If you’re stuck on a particularly weird glitch, if your computer is having difficulties logging into a wireless network, or if you’re interested in creating powerful automated processes that can run on your computer and take care of complex or demanding tasks far easier than you could on your own then PowerShell is the way to go. It affords users the ease-of-use of the old command line interface with the power of a scripting language, allowing you to do more with your PC without a huge learning curve.
Command of the code: cmdlets
PowerShell “cmdlets” are scripts that are activated to undertake some specific action, like downloading something from the web or running a diagnostic. You can type in something like “get-help” and that tells the computer to execute an action or a series of actions. Most of the time, when running cmdlets you’ll be handling them in a limited user environment that tries to keep you from doing anything that could disrupt your computer’s functioning, but PowerShell does give you a lot more control over your computer than many users will be familiar with. Because of this, the first thing we want to do is create a restore point to make sure that any changes you make accidentally can be undone easily. Anyway, restore points are just good to have around so it’s good practice to create one even if you’re not using PowerShell for anything serious.
Run as administrator
Sometimes you’ll need to run the PowerShell application as an administrator in order to execute the cmdlet that you need to use. This can be easily accomplished by going to the windows search bar and typing in PowerShell, after which you can click on the option for “Run as administrator”. Or, if you have PowerShell pinned to your taskbar, you can find this option by right-clicking it.
With that out of the way, let’s get into the fun stuff!