简体   繁体   English

即使UAC已满,也不会显示UAC提示。

[英]UAC Prompt was not shown even UAC was Full.?

    static void Main ( )
    {           
        #region runasadmin
        ProcessStartInfo proc = new ProcessStartInfo ( );
        proc.WindowStyle = ProcessWindowStyle.Normal;
        proc.FileName = Application.ExecutablePath;
        proc.CreateNoWindow = true;
        proc.UseShellExecute = false;
        //proc.Verb = "runas";
        #endregion   

            Application.EnableVisualStyles ( );
            Application.SetCompatibleTextRenderingDefault ( false );
            Application.Run ( new TotalPSTRepair (  ) );                                                
    }

We use this code to run as admin purpose but while running, the .exe file still UAE prompt was not shown. 我们使用此代码以管理员身份运行,但是在运行时,仍未显示.exe文件仍然是UAE提示符。 I tried all possible ways like changing .manifest file and still it was not working. 我尝试了所有可能的方法,例如更改.manifest文件,但仍然无法正常工作。 Please can anybody help me out with this issue? 请有人可以帮助我解决这个问题吗?

You could try the following: 您可以尝试以下方法:

  • Type UAC in the windows start menu and select Change User Access Control Settings , then set it to highest. 在Windows开始菜单中键入UAC ,然后选择“ Change User Access Control Settings ,然后将其设置为最高。

  • Open the Run dialog using WinKey + R and type control userpasswords2 , then select your username, select properties, then select the membership tab and set yourself to administrator if it is not already done. 使用WinKey + R打开“运行”对话框,然后键入control userpasswords2 ,然后选择用户名,选择属性,然后选择“成员资格”选项卡,并将自己设置为管理员(如果尚未完成)。

  • After restarting windows, open the Command prompt as administrator (type command in the start menu), and enter sfc /scannow : it will attempt to fix your system errors. 重新启动Windows后,以管理员身份打开命令提示符(在开始菜单中键入command ),然后输入sfc /scannow :它将尝试修复系统错误。

To know more about the System file check (SFC), have a look at this windows forum article: https://answers.microsoft.com/en-us/windows/forum/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93 要了解有关系统文件检查(SFC)的更多信息,请查看以下Wi​​ndows论坛文章: https : //answers.microsoft.com/zh-cn/windows/forum/windows_10-update/system-file-check-sfc -扫描并修复系统文件/ bc609315-da1f-4775-812c-695b60477a93

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM