I need to punctually invoque commands (net share
, netsh
...) requiring admin rights from a software launched by a user account.
Under a Unix variant, I would install alongside my user mode software a small, cautiously written script bearing a suid bit and which would invoke the needed command(s).
What is the equivalent best practice under Microsoft Windows? I would especially be interested in a Vista friendly, but XP compatible solution.