Post by raptor on Oct 31, 2019 12:06:41 GMT
Hello,
Let me explain my unquie problem. I have MDT intergrated with SCCM and using the CustomSetting.ini file Down below is my UI++ Setting. I don't have the OSDComputername included in my ini file but for some reason when gather runs it says the wrong computer name than the one I named.:
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="XXX" Icon="UI++2.ico">
<Software>
<Application Id="59426C81-2638-47AF-82A7-AFEA795B47B7" Label="Adobe Reader XI" Name="Adobe Reader XI"/>
</Software>
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="xxx.com" GetGroups="False" MaxRetryCount="5" DisableCancel="False">
<Field Name="Domain" List="xxx.com" AutoComplete="true"/> </Action>
<Action Type="Info" Name="myInfo" Title="Welcome %XAuthenticatedUser%">
<![CDATA[Welcome to <b>XXX</b>. Please continue with the Name process by clicking the checkmark<br><br>]]>
</Action>
<!--- Set all default variables --->
<Action Type="DefaultValues" ValueTypes="All" ShowProgress="True" />
<!--- Run prefight checks --->
<Action Type="Preflight" Title="Preflight checks" ShowOnFailureOnly="False" ShowBack="True">
<Check Text="WLAN Disconnected" Description="To prevent issues during deployment, a wired connection is required." ErrorDescription="Please disconnect the wireless network from this system." CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Not on battery" ErrorDescription="Please ensure that the system is connected to AC Power." CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 4GB" CheckCondition='%XHWMemory% >= 4096' />
<Check Text="CPU Supports Windows 10" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />
</Action>
<!--- user input menu for image type, location and department --->
<Action Type="Input" Name="InfoInput" Title="System Options">
<ChoiceInput Variable="Location" AlternateVariable="LocCode" Sort="True" Question="Please choose a location for this system" Required="True" AutoComplete="False">
<Choice Option="xxx" AlternateValue="Cxx" />
<Choice Option="xxx" AlternateValue="x" />
<Choice Option="xxx" AlternateValue="xxx" />
</ChoiceInput>
<ChoiceInput Variable="ChassisType" AlternateVariable="ChassType" Sort="False" Question="Please Select type of machine. If AIS use the last 2" Required="True" AutoComplete="False">
<Choice Option="Laptop" AlternateValue="-L9W10" />
<Choice Option="Desktop" AlternateValue="-D9W10" />
<Choice Option="Tablet" AlternateValue="T" />
<Choice Option="xxx Laptop" AlternateValue="L%XHWSerialNumber%" />
<Choice Option="xxx Desktop" AlternateValue="D%XHWSerialNumber%" />
</ChoiceInput>
</Action>
<Action Type="Input" Name="zzCompName" Title="System Name and Type">
<TextInput ADValidate="True" Question="Please enter a computer name. If name not populated correctly please change" Regex="[A-Z]\d{3}.*" Variable="zzCompName" Hint="Please enter an uppercase letter followed by three digits." Prompt="Computer Name" Default="%LocCode%%ChassType%"/>
</Action>
<!--- Set OSDComputerNamecomputer task sequence variable --->
<Action Type="TSVar" Name="OSDComputerName">%zzCompName%</Action>
</Actions>
</UIpp>
Let me explain my unquie problem. I have MDT intergrated with SCCM and using the CustomSetting.ini file Down below is my UI++ Setting. I don't have the OSDComputername included in my ini file but for some reason when gather runs it says the wrong computer name than the one I named.:
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="XXX" Icon="UI++2.ico">
<Software>
<Application Id="59426C81-2638-47AF-82A7-AFEA795B47B7" Label="Adobe Reader XI" Name="Adobe Reader XI"/>
</Software>
<Actions>
<Action Type="UserAuth" Title="User Authentication" Domain="xxx.com" GetGroups="False" MaxRetryCount="5" DisableCancel="False">
<Field Name="Domain" List="xxx.com" AutoComplete="true"/> </Action>
<Action Type="Info" Name="myInfo" Title="Welcome %XAuthenticatedUser%">
<![CDATA[Welcome to <b>XXX</b>. Please continue with the Name process by clicking the checkmark<br><br>]]>
</Action>
<!--- Set all default variables --->
<Action Type="DefaultValues" ValueTypes="All" ShowProgress="True" />
<!--- Run prefight checks --->
<Action Type="Preflight" Title="Preflight checks" ShowOnFailureOnly="False" ShowBack="True">
<Check Text="WLAN Disconnected" Description="To prevent issues during deployment, a wired connection is required." ErrorDescription="Please disconnect the wireless network from this system." CheckCondition='"%XWLANDisconnected%" = "True"' />
<Check Text="Not on battery" ErrorDescription="Please ensure that the system is connected to AC Power." CheckCondition='"%XOnBattery%" = "False"' />
<Check Text="Minimum memory > 4GB" CheckCondition='%XHWMemory% >= 4096' />
<Check Text="CPU Supports Windows 10" CheckCondition='%XCPUPAE% AND %XCPUNX% AND %XCPUSSE2% = True' />
</Action>
<!--- user input menu for image type, location and department --->
<Action Type="Input" Name="InfoInput" Title="System Options">
<ChoiceInput Variable="Location" AlternateVariable="LocCode" Sort="True" Question="Please choose a location for this system" Required="True" AutoComplete="False">
<Choice Option="xxx" AlternateValue="Cxx" />
<Choice Option="xxx" AlternateValue="x" />
<Choice Option="xxx" AlternateValue="xxx" />
</ChoiceInput>
<ChoiceInput Variable="ChassisType" AlternateVariable="ChassType" Sort="False" Question="Please Select type of machine. If AIS use the last 2" Required="True" AutoComplete="False">
<Choice Option="Laptop" AlternateValue="-L9W10" />
<Choice Option="Desktop" AlternateValue="-D9W10" />
<Choice Option="Tablet" AlternateValue="T" />
<Choice Option="xxx Laptop" AlternateValue="L%XHWSerialNumber%" />
<Choice Option="xxx Desktop" AlternateValue="D%XHWSerialNumber%" />
</ChoiceInput>
</Action>
<Action Type="Input" Name="zzCompName" Title="System Name and Type">
<TextInput ADValidate="True" Question="Please enter a computer name. If name not populated correctly please change" Regex="[A-Z]\d{3}.*" Variable="zzCompName" Hint="Please enter an uppercase letter followed by three digits." Prompt="Computer Name" Default="%LocCode%%ChassType%"/>
</Action>
<!--- Set OSDComputerNamecomputer task sequence variable --->
<Action Type="TSVar" Name="OSDComputerName">%zzCompName%</Action>
</Actions>
</UIpp>