• danA
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    People tend to hate on PowerShell but it’s cross-platform these days, and far easier to write than shell scripts once you understand the syntax.

    You can pipe objects between functions, rather than just string streams like in Bash. Often there’s no cut, sed, grep, etc needed as what you want is probably a property on an object.

    It’s not just a basic scripting language like Bash. It’s built on top of .NET, so most of things you can do in C#, you can also do in PowerShell (and if not, you can call into C# code).

    It’s especially popular for administration of Windows systems - if there’s anything you want to do on a Windows system, it’s likely there’s a PowerShell module for it.

    • R0cket_M00se@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Whether it’s pulling AD/O365 objects for security analysis, or SSH into a network appliance, PowerShell is a handy little tool. It’s everything we used to use CMD for and more.

      • danA
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Some old-school Windows sysadmins are still holding on to VBScript and batch files for automation, but I think most have switched over to PowerShell. Definitely a useful tool.