Script to add DNS suffixes to a NIC
Adjust the array with your dns suffixes and save as a .VBS file
DNSSuffixSearchOrder = Array(“MYDNS1.COM”, “MYDNS2.COM”)
Set WMI = GetObject(“WinMgmts://”)
Set adapter = GetObject(“winmgmts:Win32_NetworkAdapterConfiguration”)
adapter.SetDNSSuffixSearchOrder (DNSSuffixSearchOrder)
Archive post Jan 7th, 2007
Wow, that’s nice. Awaiting for next posts
Howdy!Script works great at re-naming PC BUT I am in the same boat as Vicky and need the new name to attach a nmaing convention to it, such as UNIV-(service tag) . Can this be added to this script?I tried a couple additions to the script but am not learned enough in WMIS or the Win32_System_enclosure jargon to enter the correct syntax. I assume the name field will need some sort of identifying text preceding the service tag addition but am not sure how to correctly enter it nor create the VB identifier.Any help is greatly appreciated!