Jump to content


Sign in to follow this  
ryman

Run as Task Sequence Issues

Recommended Posts

I am working on a task within an OS build process to disable the previous computer object in AD.

 

Within my OSD task I have the option to change the system name. When the name is changed I set a variable to trigger a script to disable the object within the full OS portion of the task sequence. (The task is setup after the ConfigMgr agent is installed.) Because, the local system does not have access to AD I need to use a service account to disable the object. No matter how I run the script I get an error code 1 from the return of the script.

 

I have triple checked the password and the accounts access. The script runs fine from the command line once the OS starts. I just can not seem to get it to work during the task.

 

Section of the SMSTS.LOG

<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2957">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Executing command line: smsswd.exe /run: REG ADD HKLM\Software\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f]LOG]!><time="09:21:03.636+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805">
<![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:303">
<![LOG[PackageID = '']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:332">
<![LOG[BaseVar   = '', ContinueOnError='']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:333">
<![LOG[SwdAction = '0001']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="main.cpp:334">
<![LOG[Working dir 'not set']LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:542">
<![LOG[Executing command line: Run command line]LOG]!><time="09:21:03.667+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="commandline.cpp:805">
<![LOG[Process completed with exit code 0]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="commandline.cpp:1102">
<![LOG[The operation completed successfully.]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:34">
<![LOG[]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:34">
<![LOG[Command line returned 0]LOG]!><time="09:21:03.714+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1268" file="runcommandline.cpp:565">
<![LOG[Process completed with exit code 0]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3010">
<![LOG[Successfully complete the action (Temp Set RegDBVersion to 1) with the exit win32 code 0]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3036">
<![LOG[Sending status message . . .]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292">
<![LOG[Send a task execution status message SMS_TSExecution_ActionCompleteInfo]LOG]!><time="09:21:03.729+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314">
<![LOG[Formatted header:]LOG]!><time="09:21:03.745+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500">
<![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:03Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2202"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
]LOG]!><time="09:21:03.745+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="09:21:03.760+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:807">
<![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:829">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:386">
<![LOG[Set a global environment variable _SMSTSInstructionStackString=0 57 64]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0 57 64]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:414">
<![LOG[Save the current environment block]LOG]!><time="09:21:03.885+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:833">
<![LOG[Start executing an instruciton. Instruction name: Disable old Computer Name in AD. Instruction pointer: 67]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="engine.cxx:117">
<![LOG[Set a global environment variable _SMSTSCurrentActionName=Disable old Computer Name in AD]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=67]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a local default variable SMSTSDisableWow64Redirection]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700">
<![LOG[Set a local default variable _SMSTSRunCommandLineAsUser]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700">
<![LOG[Set a local default variable SMSTSRunCommandLineUserName]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700">
<![LOG[Set a local default variable SMSTSRunCommandLineUserPassword]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:700">
<![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\SysWOW64\CCM\Logs\SMSTSLog]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Evaluating an AND expression]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:592">
<![LOG[Evaluating a variable condition expression]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:775">
<![LOG[Expand a string: notEquals]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Expand a string: OldComputerName]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Expand a string: !SameName!]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[The condition for the action (Disable old Computer Name in AD) is evaluated to be true]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2912">
<![LOG[Expand a string: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Expand a string: ]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Start executing the command line: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2928">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:2957">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:782">
<![LOG[Executing command line: smsswd.exe /run: %SYSTEMROOT%\SysWOW64\wscript.exe "%ScriptRoot%\DisableComputer.vbs"]LOG]!><time="09:21:03.932+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805">
<![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:303">
<![LOG[PackageID = '']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:332">
<![LOG[BaseVar   = '', ContinueOnError='']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:333">
<![LOG[SwdAction = '0001']LOG]!><time="09:21:03.979+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="main.cpp:334">
<![LOG[Getting linked token]LOG]!><time="09:21:04.135+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:334">
<![LOG[failed to get the token information]LOG]!><time="09:21:04.135+240" date="09-20-2013" component="InstallSoftware" context="" type="3" thread="1776" file="runcommandline.cpp:341">
<![LOG[Working dir 'not set']LOG]!><time="09:21:04.930+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:542">
<![LOG[Executing command line: Run command line]LOG]!><time="09:21:04.930+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="commandline.cpp:805">
<![LOG[Process completed with exit code 1]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="commandline.cpp:1102">
<![LOG[Microsoft (R) Windows Script Host Version 5.8]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34">
<![LOG[Copyright (C) Microsoft Corporation. All rights reserved.]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34">
<![LOG[]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34">
<![LOG[CScript Error: Loading script "C:\_SMSTaskSequence\WDPackage\Scripts\DisableComputer.vbs" failed (Access is denied. ).]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:34">
<![LOG[Command line returned 1]LOG]!><time="09:21:05.149+240" date="09-20-2013" component="InstallSoftware" context="" type="1" thread="1776" file="runcommandline.cpp:565">
<![LOG[Process completed with exit code 1]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="instruction.cxx:3010">
<![LOG[Failed to run the action: Disable old Computer Name in AD. 
Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="instruction.cxx:3101">
<![LOG[Sending status message . . .]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292">
<![LOG[Send a task execution status message SMS_TSExecution_ActionFailError]LOG]!><time="09:21:05.258+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314">
<![LOG[Formatted header:]LOG]!><time="09:21:05.289+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500">
<![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="3302"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
]LOG]!><time="09:21:05.289+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=1]LOG]!><time="09:21:05.305+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="09:21:05.305+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="09:21:05.320+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="executionenv.cxx:807">
<![LOG[Let the parent group (Disable Old Computer Name) decides whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:3210">
<![LOG[Let the parent group (Setup Operating System) decide whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:2461">
<![LOG[Let the parent group (Image Install) decide whether to continue execution]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="instruction.cxx:2461">
<![LOG[The execution of the group (Image Install) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="instruction.cxx:2424">
<![LOG[Failed to run the last action: Disable old Computer Name in AD. Execution of task sequence failed.
Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="engine.cxx:214">
<![LOG[Sending status message . . .]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:292">
<![LOG[Send a task execution status message SMS_TSExecution_TaskSequenceFailError]LOG]!><time="09:21:05.367+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utility.cxx:314">
<![LOG[Formatted header:]LOG]!><time="09:21:05.414+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500">
<![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:21:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2106"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
]LOG]!><time="09:21:05.414+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501">
<![LOG[Launching command shell.]LOG]!><time="09:32:51.151+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:202">
<![LOG[executing command: C:\Windows\system32\cmd.exe /k]LOG]!><time="09:32:51.182+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:63">
<![LOG[executed command: C:\Windows\system32\cmd.exe /k]LOG]!><time="09:32:51.229+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:80">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:767">
<![LOG[****************************************************************************]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:789">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:790">
<![LOG[Cleaning Up. Removing Authenticator]LOG]!><time="09:33:02.664+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:578">
<![LOG[Cleaning up task sequence folder]LOG]!><time="09:33:02.695+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:1404">
<![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="09:33:03.225+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="environmentlib.cpp:869">
<![LOG[Executing command line: "C:\Windows\SysWOW64\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="09:33:03.225+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:805">
<![LOG[==========[ TsProgressUI started in process 2236 ]==========]LOG]!><time="09:33:03.631+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:327">
<![LOG[Unregistering COM classes]LOG]!><time="09:33:03.631+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:202">
<![LOG[Shutdown complete.]LOG]!><time="09:33:03.693+240" date="09-20-2013" component="TsProgressUI" context="" type="1" thread="744" file="winmain.cpp:520">
<![LOG[Process completed with exit code 0]LOG]!><time="09:33:03.709+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="commandline.cpp:1102">
<![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="09:33:03.709+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:1963">
<![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002]LOG]!><time="09:33:03.912+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:3099">
<![LOG[Start to cleanup TS policy]LOG]!><time="09:33:03.927+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2481">
<![LOG[End TS policy cleanup]LOG]!><time="09:33:04.489+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="utils.cpp:2530">
<![LOG[Start to evaluate TS policy with lock]LOG]!><time="09:33:04.738+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:8015">
<![LOG[Updating settings in \\alftestdeploy09\root\ccm\policy\machine\actualconfig]LOG]!><time="09:33:04.754+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:6237">
<![LOG[Machine RequestedConfig policy instance(s) : 327]LOG]!><time="09:33:04.988+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6382">
<![LOG[Deleted setting 'CCM_ClientActions.ActionID="{00000000-0000-0000-0000-000000000113}"'.]LOG]!><time="09:33:05.160+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_ClientActions.ActionID="{00000000-0000-0000-0000-000000000108}"'.]LOG]!><time="09:33:05.175+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000113}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000114}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_Scheduler_ScheduledMessage.ScheduledMessageID="{00000000-0000-0000-0000-000000000108}"'.]LOG]!><time="09:33:05.191+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_NetworkAccessAccount.SiteSettingsKey=1'.]LOG]!><time="09:33:05.206+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_SoftwareDistributionClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_SoftwareUpdatesClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Deleted setting 'CCM_SystemHealthClientConfig.SiteSettingsKey=1'.]LOG]!><time="09:33:05.238+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="policyutil.cpp:6437">
<![LOG[Raising event:

instance of CCM_PolicyAgent_SettingsEvaluationComplete
{
	ClientID = "GUID:4CCE6282-97EB-4447-BACF-E71E611551F3";
	DateTime = "20130920133305.456000+000";
	PolicyNamespace = "\\\\alftestdeploy09\\root\\ccm\\policy\\machine\\actualconfig";
	ProcessID = 1480;
	ThreadID = 1540;
};
]LOG]!><time="09:33:05.456+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="event.cpp:525">
<![LOG[Successfully submitted event to the Status Agent.]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="0" thread="1540" file="event.cpp:543">
<![LOG[End TS policy evaluation]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="policyutil.cpp:8018">
<![LOG[Policy evaluation initiated]LOG]!><time="09:33:05.550+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:3261">
<![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="tsmanager.cpp:689">
<![LOG[Sending error status message]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:690">
<![LOG[Formatted header:]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1500">
<![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:4CCE6282-97EB-4447-BACF-E71E611551F3</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2013-09-20T13:33:05Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="1178"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
]LOG]!><time="09:33:05.612+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="libsmsmessaging.cpp:1501">
<![LOG[Resuming SMS Components]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tsmanager.cpp:1026">
<![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4129">
<![LOG[CcmExec service is up and fully operational]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4134">
<![LOG[Resume for CCM component SoftwareDistribution requested]LOG]!><time="09:33:05.706+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029">
<![LOG[Resume for CCM component SoftwareUpdates requested]LOG]!><time="09:33:05.737+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="utils.cpp:4029">
<![LOG[Attempting to release request using {408498A6-2783-496F-9165-096B88286C25}]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="swdupdatescontroller.cpp:300">
<![LOG[ReleaseRequest failed with error code 0x80004005]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="3" thread="1540" file="swdupdatescontroller.cpp:318">
<![LOG[Task Sequence Manager could not release active TS request. code 80004005]LOG]!><time="09:33:05.768+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="swdupdatescontroller.cpp:326">
<![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002]LOG]!><time="09:33:05.784+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:2782">
<![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle. Error code 0x80070002]LOG]!><time="09:33:05.784+240" date="09-20-2013" component="TSManager" context="" type="2" thread="1540" file="utils.cpp:2930">
<![LOG[Finalize logging request ignored from process 1480]LOG]!><time="09:33:05.815+240" date="09-20-2013" component="TSManager" context="" type="1" thread="1540" file="tslogging.cpp:1732">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="09:33:05.908+240" date="09-20-2013" component="TSMBootstrap" context="" type="1" thread="1576" file="commandline.cpp:1102">
<![LOG[Exiting with return code 0x80004005]LOG]!><time="09:33:05.908+240" date="09-20-2013" component="TSMBootstrap" context="" type="1" thread="1576" file="tsmbootstrap.cpp:1118">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="commandline.cpp:1102">
<![LOG[Task sequence completed 0x80004005]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1381">
<![LOG[Waiting for command shell to complete.]LOG]!><time="09:33:05.940+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="2020" file="debugwindow.cpp:218">
<![LOG[Uninstalling Setup Hook]LOG]!><time="09:33:38.466+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1424">
<![LOG[Removing setup hook from registry.]LOG]!><time="09:33:38.481+240" date="09-20-2013" component="OSDSetupHook" context="" type="0" thread="1996" file="vistasetuphook.cpp:143">
<![LOG[Successfully removed C:\Windows\system32\OSDGINA.DLL]LOG]!><time="09:33:38.497+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1179">
<![LOG[Successfully removed C:\Windows\system32\OSDSETUPHOOK.EXE]LOG]!><time="09:33:38.497+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1179">
<![LOG[Successfully removed C:\Windows\system32\_SMSOSDSetup]LOG]!><time="09:33:38.513+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="basesetuphook.cpp:1216">
<![LOG[Successfully finalized logs to SMS client log directory from C:\Windows\SysWOW64\CCM\Logs]LOG]!><time="09:33:38.762+240" date="09-20-2013" component="OSDSetupHook" context="" type="1" thread="1996" file="tslogging.cpp:1536">

Share this post


Link to post
Share on other sites


The issue was access.

 

When using another account to run a process that account needs access to be able to run the script in the %scriptroot% (Admin rights works).

So before and after the task I created two new tasks to grant the account admin access then take it away.

 

net localgroup "administrators" Domain\AccountName /add

net localgroup "administrators" Domain\AccountName /delete

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...