OSD TS condition registry setting
Hello I have problems getting a OSD TS condition based on registry to work. I have configured a TS with the following: Root key: HKEY_LOCAL_MACHINE Key: System\CurrentControlSet\Services\Netlogon\Parameters Condition: equals Value name: DynamicSiteName Value type: REG_SZ Value: TESTSITE I was expecting a match using these settings, however it doesn't work. Could it be that it only supports numbers? Or maybe it doesn't support query to System? Thanks. /Ragnar
January 9th, 2008 10:47pm

Can you please export the registry hive just for that key, and then post it here? Also, please do the same for you task sequence - export it and post it here.
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2008 12:50am

Hi I have exported the registry key in question and copied in the particular TS step. Thanks! Code Block Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]"DisablePasswordChange"=dword:00000000"maximumpasswordage"=dword:0000001e"requiresignorseal"=dword:00000001"requirestrongkey"=dword:00000000"sealsecurechannel"=dword:00000001"signsecurechannel"=dword:00000001"Update"="no""DynamicSiteName"="TESTSITE" Code Block smsswd.exe /run: regedit.exe /s "SYSTEMROOT%\Image\CustomLogonSystem.reg" regedit.exe /s "SYSTEMROOT%\Image\CustomLogonSystem.reg" false 0 3010 Code Block </step> <step type="SMS_TaskSequence_InstallSoftwareAction" name="Install Microsoft Office 2003 Proofing Tools" description="" disable="true" continueOnError="true" runIn="FullOS" successCodeList="0"> <condition> <expression type="SMS_TaskSequence_RegistryConditionExpression"> <variable name="Data">TESTSITE</variable> <variable name="KeyPath">HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters</variable> <variable name="Operator">equals</variable> <variable name="Type">REG_SZ</variable> <variable name="Value">DynamicSiteName</variable> </expression> </condition> <action>smsswd.exe /pkg:TST0001A /install /basevar: /continueOnError:</action> <defaultVarList> <variable name="PackageID" property="PackageID" hidden="true">TST0001A</variable> <variable name="_SMSSWDProgramName" property="ProgramName">Per-system unattended</variable> </defaultVarList> </step> /Ragnar
January 11th, 2008 12:59am

Those all look correct. Can you please look at the SMSTS.log file on the client that executed the TS? You should see log entries that look like: KeyPath = HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersValue = DynamicSiteNameType = REG_SZData = TESTSITEOperator = equalsExpand a string: equalsExpand a string: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersExpand a string: DynamicSiteNameExpand a string: REG_SZExpand a string: TESTSITEComparing registry value HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters\DynamicSiteName with string TESTSITEThe registry condition expression is evaluated to be TRUE I have a suspicion that the value of DynamicSiteName is something else at the time that the TS ran.
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2008 2:47am

Hello Content of SMSTS.log: Code BlockEvaluating a registry condition expressionTSManager1/12/2008 8:43:45 PM412 (0x019C)KeyPath = HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersTSManager1/12/2008 8:43:45 PM412 (0x019C)Value = DynamicSiteNameTSManager1/12/2008 8:43:45 PM412 (0x019C)Type = REG_SZTSManager1/12/2008 8:43:45 PM412 (0x019C)Data = TESTSITETSManager1/12/2008 8:43:45 PM412 (0x019C)Operator = equalsTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: equalsTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: DynamicSiteNameTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: REG_SZTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: TESTSITETSManager1/12/2008 8:43:45 PM412 (0x019C)regKey.GetString(sExpandedValue.c_str(), sRegValueData), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,1801)TSManager1/12/2008 8:43:45 PM412 (0x019C)Failed to evaluate a REG expression. Error 0x(80070057)TSManager1/12/2008 8:43:45 PM412 (0x019C)EvaluateRegExpression(eNode, &bEval), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,542)TSManager1/12/2008 8:43:45 PM412 (0x019C)Failed to evaluate an expression. Error 0x(80070057)TSManager1/12/2008 8:43:45 PM412 (0x019C)EvaluateExpression(*iter, &bEvalOfChildNode), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,602)TSManager1/12/2008 8:43:45 PM412 (0x019C)Failed to evaluate an AND expression. Error 0x(80070057)TSManager1/12/2008 8:43:45 PM412 (0x019C)EvaluateAndExpression(eNode, &bEval), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,514)TSManager1/12/2008 8:43:45 PM412 (0x019C)Failed to evaluate an expression. Error 0x(80070057)TSManager1/12/2008 8:43:45 PM412 (0x019C)Error 0x80070057 in evaluating the condition for the action (Install Microsoft Office 2003 Proofing Tools)TSManager1/12/2008 8:43:45 PM412 (0x019C)Sending status message . . .TSManager1/12/2008 8:43:45 PM412 (0x019C)Send a task execution status message SMS_TSExecution_ConditionFailForActionErrorTSManager1/12/2008 8:43:45 PM412 (0x019C)MP server tstsrv03.domain.com and port 80. SSL=false. CRL=false.TSManager1/12/2008 8:43:45 PM412 (0x019C)Site code: TSTTSManager1/12/2008 8:43:45 PM412 (0x019C)Client machine name: CLIENT01TTSManager1/12/2008 8:43:45 PM412 (0x019C)Client GUID: GUID:C1927C78-399B-4DF3-AC4F-6E41C3F77FD5TSManager1/12/2008 8:43:45 PM412 (0x019C)Advertisement ID: TST20003TSManager1/12/2008 8:43:45 PM412 (0x019C)Package ID: TST0002BTSManager1/12/2008 8:43:45 PM412 (0x019C)Sending StatusMessageTSManager1/12/2008 8:43:45 PM412 (0x019C)CLibSMSMessageWinHttpTransport::Send: URL: tstsrv03.domain.com:80 CCM_POST /ccm_system/requestTSManager1/12/2008 8:43:45 PM412 (0x019C)Set a global environment variable _SMSTSLastActionRetCode=-2147024809TSManager1/12/2008 8:43:45 PM412 (0x019C)Set a global environment variable _SMSTSLastActionSucceeded=falseTSManager1/12/2008 8:43:45 PM412 (0x019C)Clear local default environmentTSManager1/12/2008 8:43:45 PM412 (0x019C)The execution engine ignored the failure of the action (Install Microsoft Office 2003 Proofing Tools) and continues executionTSManager1/12/2008 8:43:45 PM412 (0x019C)Sending status message . . .TSManager1/12/2008 8:43:45 PM412 (0x019C) I also added a reg export command in the TS step before the above, and it shows that DynamicSiteName is TESTSITE. Any ideas? /Ragnar
January 12th, 2008 10:56pm

