获取当前用户的权限

时间:2011-04-08 14:35:33

标签: windows permissions

您好我在VB.Net 2010 framework 2.0中工作。 在我的应用程序中,我想运行带有Process.start的Setup.exe。 我想知道启动我的应用程序的用户是否有权运行setup.exe 感谢您提前回复。

1 个答案:

答案 0 :(得分:1)

致电

new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)
相关问题