Jump to content

Batch file and UAC in Windows 7 ?


Recommended Posts

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 ?

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...