The problem is that the TS engine could not read the value of"DynamicSiteName" from the registry. Expand a string: DynamicSiteNameTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: REG_SZTSManager1/12/2008 8:43:45 PM412 (0x019C)Expand a string: TESTSITETSManager1/12/2008 8:43:45 PM412 (0x019C)regKey.GetString(sExpandedValue.c_str(), sRegValueData), HRESULT=80070057 Can you please try running the TS on a different client machine?
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2008 10:35pm

Hi I ran this TS on a different but I got the exact same results. The first time I tried it I deployed Windows XP TS on a VMware Server virtual machine, the second time I tested it I used a Microsoft VirtualPC 2007 virtual machine. Code Snippet Evaluating a registry condition expressionTSManager2/5/2008 10:28:26 AM1920 (0x0780)KeyPath = HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersTSManager2/5/2008 10:28:26 AM1920 (0x0780)Value = DynamicSiteNameTSManager2/5/2008 10:28:26 AM1920 (0x0780)Type = REG_SZTSManager2/5/2008 10:28:26 AM1920 (0x0780)Data = TESTSITETSManager2/5/2008 10:28:26 AM1920 (0x0780)Operator = equalsTSManager2/5/2008 10:28:26 AM1920 (0x0780)Expand a string: equalsTSManager2/5/2008 10:28:26 AM1920 (0x0780)Expand a string: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\ParametersTSManager2/5/2008 10:28:26 AM1920 (0x0780)Expand a string: DynamicSiteNameTSManager2/5/2008 10:28:26 AM1920 (0x0780)Expand a string: REG_SZTSManager2/5/2008 10:28:26 AM1920 (0x0780)Expand a string: TESTSITETSManager2/5/2008 10:28:26 AM1920 (0x0780)regKey.GetString(sExpandedValue.c_str(), sRegValueData), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,1801)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Failed to evaluate a REG expression. Error 0x(80070057)TSManager2/5/2008 10:28:26 AM1920 (0x0780)EvaluateRegExpression(eNode, &bEval), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,542)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Failed to evaluate an expression. Error 0x(80070057)TSManager2/5/2008 10:28:26 AM1920 (0x0780)EvaluateExpression(*iter, &bEvalOfChildNode), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,602)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Failed to evaluate an AND expression. Error 0x(80070057)TSManager2/5/2008 10:28:26 AM1920 (0x0780)EvaluateAndExpression(eNode, &bEval), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,514)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Failed to evaluate an expression. Error 0x(80070057)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Error 0x80070057 in evaluating the condition for the action (Install Microsoft Office 2003 Proofing Tools EU)TSManager2/5/2008 10:28:26 AM1920 (0x0780)Sending status message . . .TSManager2/5/2008 10:28:26 AM1920 (0x0780)Send a task execution status message SMS_TSExecution_ConditionFailForActionErrorTSManager2/5/2008 10:28:26 AM1920 (0x0780) Could you or someone else in your team give this a try in a lab? /Ragnar
February 5th, 2008 12:46pm

Hi Could someone give this problem a try? /Ragnar
Free Windows Admin Tool Kit Click here and download it now
February 18th, 2008 8:14am

I am running into the exact issue (SCCM07 R2) any resolution to this issue, I am trying to identify the site to point the migration to a local store for user state, and the DynamicSiteName is my key! Thansk!
November 3rd, 2010 11:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics