从域用户名获取域PC名 [英] Obtain Domain PC Name From Domain User Name
本文介绍了从域用户名获取域PC名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种通过使用域用户名搜索域来获取域用户PC名称的方法.
我是vb.net的新手,尚未在网上找到任何东西.我已经找到一种方法来查找我自己的PC的本地域信息,但是似乎无法使用用户名"搜索整个域.预先谢谢您.
I am looking for a way to obtain a domain users PC name by searching a domain using a domain username.
I am a novice when it comes to vb.net and have yet to find anything on the net. I have found a way to find local domain information for my own PC, but I cannot seem to search the whole of the domain using a "user name". Thank you in advance.
推荐答案
如果要使用计算机名称,只需使用
If you want the computer name, just use
My.Computer.Name
因此,例如,
So, for example,
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.text = My.Computer.Name.ToString
End Sub
这篇关于从域用户名获取域PC名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文