Jump to content


Schreif

Established Members
  • Posts

    1
  • Joined

  • Last visited

Schreif's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm trying to set a custom computer name and I'm almost there. Just need a little help. First, I'm using OSD++ to pop up a Window after the disk partition. I'm using OSD++ During my initial task sequence. When I take a look at the log file created when using OSD.exe I see the infomation below. What I'm trying to get is the Computer Name to look like this. MNEP-CND0230TL2 Or, Variable Locationalt1 + SN (when looking at the osd log) So How can I add the Locationalt1 + SN Variable into a new variable called say ComputerName and assign that into the SCCM ts variable OSDCOMPUTERNAME Here is my OSD ConfigFile: <?xml version="1.0" encoding="utf-8"?> <OSDPlus> <GetReg hive="HKLM" key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" value="CurrentVersion" varname="CurrentVersion" /> <GetWmi namespace="root\cimv2" class="Win32_ComputerSystem" property="model" varname="csmodel" /> <GetWmi namespace="root\cimv2" class="Win32_BIOS" property="SerialNumber" varname="SN" /> <GetUser title="Computer Name Selection" subtitle="Please Select Your Build Location" icon="74"> <Listbox prompt="Location" icon="45" varname="Location"> <Option alt1="MNEP-">Minnesota Eden Prairie</Option> <Option alt1="MNWB-">Minnesota Woodbury</Option> </Listbox> <PutTSVar varname="ComputerName" tsvar="OSDComputerName"/> </GetUser> </OSDPlus> I'm going to add about 20 locations, and we build machines at one primary location and ship them out, and want to have the location prefix for each location + the SN as the name. Am I on the right track? I just built a machine and used <PutTSVar varname="SN" tsvar="OSDComputerName"/> And it still came up as minint, instead of the serial number, but I think that's because my OSD section was in the wrong place. I'm testing it again. OSD does pop up though during the task sequence. Any help would be greatly appreicated. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.