使用VBScript在域上查找Netbios名称 [英] Use VBScript to find Netbios Name on a Domain

查看:59
本文介绍了使用VBScript在域上查找Netbios名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个vbscript的帮助,这将允许我"插入"在PC
序列号
并让它为我提供NetBIOS名称。我在域环境中工作。

I need help with a vbscript that will allow me to "plug" in a PC Serial Number and have it provide me with the NetBIOS Name. I am working within a domain environment.

我正在做一些资产管理,我知道序列号,但需要找到PC。如果我有NetBIOS名称,它将使我的工作变得更容易。

I am doing some asset management and I know the serial numbers but need to find the PC's. If I had the NetBIOS name, it would make my job a lot easier.

任何帮助都将不胜感激。

Any help would be appreciated.

推荐答案

查询域中的每台PC并将序列号检索到CSV文件中。 您现在可以在文件中查询名称。

Query every PC in the domain and retrieve the serial number into a CSV file.  You can now query the file for the name.

无法使用序列号查询域。

There is no way to query a domain using a serial number.

您也可以添加序列号 到AD 作为自定义属性。

You might also add the serial numbers to AD  as a custom attribute.

Get-ADComputer |%{gwmi win32_bios} |选择PSComputerName,SerialNumber


这篇关于使用VBScript在域上查找Netbios名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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