From the course: CompTIA PenTest+ (PT0-003) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

PowerShell scripting basics

PowerShell scripting basics

- The next scripting environment we're going to explore is called PowerShell. It used to be Windows PowerShell, and up until 2016, it was actually a Windows only product. But as of 2016, Microsoft rereleased it as open source cross platform. So now it's just PowerShell and you can actually get it in macOS and Linux. You'll likely see it most of the time still just in Windows, but it is available for any environment. We're gonna focus on the Windows implementation of PowerShell. There's just a very few things that you need to be aware of to set it up and to run PowerShell scripts, but the rest of the contents and the concepts are really the same as any other scripting environment. So let's take a look at at how to launch PowerShell and how to edit a PowerShell script. So the first thing you'll do on a new installation of Windows is allow PowerShell scripts to execute. By default, they're not allowed. They're…

Contents