hexagon logo

Handling UAC in VB script

UAC (User Account Credentials) Win7 feature:

Has anyone else been experiencing issue with their basic scripts due to this new feature? I have found disabling prompts is 1 way to clear this issue (bandaid fix). Anyone have a way via <code> in VBS to disable or bypass the prompts so you don't end up with the error: "This operation requires elevation"?

I have a funny feeling IT will not allow us to continue much longer with UAC being disabled.
Parents
  • never mind, the above issue was fixed by shutting UAC down per our Companies policy. However I did find that you can set the UAC to 'not prompt' for specific applications.

    Good luck to anyone else that encounters this issue.


    Cheers for sharing!

    Similar issue I was looking at, one suggestion I read was to give the vbscript scripting engine .exe's elevated status (i.e. Run as admin) - I can't remember what they were called though and I found another solution before attempting it.
Reply
  • never mind, the above issue was fixed by shutting UAC down per our Companies policy. However I did find that you can set the UAC to 'not prompt' for specific applications.

    Good luck to anyone else that encounters this issue.


    Cheers for sharing!

    Similar issue I was looking at, one suggestion I read was to give the vbscript scripting engine .exe's elevated status (i.e. Run as admin) - I can't remember what they were called though and I found another solution before attempting it.
Children
No Data