Automating computer host name for XPe

  • Thread starter Thread starter Amador
  • Start date Start date
A

Amador

I'm currently using Altiris Deployment Server to deploy to XPe Images, is
there any way I could automate the computer name creation?

Thanks
 
I'm currently using Altiris Deployment Server to deploy to XPe Images, is
there any way I could automate the computer name creation?

wmic can change the machine name, if you can generate a string with the
name you want. Here's what I use in vbscript:

WmiCmd = "wmic ComputerSystem where Name=""%COMPUTERNAME%"" call Rename
Name=""" & MachineName & """"

rslt = oshell.run( WmiCmd, 1, true )


You need to reboot before it will take effect.
 
Back
Top