From the course: PowerShell 5 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Exploring PowerShell automation security

Exploring PowerShell automation security - PowerShell Tutorial

From the course: PowerShell 5 Essential Training

Start my 1-month free trial

Exploring PowerShell automation security

- After I've worked really hard building a command, especially when it delivers reports or does something very useful for my network, the last thing I wanna do is have to memorize it or ever type it again. So, I'm gonna wanna script it. And before we dive in to scripting, we need to take a look at some of the security around scripting. First of all, PowerShell uses the Windows security model. So, when you're running a script, you're running it in, well, whoever you're logged in as. So, if you have a script and you're logged in as a regular user, that may not provide you with all of the permissions that you need. That's why you need to be logged in as an administrator. This is also good news. It means that a user, if they attempt to run a script, well, they're only gonna be able to do whatever their Windows security lets them do. In other words, they're not gonna be able to reboot servers unless you've already given them that security permission. Now there is a bad news side to that is…

Contents