How do you standardize custom computer names?

neil.jin

New Member
Hello, everybody.
I‘d like to ask a question.
How to standardize custom computer names?
For example,CMD can get zhe serialnumber of a device from acommand.(command line: wmic bios get serialnumber)
How would you use the results returned by CMD to define the computer's name.
Is there a way to implement this?
 

Attachments

  • serialnumber.png
    serialnumber.png
    27.9 KB
Under Unattended mode, NTLite allows you use the regular expression "%SERIAL%" in the <ComputerName>.

1704869541955.png

The other way is to write a custom script (batch, PS, etc.) which checks the Serial Number, and changes the hostname. A system restart is required before the new hostname takes effect.

But this is inconvenient, since a planned reboot during Post-Setup (Machine) will stop it from running further post-setup actions.
 
Under Unattended mode, NTLite allows you use the regular expression "%SERIAL%" in the <ComputerName>.

View attachment 11095

The other way is to write a custom script (batch, PS, etc.) which checks the Serial Number, and changes the hostname. A system restart is required before the new hostname takes effect.

But this is inconvenient, since a planned reboot during Post-Setup (Machine) will stop it from running further post-setup actions.
Thank you very much
 
Back
Top