Powershell For Dummies (2021)

powershell for dummies

PowerShell is a shell and scripting language that’s designed to help systems administrators and administrators of all kinds automate administrative activities on Windows, Linux, and other operating systems. I’ll admit that at first blush creates the impression of complexity and obscurity, but after some time with PowerShell, you’ll find it can be one of the most useful tools in your arsenal.

When you’re new to PowerShell, it can present a steep learning curve. Get over that hurdle and you’ll find that PowerShell offers a powerful set of tools for automating routine administrative tasks. As soon as you become familiar with the basics, start recycling old scripts and giving them a PowerShell makeover. Over time this process will help you grow your knowledge of PowerShell even more.

Also, don’t be misled by the moniker “for Dummies.” this content is intended to be a resource for anyone interested in learning about PowerShell–beginners and experts alike.

Unlike Command Prompt, PowerShell is a programming language. It’s not necessary to be a programmer to use PowerShell, but you should understand the conceptual elements of how it works and why it does what it does. If you’re completely new to PowerShell, this chapter will get you started with the basics; if you’re an experienced scripter who uses Windows Server 2008 R2 or Windows 7 on an ongoing basis, this will serve as a review and update of your knowledge. more about PowerShell.

At its most basic, PowerShell is a command-line interpreter–a way to give it simple commands that it then turns into actions.

Below are some WH questions which I have gathered for you to kickstart your journey with PowerShell. I will add more questions so that you are up to date with the blogs I post and have a clear idea.

PowerShell For Dummies - The question list

Go to the command prompt and type powershell.exe and you will have a PowerShell console to write the code.

 

$PSversiontable

Use select-string it works as grep.

New-Item -Path "c:\" -Name "Newpath" -ItemType "directory"

New-Item -Path 'C:\NewFolder\newfile.txt' -ItemType File

install-module -name "modulename"

As such it’s important that you fully understand what each of these concepts means before continuing forward with reading on! You might get lost while trying out some new terminology or just want another refresher (especially if your first article was an overview rather than more specific examples) so I hope now has given as many people excited about using either cmdlets or variables much needed context….and maybe even inspiration……. Somewhat ironically, here are two items below from my list which got me thinking.

Use get-installedmodule to check the installed modules.

$HOME\Documents\PowerShell\Modules

Favorite place to hang out

  • Microsoft PowerShell
  • Wikipedia
  • Tutorialspoint
  • JavatPoint