r/sysadmin • Systems Engineer • Aug 18 '16

PowerShell is open source, available for Linux and OS X

https://github.com/PowerShell/PowerShell
1.3k Upvotes

369 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Aug 18 '16

It's useful in smaller shops. Would you rather touch 50 users one a time, or write a few lines of code to do them all in one go? From User Administrator to Software installation.....there's a script for that.

0

u/[deleted] Aug 18 '16

[deleted]

11

u/aytch Aug 18 '16

A failed software update left ~1000 of my servers with a broken package that could no longer upgrade itself (since this was the management software - specifically, Chef).

Manually reinstalling the package worked to fix it, so my options were to either touch every machine...or write some Powershell.

Ten lines of code and 15 minutes later, I had 1000+ machines working correctly.

4

u/[deleted] Aug 18 '16

I have scripts that push base software to machines. I have scripts that configure printers for all users of a machine. I have scripts for almost anything. Any specific examples you would like?

1

u/EternallyMiffed Aug 18 '16

I have scripts that push base software to machines.

Shouldn't you do that with WSUS/GPO/PDQ?

1

u/[deleted] Aug 18 '16

I do a lot of it with GPO and PDQ. But I've used them in environments that didn't have those things.

2

u/ballr4lyf Hope is not a strategy Aug 18 '16

That's a terrible excuse.

Do you think people wrote scripts purely as a "concept"? More likely the script was written to solve a real world problem.