1

How can I run the java ProcessBuilder in elevated mode/Admin mode for executing commands similarly like we open command prompt as admin and run some commands? Thanks in advance for your help...

Dennis Kriechel
  • 3,719
  • 14
  • 40
  • 62
Affi
  • 142
  • 1
  • 1
  • 15
  • 2
    http://stackoverflow.com/questions/11041509/elevating-a-processbuilder-process-via-uac – andrucz Dec 08 '15 at 12:24
  • @andrucz - I saw this post but seems to be different way and bit complex. Still trying to look if it can be achieved using processbuilder itself – Affi Dec 08 '15 at 14:51
  • I still haven't found a "simple" solution. It seems like doesn't exist. Take a look at http://mark.koli.ch/uac-prompt-from-java-createprocess-error740-the-requested-operation-requires-elevation – andrucz Dec 08 '15 at 14:57

0 Answers0