Set objComputer = GetObject(“LDAP://” & objSysInfo.ComputerName) Set objSysInfo = CreateObject(“ADSystemInfo”) Model = trim(replace(objComputer.Model, “,”, “.”)) Manufacturer = replace(objSMBIOS.Manufacturer, “,”, “.”)įor Each objComputer in objWMI.ExecQuery(“Select * from Win32_ComputerSystem”) ServiceTag = replace(objSMBIOS.SerialNumber, “,”, “.”) ‘ Get service tag and computer manufacturerįor Each objSMBIOS in objWMI.ExecQuery(“Select * from Win32_SystemEnclosure”) Set objWMIService = GetObject("winmgmts:" _ StrDescription = strDescription & " Monitor " & intMon + 1 & ": " & arrMonitors(intMon) So if you are tired of manually doing an inventory, let’s automate some stuff!įor intMon = LBound(arrMonitors) To UBound(arrMonitors)
#HARD WARE PRODUCT SERIAL NUMBER GENERATOR SERIAL NUMBERS#
This makes it incredibly easy to find serial numbers in Active Directory!
![hard ware product serial number generator hard ware product serial number generator](https://i.ytimg.com/vi/qmZBHzM0EKY/maxresdefault.jpg)
As a final result, you can look at any computer in your domain and see the information in the Description field. It will then store both pieces of information in that computer’s Active Directory account. This script will query for our computer’s serial number (or service tag) and will also grab the unique ID associated with an attached monitor. Now that Active Directory can tell us what computer models we have (and how many we own), it is time to extend our inventory! Today, we are going to implement one shutdown that script with Group Policy.
![hard ware product serial number generator hard ware product serial number generator](https://s1.manualzz.com/store/data/007312775_1-5364a6b41710cf932a97278728136205.png)
Exhausting the USNs: Inventory + AD = ? ?.
![hard ware product serial number generator hard ware product serial number generator](https://icdn.digitaltrends.com/image/digitaltrends/free-pc-audit-500x500.jpg)
Gathering Active Directory Mobile Phone Attributes.Inventory for Hardware: Part 2 – Find Serial Numbers in Active Directory.Active Directory Inventory for Hardware: Computer Make and Model.Creating an Inventory with Active Directory