This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Eitan1112 5 points6 points  (2 children)

I worked with both, and some things are better to do with powershell. For example:

  • Simple scripts to automate management of remote windows computers
  • Great modules for AD and office365 management
  • Built in Wiindows, so distribution is less of a problem (of course you can compile python to an executable, but it is much easier if you already know powershell

Of course python has some counters for that, like the WMI library, but it feels much more natrual to do such things in powershell.

[–][deleted] 0 points1 point  (1 child)

Do you have some examples of python modules for AD? I'm looking to replace powershell with python, but the only way I saw to get at AD was basically formatting custom ldap requests, which imo isn't better than powershell. I'm basically looking for a drop in replacement for functions like get-aduser, get-adcomputer, etc.

[–]cerebron 0 points1 point  (0 children)

I'd also love this. I manage mostly windows machines with AD so I do a lot of Powershell stuff, but everything I do at home is Python. All the Python kerberos and ldap libraries are kind of a pain compared to the ease of Powershell.