Can't get my TS to run?

Hello,

I have a task sequence in SCCM that I am trying to deploy to my clients and it is failing on the very first step of running the PowerShell script.. any idea what could be the issue? I am stuck.

<![LOG[==========[ TsProgressUI started in process 3040 ]==========]LOG]!><time="17:58:07.576+420" date="08-17-2015" component="TsProgressUI" context="" type="1" thread="1616" file="winmain.cpp:329"> <![LOG[Registering COM classes]LOG]!><time="17:58:07.577+420" date="08-17-2015" component="TsProgressUI" context="" type="1" thread="1616" file="winmain.cpp:187"> <![LOG[sbModulePath = C:\Windows\CCM\TsProgressUI.exe]LOG]!><time="17:58:07.577+420" date="08-17-2015" component="TsProgressUI" context="" type="1" thread="1616" file="tsprogressuiclass.cpp:625"> <![LOG[Shutdown complete.]LOG]!><time="17:58:07.590+420" date="08-17-2015" component="TsProgressUI" context="" type="1" thread="1616" file="winmain.cpp:512"> <![LOG[Successfully intialized Logging for TS Manager.]LOG]!><time="17:58:07.644+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4492" file="tsmanager.cpp:621"> <![LOG[Commandline: C:\Windows\CCM\TSManager.exe /service]LOG]!><time="17:58:07.645+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4492" file="tsmanager.cpp:59"> <![LOG[Successfully registered Task Sequencing COM Interface.]LOG]!><time="17:58:07.667+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4492" file="environmentlib.cpp:798"> <![LOG[Executing as a service]LOG]!><time="17:58:07.667+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4492" file="tsmanager.cpp:634"> <![LOG[Started ServiceMain]LOG]!><time="17:58:07.667+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsmanager.cpp:293"> <![LOG[Task Sequence Manager executing as service main thread]LOG]!><time="17:58:07.668+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsmanager.cpp:410"> <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="17:58:07.684+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="utils.cpp:4019"> <![LOG[CcmExec service is up and fully operational]LOG]!><time="17:58:07.684+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="utils.cpp:4024"> <![LOG[Remediating]LOG]!><time="17:58:07.684+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsnapcontrol.cpp:43"> <![LOG[Error getting system isolation info. Code 8027000C]LOG]!><time="17:58:07.688+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="remediate.cpp:632"> <![LOG[Remediation failed. Code 8027000C]LOG]!><time="17:58:07.688+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="tsnapcontrol.cpp:48"> <![LOG[Remediation failed with error code 8027000C]LOG]!><time="17:58:07.688+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="tsmanager.cpp:1364"> <![LOG[Parsing task sequence . . .]LOG]!><time="17:58:07.695+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsmanager.cpp:1259"> <![LOG[Task sequence schema version is 3.00]LOG]!><time="17:58:07.697+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="tsmanager.cpp:1191"> <![LOG[Current supported schema version is 3.10 and 3.00]LOG]!><time="17:58:07.697+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="tsmanager.cpp:1198"> <![LOG[No variables found in default variable list]LOG]!><time="17:58:07.697+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsxml.cpp:606"> <![LOG[No variables found in default variable list]LOG]!><time="17:58:07.697+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsxml.cpp:606"> <![LOG[Starting Task Sequence Engine . . . ]LOG]!><time="17:58:07.699+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsmanager.cpp:747"> <![LOG[****************************************************************************]LOG]!><time="17:58:07.699+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="tsmanager.cpp:749"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=0]LOG]!><time="17:58:07.699+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSInstructionTableSize=44]LOG]!><time="17:58:07.700+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable SMSTSRebootRequested=]LOG]!><time="17:58:07.700+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable SMSTSRebootDelay=]LOG]!><time="17:58:07.700+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable SMSTSRebootMessage=]LOG]!><time="17:58:07.701+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable SMSTSRebootReason=]LOG]!><time="17:58:07.701+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable SMSTSRetryRequested=]LOG]!><time="17:58:07.701+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[The task execution engine started execution]LOG]!><time="17:58:07.702+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="engine.cxx:70"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:07.704+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592"> <![LOG[Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider]LOG]!><time="17:58:07.724+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="libcrypt.cpp:1592"> <![LOG[Default CSP Type is 24]LOG]!><time="17:58:07.724+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="libcrypt.cpp:1593"> <![LOG[Start executing an instruciton. Instruction name: SMSTSDownloadRetryCount. Instruction pointer: 0]LOG]!><time="17:58:07.864+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="engine.cxx:117"> <![LOG[Set a global environment variable _SMSTSCurrentActionName=SMSTSDownloadRetryCount]LOG]!><time="17:58:07.864+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=0]LOG]!><time="17:58:07.864+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog]LOG]!><time="17:58:07.897+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Expand a string: tsenv.exe "SMSTSDownloadRetryCount=5"]LOG]!><time="17:58:07.898+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Expand a string: ]LOG]!><time="17:58:07.898+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Start executing the command line: tsenv.exe "SMSTSDownloadRetryCount=5"]LOG]!><time="17:58:07.900+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2929"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:07.900+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2958"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="17:58:07.900+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Executing command line: tsenv.exe "SMSTSDownloadRetryCount=5"]LOG]!><time="17:58:07.900+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="commandline.cpp:801"> <![LOG[Finished with error code 0]LOG]!><time="17:58:07.919+420" date="08-17-2015" component="TSEnv" context="" type="1" thread="4688" file="main.cpp:93"> <![LOG[Process completed with exit code 0]LOG]!><time="17:58:07.933+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="commandline.cpp:1098"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:07.933+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:3011"> <![LOG[Successfully completed the action (SMSTSDownloadRetryCount) with the exit win32 code 0]LOG]!><time="17:58:07.933+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:3037"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:07.936+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="17:58:08.120+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="17:58:08.121+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="17:58:08.121+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:807"> <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:58:08.124+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="utils.cpp:1019"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=1]LOG]!><time="17:58:08.124+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=1]LOG]!><time="17:58:08.125+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:386"> <![LOG[Set a global environment variable _SMSTSInstructionStackString=]LOG]!><time="17:58:08.125+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=]LOG]!><time="17:58:08.126+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:414"> <![LOG[Save the current environment block]LOG]!><time="17:58:08.126+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:833"> <![LOG[Start executing an instruciton. Instruction name: SMSTSDownloadRetryDelay. Instruction pointer: 1]LOG]!><time="17:58:08.237+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="engine.cxx:117"> <![LOG[Set a global environment variable _SMSTSCurrentActionName=SMSTSDownloadRetryDelay]LOG]!><time="17:58:08.237+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=1]LOG]!><time="17:58:08.238+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog]LOG]!><time="17:58:08.240+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Expand a string: tsenv.exe "15="]LOG]!><time="17:58:08.241+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Expand a string: ]LOG]!><time="17:58:08.241+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Start executing the command line: tsenv.exe "15="]LOG]!><time="17:58:08.242+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2929"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:08.242+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2958"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="17:58:08.242+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Executing command line: tsenv.exe "15="]LOG]!><time="17:58:08.242+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="commandline.cpp:801"> <![LOG[Finished with error code 0]LOG]!><time="17:58:08.254+420" date="08-17-2015" component="TSEnv" context="" type="1" thread="4708" file="main.cpp:93"> <![LOG[Process completed with exit code 0]LOG]!><time="17:58:08.268+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="commandline.cpp:1098"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:08.268+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:3011"> <![LOG[Successfully completed the action (SMSTSDownloadRetryDelay) with the exit win32 code 0]LOG]!><time="17:58:08.268+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:3037"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:08.271+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="17:58:08.443+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="17:58:08.444+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="17:58:08.444+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:807"> <![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:58:08.446+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="utils.cpp:1019"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="17:58:08.446+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="17:58:08.446+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:386"> <![LOG[Set a global environment variable _SMSTSInstructionStackString=]LOG]!><time="17:58:08.446+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=]LOG]!><time="17:58:08.447+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:414"> <![LOG[Save the current environment block]LOG]!><time="17:58:08.447+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:833"> <![LOG[Start executing an instruciton. Instruction name: Run PowerShell Script (Notify). Instruction pointer: 2]LOG]!><time="17:58:08.557+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="engine.cxx:117"> <![LOG[Set a global environment variable _SMSTSCurrentActionName=Run PowerShell Script (Notify)]LOG]!><time="17:58:08.557+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="17:58:08.558+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a local default variable OSDRunPowerShellScriptExecutionPolicy]LOG]!><time="17:58:08.561+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:700"> <![LOG[Set a local default variable OSDRunPowerShellScriptPackageID]LOG]!><time="17:58:08.561+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:700"> <![LOG[Set a local default variable OSDRunPowerShellScriptParameters]LOG]!><time="17:58:08.562+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:700"> <![LOG[Set a local default variable OSDRunPowerShellScriptScriptName]LOG]!><time="17:58:08.562+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:700"> <![LOG[Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog]LOG]!><time="17:58:08.563+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Expand a string: OSDRunPowerShellScript.exe]LOG]!><time="17:58:08.563+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Expand a string: ]LOG]!><time="17:58:08.563+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Start executing the command line: OSDRunPowerShellScript.exe]LOG]!><time="17:58:08.564+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2929"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:08.564+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2958"> <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="17:58:08.564+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:782"> <![LOG[Executing command line: OSDRunPowerShellScript.exe]LOG]!><time="17:58:08.564+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="commandline.cpp:801"> <![LOG[CreateProcess failed. Code(0x80070002)]LOG]!><time="17:58:08.564+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="commandline.cpp:993"> <![LOG[Command line execution failed (80070002)]LOG]!><time="17:58:08.565+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="commandline.cpp:1217"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:58:08.565+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="instruction.cxx:2980"> <![LOG[Failed to run the action: Run PowerShell Script (Notify). The system cannot find the file specified. (Error: 80070002; Source: Windows)]LOG]!><time="17:58:08.565+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="instruction.cxx:2982"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:08.567+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=2]LOG]!><time="17:58:08.735+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="17:58:08.735+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="17:58:08.736+420" date="08-17-2015" component="TSManager" context="" type="0" thread="4484" file="executionenv.cxx:807"> <![LOG[Failed to run the action: Run PowerShell Script (Notify). Execution has been aborted]LOG]!><time="17:58:08.737+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="instruction.cxx:3190"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:08.739+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592"> <![LOG[Failed to run the last action: Run PowerShell Script (Notify). Execution of task sequence failed. The system cannot find the file specified. (Error: 00000002; Source: Windows)]LOG]!><time="17:58:08.879+420" date="08-17-2015" component="TSManager" context="" type="3" thread="4484" file="engine.cxx:214"> <![LOG[Set authenticator in transport]LOG]!><time="17:58:08.881+420" date="08-17-2015" component="TSManager" context="" type="1" thread="4484" file="libsmsmessaging.cpp:7592">

