Problems installing application during OSD task sequence

ritmo2k 706 Reputation points
2021-01-05T14:22:48.49+00:00

I have a PowerShell script that deploys a package at the end of a task sequence, after several reboots. The application is a wix burn based installer and requires much custom manual work to deploy. It is also extremely resource-intensive during the deployment stage.

The virtual machine is adequately provisioned, and the host is as well. The application runs well post-deploy when installed from a regular session.

However, I am unable to install it from within the ts environment, based on logging and behavior, it simply appears to be a resource contention issue.

I am aware of the limits of the pe environment, however, I am unable to find any documentation that discusses any limits imposed by the setup environment.

Does anyone know if this is the case, and if so, whether a workaround exists?

Thanks.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
906 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
459 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Gary Blok 1,736 Reputation points
    2021-01-05T14:34:22.957+00:00

    If you're installing the Application near the end of the Task Sequence, and you've had reboots since the "Setup Windows and ConfigMgr Client" Step, then you're already in the full OS, not a setup environment.

    Have you tested on a more powerful machine to rule out a hardware resource issue?

    Can you install the application using a Task Sequence, after OSD?

    0 comments No comments

  2. ritmo2k 706 Reputation points
    2021-01-05T14:41:47.7+00:00

    Hi, you are correct, I am actually not in the OSD stage. The os has been installed and configured, the ConfigMgr client has been installed and a reboot has occurred since.

    The vm has 6 cores, 6Gb ram and it is backed by a SAS based r10 array. It is fairly well provisioned. If I log in using rdp, the same script works fine and although the installation process is resource-intensive, it does complete without any error.

    This is not a critical requirement, for the few that need this, I can perform this step manually if I must. I would have liked to understand this issue, this is unfortunate.


  3. ritmo2k 706 Reputation points
    2021-01-06T17:25:39.097+00:00

    Hi Gary,
    Without alternate credentials, the PowerShell script runs, but does have trouble completing all the actions in the burn wrapper. When I omit the step from the task sequence and log on through RDP, then launch PowerShell as System, it produces the same effect. It appears your assumption was correct, and this installer does have problems with running as System.

    However, when I specify alternate credentials using either the local (.\Administrator) or domain administrator (I am in a small test lab), I get a permission denied exception for both when the script invokes Get-CimInstance Win32_OperatingSystem?

    In summary, using nt authority\system in either the task sequence or post install using psexec is not compatible with the installer. However, the PowerShell script only has access to either the cmdlet or the CIM instance (I am not clear which is the result of the error) when not run as System?

    Any idea what the PowerShell nuance is here?

    0 comments No comments