|
Post by chrisc on May 30, 2019 14:09:48 GMT
I'm trying to set the value of OSDomainOUName. It's imbedded as part of an Action sequence;
<Actions>
<Action Type="DefaultValues" ValueTypes="Net" />
<Action Type="Switch" OnValue="%XIPGateway%" DontEval="False" >
<Case RegEx="10.228.64.1">
<Variable Name="TSVM">VM01</Variable>
<Variable Name="TSSCH">123</Variable>
</Case>
<Case RegEx="10.228.0.1">
<Variable Name="TSVM">VM02</Variable>
<Variable Name="TSSCH">456</Variable>
</Case> <Default>
<Variable Name="TSVM">VM01</Variable>
<Variable Name="TSSCH">123</Variable>
</Default>
<Action Type="TSVar" Name="OSDDomainOUName">LDAP://OU=Computers,OU=%TSSCH%,OU=OU Name with spaces,DC=HWCDSB,DC=CA</ACTION>
</Action>
If I remove the bolded line the Switch section works. I've tried moving it above the Default section but it doesn't make a difference. What am I doing wrong?
|
|
|
Post by chrisc on May 30, 2019 14:53:41 GMT
Putting single quotes around it allowed it to run.
<Action Type="TSVar" Name='"OSDDomainOUName">LDAP://OU=Computers,OU=%TSSCH%,OU=OU Name with spaces,DC=HWCDSB,DC=CA'</ACTION>
But the log doesn't show it setting a value for OSDDOmainOUName.
|
|
|
Post by chrisc on May 30, 2019 15:33:21 GMT
Moved it out of that Action sequence but it is reporting an invalid format for OSDDomainOUName.
|
|
|
Post by chrisc on May 30, 2019 15:59:38 GMT
Here's the entry from the log...
Could not set the task sequence variable '"OSDDomainOUName">LDAP://OU=Computers,OU=780,OU=OU Name with spaces,DC=hwcdsb,DC=ca': invalid format.]LOG]!><time="11:57:58.000+240" date="05-30-2019" component="UI++" context="" type="1" thread="39468" file="tsvar.cpp">
|
|
|
Post by Jason on May 31, 2019 19:58:44 GMT
You've got extra single quotes in there making the XML invalid. It should be as follows:
<Action Type="TSVar" Name="OSDDomainOUName">"LDAP://OU=Computers,OU=%TSSCH%,OU=OU Name with spaces,DC=HWCDSB,DC=CA"</ACTION>
|
|
|
Post by chrisc on Jun 5, 2019 14:04:53 GMT
Awesome! That got it.
|
|