• Saik0
    link
    fedilink
    English
    195 months ago

    Do-As “NT Authority/System”

    Have to quote it in too… since there’s a space.

    • @laurelraven
      link
      145 months ago

      Probably something more like “Invoke-Command -AsAdmin”

      Which would be aliased to sudo

      • @groet@feddit.de
        link
        fedilink
        25 months ago

        That’s what I wxpect. But with one more layer. In the end it’s going to be system32/elevator.exe which is called by Invoke-Elevation in ps which is aliased to sudo.

        It’s supposed to be available in cmd and batch so it must be callable directly

        • @laurelraven
          link
          15 months ago

          I was more postulating what they probably would do if it were implemented directly in PowerShell

          But, as it turns out, it’s just sudo.exe in the command path