Batch Files and Vista
Hi, In my login script (batch file) I have a call to run TrendMicro anti-virus installer if it is not installed already. It works fine in XP and earlier, but in Vista, even if I'm logged in as an administrator, it says I need administrator priveledges to install the software. If I right click the batch file and choose "Run as Administrator" it runs fine, but what I'm wondering is if there is a way in the batch file itself to run the installer with elevated prveledges? Any help would be appreciated. Thanks.
February 14th, 2008 10:18pm

Hi Jarod Cummings, By default, all users logging on to Windows Vista use their full token (elevated user token) to process Group Policy and logon scripts. However, they use their limited user token to load the desktop and all subsequent processes. As a result, please check which token is used to install antivirus program if the logon script find that it has not installed. Meanwhile, you may temporarily turn UAC on Windows Vista to narrow down the cause of the issue. To turn off UAC, please refer to the following steps: ============================================================ 1. Click Start, and then click Control Panel. 2. In Control Panel, click User Accounts. 3. In the User Accounts window, click User Accounts. 4. In the User Accounts tasks window, click Turn User Account Control on or off. 5. If UAC is currently configured in Admin Approval Mode, the User Account Control message appears. Then click Continue. 6. Clear the Use User Account Control (UAC) to help protect your computer check box, and then click OK. 7. Restart computer to apply the change. Hope it helps. Sincerely, Joson Zhou Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2008 11:46am

just since last friday, a batch file in my 64-bit vista startup started asking for permission to run because it does not have a proper digital certificate. is there any way to stop that? i wrote it and all it does is write the time and date of booting up intomy log file. uac is not turned on.
June 19th, 2008 4:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics