• Saik0
    link
    fedilink
    English
    161 year ago

    Do-As “NT Authority/System”

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

    • Laurel Raven
      link
      fedilink
      131 year ago

      Probably something more like “Invoke-Command -AsAdmin”

      Which would be aliased to sudo

      • @[email protected]
        link
        fedilink
        21 year 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

        • Laurel Raven
          link
          fedilink
          11 year 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