OS: Windows 7 Enterprise

PG is run via right clicking Windows Explorer when an executable is selected and selcting the Privilege Guard menu item.

Is there anyway to wrap this into a script\batch file so I don't have to remember to do this for certain apps?

  • 1
    I'd love to see an answer to this one. I had a look around in the registry but I couldn't work out what hook it is that controls this context menu item. – Oliver Jan 15 '16 at 11:44
  • 1
    Please accept @MatthewPeters answer. It is correct. Win 7 tested true – Kolob Canyon Dec 27 '16 at 17:02

You can simple add avecto to the beginning of your call. For instance, if you want to run notepad.exe as avecto elevated, simply put the following in a .cmd file: avecto notepad.exe

Additionally, you can alter the shortcut properties by adding avecto as mentioned above.

  • Can you please share the location of the avecto.exe – PrivatMamtora Apr 18 '17 at 19:01
  • Seems that avecto command is missing on latter versions, cannot find it anywhere – Fabio Marreco Aug 3 '17 at 20:06

Since avecto.bat is not available anymore you can use a general program requesting elevation like Johannes Passing Elevate.exe. Then just use elevate as you has used avecto, e.g.

elevate prog.exe


elevate -k script.cmd

As a nice side effect it works in arbitrary environments.

Duplicate of Programmatically execute a program using Avecto Privilege Guard?

  • This does not launch DefendPoint for me, it only pops up the UAC dialog asking for an admin account. Are Privilege Guard and DefendPoint two separate products? – Scott Kuhl Feb 3 '20 at 16:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.