简体   繁体   English

如何使用普通用户帐户运行C#应用程序EXE? 打开UAC时,我不想提供管理员用户名和密码

[英]How to run C# application EXE with normal user account? I don't want to provide Admin user name and password when UAC is on

I am working on the C# application. 我正在研究C#应用程序。 I am logged in to my machine with normal user account who don't have admin rights and UAC is set to highest level (Always notify me). 我使用普通用户帐户登录我的计算机,该帐户没有管理员权限,UAC设置为最高级别(始终通知我)。 When I try to run the application it ask me admin user name and password.I don't want to turn off the UAC. 当我尝试运行应用程序时,它会询问管理员用户名和密码。我不想关闭UAC。 I have changed manifest file value to 我已将清单文件值更改为

<requestedExecutionLevel  level="asInvoker" uiAccess="false" />

or 要么

  <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

But that din't help me. 但那对我没有帮助。 How can I run my application without full admin rights user? 如何在没有完全管理权限的情况下运行我的应用程序? Any help on this is appreciated. 对此有任何帮助表示赞赏。

Thanks: Mayuresh 谢谢:Mayuresh

从项目 - >项目属性和应用程序选项卡,只需检查您的app.manifest文件是否在Icon and Manifest字段下被引用,因为它也可以嵌入。

暂无
暂无

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

相关问题 C# WPF 应用程序提示标准用户的 UAC 密码 - C# WPF Application Prompts With UAC Password For Standard User 删除与网络共享的连接时(在C#中)如何提供用户名和密码 - How to provide user name and password when Delete connection to a network share (in C#) Keycloak in C# WPF Application: How can I access the roles of a given user/password in C# in a normal MVVM WPF application? - Keycloak in C# WPF Application: How can I access the roles of a given user/password in C# in a normal MVVM WPF application? 在受限用户帐户XP中运行时,C#应用程序无法读取/写入管理员创建的文件 - C# Application can't read/write to files created by administrator when run in limited user account XP 如何创建一个 windows 应用程序,该应用程序应该在.Net C# 中以管理员权限运行,而不会一次又一次地提示 UAC? - How can I create a windows application that should run with admin rights in .Net C# without prompting UAC again and again? 使用UAC以其他用户身份运行应用程序 - Run an application as other user with UAC 连接到网络共享时如何提供用户名和密码 - How to provide user name and password when connecting to a network share 用户帐户名未在c#WinForm应用程序中更新 - User account name not updating in c# WinForm Application 如何通过c#代码将密码更改为用户帐户? - how to change password to user account, by c# code? 当用户单击C#应用程序标题栏中的“关闭”按钮时,不想退出程序 - Don't want to exit program when user click on Close button in titlebar of C# app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM