question

ritmo2k avatar image
0 Votes"
ritmo2k asked ritmo2k answered

Problems installing application during OSD task sequence

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.

mem-cm-osdmem-cm-application
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GaryBlok avatar image
0 Votes"
GaryBlok answered

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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ritmo2k avatar image
0 Votes"
ritmo2k answered GaryBlok commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

So when you say that you're running the script manually, you're not running it via Configuration Manager? You're just launching elevated PowerShell and running it? Or are you running it through software center to make sure it's running as System.

0 Votes 0 ·

Hi, sorry about that, I am logging into the VM through rdp and copying the package data locally from Config Manager, then starting an elevated PowerShell console and finally running the script myself.

Using this approach, the installation proceeds through as expected and reliably.

0 Votes 0 ·

Do you have the install working from CM at all? If you create a CM Application, does that work when trying to install from software center?

I've seen some issues where some Application Packages from a vendor will just not install properly when trying to install via System Context.

Here's how I would troubleshoot:

  • Launching PowerShell as System, try your script and see if it works

  • Create a CM Application, Test Install

  • If it doesn't install as system, see if you can run the install as a user (in the TS, you can run a command line / PowerShell step as a user account)


1 Vote 1 ·
ritmo2k avatar image
0 Votes"
ritmo2k answered

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?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.