We have a IT policy that says the computer names should be set to "LT/PC-Serialnumber" depending on if it's a laptop or a stationary computer.

Currently we're manually setting the LT/PC part with the setcomputername /dialog, with get-computername that is grasping the serialnr for us, but with an extra "D" in front of the serialnr for some reason. 

It would be awesome to have this fully automatic, after checking the recent get/setcomputername version i found that you can use a datafile. Tried using a datafile that checks for the model to decide if it's a laptop or stationary and therafter using $serial, which seems like a no go, see below.

Running set computername like; setcomputername.exe /rdf:computernames.txt /dfk:$Model

Having only this in my test computernames.txt; 
OPT 790 = PC-$Serial

Has anyone managed to set up something similar? Any tips would be appreciated!

I'm sorry if the explanation isn't the best. I'll try explaining myself further if needed.
Answer Summary:
1 Comment   [ + ] Show Comment


  • Please remove your duplicate post before it receives comments/answers.
    • Done, thanks for the info. Don't know why it generated double posts.
      • Just one of the charming features of this forum's strange software! :-)
Please log in to comment

Answer Chosen by the Author

Found this which has the ability to modify $Chassi output to preferred values, problem solved!

Answered 05/20/2015 by: Xacken
White Belt

Please log in to comment


Answer this question or Comment on this question for clarity