Windows 7中:我怎样才能在.net中的所有Windows用户名的列表? [英] Windows 7: How can I get a list of all Windows user names in .Net?

查看:143
本文介绍了Windows 7中:我怎样才能在.net中的所有Windows用户名的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的办法让本地的Windows 7计算机使用。NET的所有用户名的名字?所以,如果我有一台机器名为MYPC,它有3个用户MYPC \麦克,MYPC \ Bob和MYPC \史蒂夫,我只是希望能够查询得到迈克,Bob和史蒂夫。当然,我不在乎,如果他们有计算机的名字命名,或不为好。

Is there a simple way to get the names of all the user names of a local Windows 7 machine using .Net? So if I had a machine named MyPC, and it had 3 users MyPC\Mike, MyPC\Bob, and MyPC\Steve, I'd just want to be able to query to get Mike, Bob, and Steve. Of course, I don't care if they have the computer name attached, or not, as well.

推荐答案

HTTP ://www.$c$cproject.com/KB/cs/enumerate_system_users.aspx

这篇关于Windows 7中:我怎样才能在.net中的所有Windows用户名的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