Powershell scripts won't run in OSD Task Sequence

GreenerJay 41 Reputation points
2022-12-15T17:53:27.667+00:00

Hello - I am running Configuration Manager 2207 Version 5.00.9088.1025. My client version is the same.

I have tried running a basic powershell script using several different methods. I have tried creating it as a package, as an application and as a General - Run PowerShell Script task. I have set the executionpolicy to bypass in the task sequence. Nothing runs or gets logged referencing the script/task.

I have three other applications that are installing perfectly using the same OSD Task Sequence.

There are no references to any sort of powershell script in the smsts.log, in the execmgr.log or the Appenforce log regardless of which method I use.

The powershell script has only two lines that import two certificates in the local machine's certstore. This same script works well if I run it manually from a newly provisioned device.

Any help would be appreciated. I'm lost without any logging information.

Microsoft Security Intune Configuration Manager Deployment
Microsoft Security Intune Configuration Manager Application
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sherry Kissinger 5,526 Reputation points
    2022-12-15T22:19:28.117+00:00

    You don't mention if the target client does get the policy, at all, for the Task Sequence. If you use something like Roger Zanders' Client Center to remotely look at the device targeted, does the TS even show up as listed?

    Do any steps run?

    If the TS does show up, what if you add just a single task to do something boring, like copy a file from %windir%\system32 to c:\windows\temp\JustTesting.txt ? just to see if the TS is doing anything at all, and it's just the posh individual task that isn't doing anything?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.