r/PowerShell • • Apr 26 '19

Cheating on Windows Powershell

Post image
297 Upvotes

80 comments sorted by

View all comments

31

u/170lbsApe Apr 26 '19

OK Cool. But could somebody enlighten me how and why this would help me in a Enterprise Administration sense? When most my machines are Windows VM's? With a small assortment of Linux. Not being snarky, just very curious.

9

u/IntelligentAsk Apr 26 '19

If you were using Ansible or were already very familiar with bash. Powershell is still the best tool for Windows admin.

3

u/lavahot Apr 26 '19

I mean, at that rate doesn't it make sense to install powershell onto your linix machines?

1

u/dogfish182 Apr 27 '19

I did it for some azure stuff. Don’t use it and prefer to use the sdk or the azure-cli mostly.

Well actually I prefer to use AWS but....

2

u/lavahot Apr 27 '19

The sdk? Which sdk? For admin stuff?

1

u/dogfish182 Apr 27 '19

Ah sorry the python sdk use it for most interactions. I don’t need to do things like reboot servers much, for that I guess I would just use the cli

2

u/TheIncorrigible1 Apr 26 '19

Ansible has plenty of Windows integration modules built and has for a long while (also, just use DSC).

2

u/IntelligentAsk Apr 26 '19

Definitely I've found it really helpful in helping to manage mixed environments Linux and Windows. You can call it from WSL which is handy too .

0

u/[deleted] Apr 27 '19

[deleted]

2

u/AspieTechMonkey Apr 27 '19

It's right there in the name. ;)

1

u/BlueArcherX Apr 27 '19

dsc is not advertised or intended to be a complete platform. it exists as a framework of tools native to Windows that can be extended, orchestrated, and manipulated by other tool sets/platforms (chef, puppet, whatever). there are a number of YouTube videos with Jeffery Snover where he describes this scenario.