Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Renaming computer with output from a different script

$
0
0
Hello all, first off I am very new to this. I was given a massive project to complete with new software that has never been implemented on our network to construct a new image for specialized "Walkup Machines" I've got everything set to start rolling the image out except for one thing. I do not want to go in and rename 250 PCs individually so, I have this script.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colBIOS = objWMIService.ExecQuery _
("Select * from Win32_BIOS")
For each objBIOS in colBIOS
Wscript.Echo "Manufacturer: " & objBIOS.Manufacturer
Wscript.Echo "Serial Number: " & objBIOS.SerialNumber
Next

So I get the output I need (our naming convention goes by the manufacturer and service tag/SN of the machine.) What I need now is a script to run that will take output (S/N) and change the computer name on initial boot. Can someone please help?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>