Board index » Visual Studio » VB Script & UAC - Permission Denied
|
CarolineC
|
VB Script & UAC - Permission Denied
Visual Studio327
Hello, I'm trying to get a VB Script to delete a shortcut in the 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\' folder. I'm logged on the PC as an administrator with UAC enabled, however the VB Script is running as a standard user (UAC's Job) and I'm getting a 800A0046 Permission denied. If I disable UAC then the script runs fine. However I do not want to disable UAC everytime I run this script. I would like UAC to pick up the script and ask permission to run with administrator rights, is this possible? Thanks Richard - |
