Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

"Run Command Line" Task Not Copying Package

$
0
0

Hello,

I'm trying to run a Powershell script during post-install OSD which needs to talk to Active Directory. I was initially passing username/password as TS variables but discovered those were stored in the log files so... not good.

Now i'm trying to "Run Command Line" the powershell script and use the "Run this step as the following account" checkbox to run under the service account.

unfortunately, I'm finding that the command line is failing and when I drop to command line to look around, I see all the packages I would expect except for the package that I checked in the "Run Command Line" task. The package that has the powershell is missing.

I have very few clues in the logs but I'm wondering if this task sequence object uses the "run as" account to download the package as well as run it? and maybe my service account doesn't have access to the content?

<![LOG[Executing command line: smsswd.exe /run:RTL001DC convertLOB.cmd]LOG]!><time="21:24:18.680+420" date="06-20-2016" component="TSManager" context="" type="1" thread="2584" file="commandline.cpp:828">
<![LOG[[ smsswd.exe ]]LOG]!><time="21:24:18.696+420" date="06-20-2016" component="InstallSoftware" context="" type="1" thread="3792" file="main.cpp:289">
<![LOG[PackageID = 'RTL001DC']LOG]!><time="21:24:18.696+420" date="06-20-2016" component="InstallSoftware" context="" type="1" thread="3792" file="main.cpp:318">
<![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="21:24:18.696+420" date="06-20-2016" component="InstallSoftware" context="" type="1" thread="3792" file="main.cpp:319">
<![LOG[ProgramName = 'convertLOB.cmd']LOG]!><time="21:24:18.696+420" date="06-20-2016" component="InstallSoftware" context="" type="1" thread="3792" file="main.cpp:320">
<![LOG[SwdAction = '0001']LOG]!><time="21:24:18.696+420" date="06-20-2016" component="InstallSoftware" context="" type="1" thread="3792" file="main.cpp:321">
<![LOG[::LogonUser(sUserAccountName, sUserDomainName, sUserPassword, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, &hUserToken), HRESULT=8007052e (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\runcommandline.cpp,324)]LOG]!><time="21:24:19.086+420" date="06-20-2016" component="InstallSoftware" context="" type="0" thread="3792" file="runcommandline.cpp:324">
<![LOG[LogonUser failed with the error 0x8007052e]LOG]!><time="21:24:19.086+420" date="06-20-2016" component="InstallSoftware" context="" type="3" thread="3792" file="runcommandline.cpp:324">
<![LOG[cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=8007052e (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,372)]LOG]!><time="21:24:19.086+420" date="06-20-2016" component="InstallSoftware" context="" type="0" thread="3792" file="main.cpp:372">
<![LOG[Install Software failed to run command line, hr=0x8007052e]LOG]!><time="21:24:19.086+420" date="06-20-2016" component="InstallSoftware" context="" type="3" thread="3792" file="main.cpp:372">
<![LOG[Process completed with exit code 2147943726]LOG]!><time="21:24:19.117+420" date="06-20-2016" component="TSManager" context="" type="1" thread="2584" file="commandline.cpp:1124">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="21:24:19.149+420" date="06-20-2016" component="TSManager" context="" type="1" thread="2584" file="instruction.cxx:805">
<![LOG[Failed to run the action: Run ConvertLOB Script.
The user name or password is incorrect. (Error: 8007052E; Source: Windows)]LOG]!><time="21:24:19.227+420" date="06-20-2016" component="TSManager" context="" type="3" thread="2584" file="instruction.cxx:911">
<![LOG[MP server http://xxx.xxx.xxx.com. Ports 80,443. CRL=false.]LOG]!><time="21:24:19.274+420" date="06-20-2016" component="TSManager" context="" type="1" thread="2584" file="utils.cpp:6075">


Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>