r/PowerShell • • Dec 06 '19

Windows PowerShell Introduction

https://www.youtube.com/watch?v=TUNNmVeyjW0
143 Upvotes

14 comments sorted by

View all comments

4

u/[deleted] Dec 06 '19

[removed] — view removed comment

26

u/matthoback Dec 06 '19

Sysadmins restrict it because it's a huge vector for malware.

0

u/jantari Dec 07 '19

Not really, it's more complex to get someone to run a PowerShell script than just create your own exe in a traditional programming language or office macros

2

u/matthoback Dec 07 '19

Not in the slightest. Stuffing a long line of powershell directly into the registry to be run at login is one of the primary vectors for malware these days.

-1

u/DragonspeedTheB Dec 06 '19

Sadly it's becoming a favourite.

"With great power comes great responsibility"

7

u/Panchorc Dec 06 '19

It's helpful even when you do.

5

u/bennyboo9 Dec 06 '19

Yup. I love Python. However when it comes to Windows specific admin tasks, like working w/ directories I go w/ Powershell as I don’t have to resort to importing all sorts of modules and bending over backwards to do anything.

For Data analysis though, Python & Pandas is the way to go!

3

u/[deleted] Dec 07 '19

Generally I find this to be a knee-jerk reaction for sysadmins and info sec folks that aren't educated enough in the language.

Lee Holmes has some great talks on using PowerShell defensively. His talk at the PowerShell + DevOps Summit 2018 went into depth on this.

https://www.youtube.com/watch?v=M5bkHUQy-JA&list=PLfeA8kIs7CocGXuezOoYtLRdnK9S_Mq3e&index=20&t=0s

2

u/[deleted] Dec 07 '19

Most companies are starting to at least force constrained language mode. But yeah everyone is right, users make it dangerous.