User Controls

Today i learned Windows Powershell is hard as fuck.

  1. #1
    Sophie Pedophile Tech Support
    Any tips or guides?
  2. #2
    Lanny Bird of Courage
    protip: install cygwin and don't waste your time.

    Windows people will tell you about the technical advantages of powershell, and in a lot of cases they'll be right. I don't think there's anyone who won't admit the POSIX standard IO model is a little clunky, everyone's wanted a little more expressivity and a little less awk/sed/cut glue/magic here and there but POSIX (unix specifically, but I'd argue it applies to POSIX itself) really embodies and highlights the strengths of the worse is better philosophy. Sure things like string escaping and delineation are a pain in the when ass all you have is 1 or 2 bytestreams but it performs in the standard cases really well and it's so simple you can't help but love the "elegance".
  3. #3
    SBTlauien African Astronaut
    I downloaded a couple of video courses on Powershell a couple of years ago but never watched them. I know there's a lot more torrents now though.

    https://kat.cr/usearch/powershell/?field=size&sorder=desc
  4. #4
    aldra JIDF Controlled Opposition
    I don't think it's worth 'learning' powershell per se; like lanny said it's pretty convoluted and for standard automation, you're generally better off just using general batch script, or if you have the functionality, bash/zsh/whatever.

    unfortunately there are some things you may need powershell for; with a lot of MS products there's no easy way to hook into them without using either powershell or a .net API - something I've had to do recently was write a powershell script to dump subscription information out of Office365 because there was no other way without writing a proper application to do it. previously I've also had to use it for the WMI functions to dump installed applications and configuration in a tabular format so we could look for softwarez patterns in a bunch of systems that had connectivity/application problems, but if at all possible I'll avoid it like the plague.
  5. #5
    Sophie Pedophile Tech Support
    I don't think it's worth 'learning' powershell per se; like lanny said it's pretty convoluted and for standard automation, you're generally better off just using general batch script, or if you have the functionality, bash/zsh/whatever.

    unfortunately there are some things you may need powershell for; with a lot of MS products there's no easy way to hook into them without using either powershell or a .net API - something I've had to do recently was write a powershell script to dump subscription information out of Office365 because there was no other way without writing a proper application to do it. previously I've also had to use it for the WMI functions to dump installed applications and configuration in a tabular format so we could look for softwarez patterns in a bunch of systems that had connectivity/application problems, but if at all possible I'll avoid it like the plague.

    Yeah it's good for interacting with Windows, in fact one of the reasons i looked into it was for infosec purposes.

    https://github.com/PowerShellMafia/PowerSploit

    Pretty dank collection of PS scripts, it does right by it's name because it seems far more powerful than any old shell.
Jump to Top