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?
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?