Q:

How can I change never notify in 'user account control settings'?

Possible Duplicate:
Disabling UAC programmatically 

How can I change never notify in 'user account control settings' by c#?
by manual : 
User Accounts -> user account control settings -> change by scall bar to 'never notify'.
(I need it for automated integration tests )

A:

As an Administrator you could change the appropriate registry key using C#:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

Have a look at this answer: https://superuser.com/questions/83677/disabling-uac-on-windows-7/83678#83678

A:

This should do the trick.
using Microsoft.Win32;

RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System");
key.SetValue("EnableLUA", "0");
key.Close();