Above is the log of smsts.log when trying to install the TS. It is published as required.

The SCCM TS does not boot into a WinPE environment, everything runs from SCCM Client.

The step it is currently failing at worked without issues before when I was testing, then I reformat the client to do a dry run and I get stuck at the very first TS step of running a PowerShell script. The script itself is just a email notification..

Param (
 [String]$to,
 [String]$from,
 [String]$subject,
 [String]$server
)

Begin{}
Process{
 $strComputerName = (Get-WmiObject -Class Win32_ComputerSystem | Select-Object Name).Name
 $strComputerModel = (Get-WmiObject -Class Win32_ComputerSystem | Select-Object Model).Model
 $strSerialNumber = (Get-WmiObject -Class Win32_BIOS | Select-Object SerialNumber).SerialNumber
 $strDate = Get-Date
 $erroractionpreference = "SilentlyContinue"
 $strSMTP = $server
 $strSubject = "$subject"
#$strBody = "Hostname: $strComputerName`r`n Model: $strComputerModel`r`n Serial: $strSerialNumber`r`n Date: $strDate"
 $strBody = "Hostname: $strComputerName{0} Model: $strComputerModel{0} Serial: $strSerialNumber{0} Date: $strDate" -f [Environment]::NewLine
 $MailMessage = New-Object System.Net.Mail.MailMessage
 $MailMessage.IsBodyHtml = $true
 $SMTPClient = New-Object System.Net.Mail.smtpClient
 $SMTPClient.host = $strSMTP
 $Sender = New-Object System.Net.Mail.MailAddress($from, "ConfigMgr")
 $Recipient = New-Object System.Net.Mail.MailAddress($to)
 $MailMessage.Sender = $Sender
 $MailMessage.From = $Sender
 $MailMessage.Subject = $strSubject
 $MailMessage.To.add($Recipient)
 $MailMessage.Body = $strBody
 $SMTPClient.Send($MailMessage)
}

End{
 Exit 0
}

It just grabs some client info, works fine when ran manually on the client machine as well... it also worked on the very same client before i reformatted it to start clean.

I am running SCCM 2012 R2. 

What could be the issue? I have PS execution policy set to Bypass, my client is Windows 7 x64.

August 17th, 2015 9:14pm

I also see it showed system cannot find file, I tried deleting the deployment, re-publishing and refreshing client policies etc.. what am I missing?
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 9:15pm

(1) there is an issue with running PoSh script in R2SP1: https://social.technet.microsoft.com/Forums/en-US/2ec9a2ac-f191-4d24-8633-37664ef5cbba/run-powershell-script-does-not-work-with-sccm-2012-r2-sp1?forum=configmanagerosd but your issue might be unrelated.

(2) have you already tried running the script manually while in WinPE? You press F8 to get a cmd window. Powershell will only work in PE if you added the components needed. 

August 18th, 2015 1:55am

The TS is behaving very strange, now I am getting "Requirements Not Meet. Program rejected (wrong platform)" when I set this package as required and on the properties of the TS I set it for Windows 7 and Windows 8 (64bit) platform.

The client is Windows 7 x64bit.

There is no way this can be the wrong platform, again this part worked previously as well.

I will try your F8 suggestion next.

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 10:02am

The TS is not setup for WinPE, it is not set to use a boot image, because of this I don't think F8 works... 

This is for already deployed clients/operating systems, trying to push a package via TS.. 

August 18th, 2015 10:24am

I resolved this by removing all the packages in my TS from distribution points, removing the deployment and re-deploying the TS/content.

No idea what the issue was, but seems that "restarting" some of the steps goes a long way.

  • Marked as answer by techy86_ 15 hours 29 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 12:23pm

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

Other recent topics Other recent topics