Sign in to follow this  
Followers 0
ZYklon

Batch file and UAC in Windows 7 ?

4 posts in this topic

Hey MSFN, Im working on a batch that installs silently programs, and its working very well on XP, but on Window 7, UAC (User Account Control) it's poping up asking 'Yes' or 'No' for every exe batch file installing !

Is there any trick that you can actually, bypass or something UAC ?

I know ninite.com that download apps then installs silently and no UAC problem, I checked ninite process with Process Explorer, and Im not sure but, I guess it uses iexplorer.exe process to inject and run, and bypasses UAC !

A solution I have for this problem is to edit registry keys to Disable UAC, but to take effect after disabling UAC, I must reboot PC !

I use this code to disable and enable UAC !

Enable

 C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

Disable

 C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Any idea ?

0

Share this post


Link to post
Share on other sites

create a scheduled task for each CMD file:

0

Share this post


Link to post
Share on other sites

Get higher privileges:

jaclaz

0

Share this post


Link to post
Share on other sites

In pure Batch, you just need to add "set __COMPAT_LAYER=RunAsInvoker " in the begining of your batch file to bypass uac.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.