Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows系统下,管理员检测不对 #196

Open
iquanxin opened this issue Mar 19, 2024 · 2 comments
Open

windows系统下,管理员检测不对 #196

iquanxin opened this issue Mar 19, 2024 · 2 comments

Comments

@iquanxin
Copy link

版本 Windows 10 专业工作站版
版本号 22H2
安装日期 ‎2023/‎10/‎25
操作系统内部版本 19045.4170
体验 Windows Feature Experience Pack 1000.19054.1000.0

// Exe运行在Administrator权限下检测
fmt.Println("IsAdministrator:", win.IsAdministrator())

无论是否是在管理员权限下运行,返回都是 true

@ying32
Copy link
Owner

ying32 commented Mar 20, 2024

govcl开发就是在win10下,我也测试正常。你那是用的admin账户吧?

@iquanxin
Copy link
Author

govcl开发就是在win10下,我也测试正常。你那是用的admin账户吧?

普通账户

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants