Custom MDT Property/Variable Not Getting Evaluated During Task SequenceMDT 2012 - Task Sequence Not CompletingMoving from WDS to MDT + WDS with prestaged computer name in task sequenceImport Powershell AD Module during MDT Task SequenceHow to retrieve a MDT task sequence variable and use it properly inside PowershellChanging the path that the Microsoft Deployment Toolkit uses with WDSPause MDT task sequence to install drivers?OSD set the computername based on the serialnumber for a Surface Pro 4Better way to conditionally call multiple webservices from MDT CustomSettings.ini?Install MDT application based on Make/Model using SQL DatabaseMDT Litetouch.vbs Windows Deployment Wizard doesn't show any Task Sequence
Placing bypass capacitors after VCC reaches the IC
Integrating an absolute function using Mathematica
Employer demanding to see degree after poor code review
How were these pictures of spacecraft wind tunnel testing taken?
How to prevent bad sectors?
How to plot an unstable attractor?
How to convert to standalone document a matrix table
How can people dance around bonfires on Lag Lo'Omer - it's darchei emori?
General purpose replacement for enum with FlagsAttribute
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
How can I find where certain bash function is defined?
Ticket sales for Queen at the Live Aid
What is the largest (size) solid object ever dropped from an airplane to impact the ground in freefall?
Why do airplanes use an axial flow jet engine instead of a more compact centrifugal jet engine?
Tic-Tac-Toe for the terminal
Plot twist where the antagonist wins
Is there a down side to setting the sampling time of a SAR ADC as long as possible?
Command to Search for Filenames Exceeding 143 Characters?
Geological aftereffects of an asteroid impact on a large mountain range?
Is there an evolutionary advantage to having two heads?
Mother abusing my finances
How strong are Wi-Fi signals?
Which noble houses were destroyed during the Game of Thrones?
Should I disclose a colleague's illness (that I should not know about) when others badmouth him
Custom MDT Property/Variable Not Getting Evaluated During Task Sequence
MDT 2012 - Task Sequence Not CompletingMoving from WDS to MDT + WDS with prestaged computer name in task sequenceImport Powershell AD Module during MDT Task SequenceHow to retrieve a MDT task sequence variable and use it properly inside PowershellChanging the path that the Microsoft Deployment Toolkit uses with WDSPause MDT task sequence to install drivers?OSD set the computername based on the serialnumber for a Surface Pro 4Better way to conditionally call multiple webservices from MDT CustomSettings.ini?Install MDT application based on Make/Model using SQL DatabaseMDT Litetouch.vbs Windows Deployment Wizard doesn't show any Task Sequence
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Good-day all,
I need some help with a Microsoft Deployment Toolkit (MDT) project I’m working on. So, I'm attempting to set the ComputerName on newly imaged machines using a concatenation of the custom variable/property (ComputerType) and a string manipulation of the built-in SerialNumber variable. Unfortunately, this is failing for me as my custom variable isn't being expanded/evaluated during the task sequence. Instead of seeing the value, I'm seeing the name of the variable itself displayed as "%ComputerType%". The same is true when looking at the BDD.log file.
Below is what I have in my CustomSettings.ini file (set via the Rules section of the MDT Workbench). This behavior is confirmed when I look at the Monitoring section of the MDT Workbench, where I see "Prefix-%ComputerType%-000b5" listed as the "Name" of the computer being imaged, instead of something like "Prefix-VM-000b5". This ends up creating a computer name that exceeds the 15-character limitation of Windows, as such, my task sequence fails when it goes to change the computer name during the post install phase.
What am I doing wrong?
Here's what my CustomSettings.ini file looks like:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
[IsDesktop]
Subsection=Desktop-%IsDesktop%
[IsServer]
Subsection=Server-%IsServer%
[Virtual-True]
ComputerType=
[Laptop-True]
ComputerType=LT
[Desktop-True]
ComputerType=WS
[Server-True]
ComputerType=SV
[SetComputerName]
OSDComputerName=Prefix-%ComputerType%-#Right(Replace(Replace(oEnvironment.Item("SerialNumber")," ",""),"-",""),5)#
[Default]
_SMSTSORGNAME=OS Deployment on %OSDComputerName%
FullName=Assigned User's Name
OrgName=My Company Name
Home_Page=https://mail.exchangeserver.com
User_Locale=en-us
KeyboardLocale=en-us
UserDataLocation=NONE
DoCapture=YES
OSInstall=Y
AdminPassword=MyPassword
TimeZone=035
TimeZoneName=Eastern Standard Time
JoinWorkgroup=WORKGROUP
HideShell=YES
FinishAction=SHUTDOWN
DoNotCreateExtraPartition=YES
AppyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=NO
SkipComputerBackup=YES
EventService=http://mdtserver
;LOGGING
SLShare=\mdtserverDeploymentShare$Logs
SLShareDynamicLogging=\mdtserverDeploymentShare$Logs%ComputerName%
windows wds mdt
add a comment |
Good-day all,
I need some help with a Microsoft Deployment Toolkit (MDT) project I’m working on. So, I'm attempting to set the ComputerName on newly imaged machines using a concatenation of the custom variable/property (ComputerType) and a string manipulation of the built-in SerialNumber variable. Unfortunately, this is failing for me as my custom variable isn't being expanded/evaluated during the task sequence. Instead of seeing the value, I'm seeing the name of the variable itself displayed as "%ComputerType%". The same is true when looking at the BDD.log file.
Below is what I have in my CustomSettings.ini file (set via the Rules section of the MDT Workbench). This behavior is confirmed when I look at the Monitoring section of the MDT Workbench, where I see "Prefix-%ComputerType%-000b5" listed as the "Name" of the computer being imaged, instead of something like "Prefix-VM-000b5". This ends up creating a computer name that exceeds the 15-character limitation of Windows, as such, my task sequence fails when it goes to change the computer name during the post install phase.
What am I doing wrong?
Here's what my CustomSettings.ini file looks like:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
[IsDesktop]
Subsection=Desktop-%IsDesktop%
[IsServer]
Subsection=Server-%IsServer%
[Virtual-True]
ComputerType=
[Laptop-True]
ComputerType=LT
[Desktop-True]
ComputerType=WS
[Server-True]
ComputerType=SV
[SetComputerName]
OSDComputerName=Prefix-%ComputerType%-#Right(Replace(Replace(oEnvironment.Item("SerialNumber")," ",""),"-",""),5)#
[Default]
_SMSTSORGNAME=OS Deployment on %OSDComputerName%
FullName=Assigned User's Name
OrgName=My Company Name
Home_Page=https://mail.exchangeserver.com
User_Locale=en-us
KeyboardLocale=en-us
UserDataLocation=NONE
DoCapture=YES
OSInstall=Y
AdminPassword=MyPassword
TimeZone=035
TimeZoneName=Eastern Standard Time
JoinWorkgroup=WORKGROUP
HideShell=YES
FinishAction=SHUTDOWN
DoNotCreateExtraPartition=YES
AppyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=NO
SkipComputerBackup=YES
EventService=http://mdtserver
;LOGGING
SLShare=\mdtserverDeploymentShare$Logs
SLShareDynamicLogging=\mdtserverDeploymentShare$Logs%ComputerName%
windows wds mdt
add a comment |
Good-day all,
I need some help with a Microsoft Deployment Toolkit (MDT) project I’m working on. So, I'm attempting to set the ComputerName on newly imaged machines using a concatenation of the custom variable/property (ComputerType) and a string manipulation of the built-in SerialNumber variable. Unfortunately, this is failing for me as my custom variable isn't being expanded/evaluated during the task sequence. Instead of seeing the value, I'm seeing the name of the variable itself displayed as "%ComputerType%". The same is true when looking at the BDD.log file.
Below is what I have in my CustomSettings.ini file (set via the Rules section of the MDT Workbench). This behavior is confirmed when I look at the Monitoring section of the MDT Workbench, where I see "Prefix-%ComputerType%-000b5" listed as the "Name" of the computer being imaged, instead of something like "Prefix-VM-000b5". This ends up creating a computer name that exceeds the 15-character limitation of Windows, as such, my task sequence fails when it goes to change the computer name during the post install phase.
What am I doing wrong?
Here's what my CustomSettings.ini file looks like:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
[IsDesktop]
Subsection=Desktop-%IsDesktop%
[IsServer]
Subsection=Server-%IsServer%
[Virtual-True]
ComputerType=
[Laptop-True]
ComputerType=LT
[Desktop-True]
ComputerType=WS
[Server-True]
ComputerType=SV
[SetComputerName]
OSDComputerName=Prefix-%ComputerType%-#Right(Replace(Replace(oEnvironment.Item("SerialNumber")," ",""),"-",""),5)#
[Default]
_SMSTSORGNAME=OS Deployment on %OSDComputerName%
FullName=Assigned User's Name
OrgName=My Company Name
Home_Page=https://mail.exchangeserver.com
User_Locale=en-us
KeyboardLocale=en-us
UserDataLocation=NONE
DoCapture=YES
OSInstall=Y
AdminPassword=MyPassword
TimeZone=035
TimeZoneName=Eastern Standard Time
JoinWorkgroup=WORKGROUP
HideShell=YES
FinishAction=SHUTDOWN
DoNotCreateExtraPartition=YES
AppyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=NO
SkipComputerBackup=YES
EventService=http://mdtserver
;LOGGING
SLShare=\mdtserverDeploymentShare$Logs
SLShareDynamicLogging=\mdtserverDeploymentShare$Logs%ComputerName%
windows wds mdt
Good-day all,
I need some help with a Microsoft Deployment Toolkit (MDT) project I’m working on. So, I'm attempting to set the ComputerName on newly imaged machines using a concatenation of the custom variable/property (ComputerType) and a string manipulation of the built-in SerialNumber variable. Unfortunately, this is failing for me as my custom variable isn't being expanded/evaluated during the task sequence. Instead of seeing the value, I'm seeing the name of the variable itself displayed as "%ComputerType%". The same is true when looking at the BDD.log file.
Below is what I have in my CustomSettings.ini file (set via the Rules section of the MDT Workbench). This behavior is confirmed when I look at the Monitoring section of the MDT Workbench, where I see "Prefix-%ComputerType%-000b5" listed as the "Name" of the computer being imaged, instead of something like "Prefix-VM-000b5". This ends up creating a computer name that exceeds the 15-character limitation of Windows, as such, my task sequence fails when it goes to change the computer name during the post install phase.
What am I doing wrong?
Here's what my CustomSettings.ini file looks like:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
[IsDesktop]
Subsection=Desktop-%IsDesktop%
[IsServer]
Subsection=Server-%IsServer%
[Virtual-True]
ComputerType=
[Laptop-True]
ComputerType=LT
[Desktop-True]
ComputerType=WS
[Server-True]
ComputerType=SV
[SetComputerName]
OSDComputerName=Prefix-%ComputerType%-#Right(Replace(Replace(oEnvironment.Item("SerialNumber")," ",""),"-",""),5)#
[Default]
_SMSTSORGNAME=OS Deployment on %OSDComputerName%
FullName=Assigned User's Name
OrgName=My Company Name
Home_Page=https://mail.exchangeserver.com
User_Locale=en-us
KeyboardLocale=en-us
UserDataLocation=NONE
DoCapture=YES
OSInstall=Y
AdminPassword=MyPassword
TimeZone=035
TimeZoneName=Eastern Standard Time
JoinWorkgroup=WORKGROUP
HideShell=YES
FinishAction=SHUTDOWN
DoNotCreateExtraPartition=YES
AppyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=NO
SkipComputerBackup=YES
EventService=http://mdtserver
;LOGGING
SLShare=\mdtserverDeploymentShare$Logs
SLShareDynamicLogging=\mdtserverDeploymentShare$Logs%ComputerName%
windows wds mdt
windows wds mdt
asked May 14 at 17:15
Kismet AgbasiKismet Agbasi
2281413
2281413
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
EUREKA! PROBLEM SOLVED!!!
Turns out that the name of my Section headers cannot be the same as that of the built-in MDT variables. Here’s what I mean:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
Notice above that in my [Settings] section, the Priority header is set to “IsVM, IsLaptop….etc”,
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
Notice also that my custom sections bear the same name as the built-in MD variables I’m testing (i.e., IsVM)
By changing the custom section names as follows and rebuilding my MDT DeploymentShare, everything is working now.
[Settings]
Priority=ByVM,ByLaptop,ByDesktop,ByServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[ByVM]
Subsection=Virtual-%IsVM%
[ByLaptop]
Subsection=Laptop-%IsLaptop%
With this working now, I can use a single deployment share to dish out specific task sequences (i.e., OS Images) to specific machines based on their detected hardware type. Hope this helps someone out.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f967246%2fcustom-mdt-property-variable-not-getting-evaluated-during-task-sequence%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
EUREKA! PROBLEM SOLVED!!!
Turns out that the name of my Section headers cannot be the same as that of the built-in MDT variables. Here’s what I mean:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
Notice above that in my [Settings] section, the Priority header is set to “IsVM, IsLaptop….etc”,
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
Notice also that my custom sections bear the same name as the built-in MD variables I’m testing (i.e., IsVM)
By changing the custom section names as follows and rebuilding my MDT DeploymentShare, everything is working now.
[Settings]
Priority=ByVM,ByLaptop,ByDesktop,ByServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[ByVM]
Subsection=Virtual-%IsVM%
[ByLaptop]
Subsection=Laptop-%IsLaptop%
With this working now, I can use a single deployment share to dish out specific task sequences (i.e., OS Images) to specific machines based on their detected hardware type. Hope this helps someone out.
add a comment |
EUREKA! PROBLEM SOLVED!!!
Turns out that the name of my Section headers cannot be the same as that of the built-in MDT variables. Here’s what I mean:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
Notice above that in my [Settings] section, the Priority header is set to “IsVM, IsLaptop….etc”,
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
Notice also that my custom sections bear the same name as the built-in MD variables I’m testing (i.e., IsVM)
By changing the custom section names as follows and rebuilding my MDT DeploymentShare, everything is working now.
[Settings]
Priority=ByVM,ByLaptop,ByDesktop,ByServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[ByVM]
Subsection=Virtual-%IsVM%
[ByLaptop]
Subsection=Laptop-%IsLaptop%
With this working now, I can use a single deployment share to dish out specific task sequences (i.e., OS Images) to specific machines based on their detected hardware type. Hope this helps someone out.
add a comment |
EUREKA! PROBLEM SOLVED!!!
Turns out that the name of my Section headers cannot be the same as that of the built-in MDT variables. Here’s what I mean:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
Notice above that in my [Settings] section, the Priority header is set to “IsVM, IsLaptop….etc”,
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
Notice also that my custom sections bear the same name as the built-in MD variables I’m testing (i.e., IsVM)
By changing the custom section names as follows and rebuilding my MDT DeploymentShare, everything is working now.
[Settings]
Priority=ByVM,ByLaptop,ByDesktop,ByServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[ByVM]
Subsection=Virtual-%IsVM%
[ByLaptop]
Subsection=Laptop-%IsLaptop%
With this working now, I can use a single deployment share to dish out specific task sequences (i.e., OS Images) to specific machines based on their detected hardware type. Hope this helps someone out.
EUREKA! PROBLEM SOLVED!!!
Turns out that the name of my Section headers cannot be the same as that of the built-in MDT variables. Here’s what I mean:
[Settings]
Priority=IsVM,IsLaptop,IsDesktop,IsServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
Notice above that in my [Settings] section, the Priority header is set to “IsVM, IsLaptop….etc”,
[IsVM]
Subsection=Virtual-%IsVM%
[IsLaptop]
Subsection=Laptop-%IsLaptop%
Notice also that my custom sections bear the same name as the built-in MD variables I’m testing (i.e., IsVM)
By changing the custom section names as follows and rebuilding my MDT DeploymentShare, everything is working now.
[Settings]
Priority=ByVM,ByLaptop,ByDesktop,ByServer,SetComputerName,Default
Properties=ComputerType,MyCustomProperty
[ByVM]
Subsection=Virtual-%IsVM%
[ByLaptop]
Subsection=Laptop-%IsLaptop%
With this working now, I can use a single deployment share to dish out specific task sequences (i.e., OS Images) to specific machines based on their detected hardware type. Hope this helps someone out.
answered May 16 at 10:20
Kismet AgbasiKismet Agbasi
2281413
2281413
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f967246%2fcustom-mdt-property-variable-not-getting-evaluated-during-task-sequence%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown