Only 1 Mandatory Application installs
Hello - Having an issue in the current 0.2.3.0 PSD environment where selecting the "Multiple Applications" option in an install application task sequence step will only install (and the same one every attempt after) one of the mandatory applications that i have specified in the customsettings.ini (only likes to install Mozilla Firefox which isn't even set as MandatoryApplications001)
Permissions to the applications directory are the same for all application folders inside it.
Attached is the PSDApplications log, Task Sequence layout, and CustomSettings.ini mandatoryapplications I have set.
Is this currently expected and for now i should be installing each application as its own task sequence step (which does work)?
PSDApplications.ps1.transcript.log
Can you provide the PSD.log; this should contain some additional information. I see it is looking for App id: {a1f8efee-d27b-41f5-924f-b7eef881e9eb}. Are you doing ZeroTouch (with no PSDwizard) or LiteTouch (with the PSDwizard)?
Can you provide the PSD.log; this should contain some additional information. I see it is looking for App id: {a1f8efee-d27b-41f5-924f-b7eef881e9eb}. Are you doing ZeroTouch (with no PSDwizard) or LiteTouch (with the PSDwizard)?
That App ID is lenovo commercial vantage trying to install as a single application step after the optional and mandatory applications step in the task sequence. I am using PSD as LiteTouch.
I've disabled the step for now and am testing the task sequence again to see if that single application install step is the issue. Ill update here on what happens and will provide the PSD log if i can't figure it out myself.
Below is what command is passed in the install step to verify if the computer being imaged is of Lenovo brand or not.
Thank you for your support so far!
(accidentally closed this issue)
Disabling the lenovo commercial vantage install step did not resolve the issue.
Here is the log for the attempt i started this thread: PSDApplications.log
And here is the log for the attempt i just performed today: PSDApplications-.log
Do you have the PSD.log; not the PSDApplications.log. The PSD log will process each rule. The PSDApplications.log shows the install process. If you can enable PSDDebug=YES this will show more details which could be relevant.
Do you have the PSD.log; not the PSDApplications.log. The PSD log will process each rule. The PSDApplications.log shows the install process. If you can enable
PSDDebug=YESthis will show more details which could be relevant.
Thank you for your reply!
I have PSDDebug=YES in bootstrap.ini and have logging enabled to a different folder on the root of the C drive on the server that hosts the PSD logs for each deployment, but i don't see a PSD.log file in any of the zip files the remote logging creates (only files like PSDstart, PSDApplications, etc.).
Where should the PSD.log be located? Im currently searching the test laptop i've been using for testing PSD to see if its a local log file while the deployment processes. Edit - i do a full search of the operating system drive for "PSD.log" and it doesn't come up with any results for that filename.
I came across this issue myself today and (possibly) found a solution that needs to be tested by someone else.
For me, the problem was with the Install-PSDApplication() function in PSDApplications.ps1. When installing mandatory applications, the IDs of these applications are passed to the function by pipeline. However, when passing values by pipeline, Powershell requires the function to have it´s processing logic inside a "process {}" codeblock.
@MDA400 : Please try the following:
- Take a backup of the PSDApplications.ps1 file!
- Open the PSDApplications.ps1 file with an editor of your choice.
- Insert a new line at line 63. The content of that new line should read " process {" (without the quotes).
- Insert a new line at line 214. The content of that line should read " }" (without the quotes).
Then please try the installation again.
EDIT: This should also fix the installation of application bundles.
I came across this issue myself today and (possibly) found a solution that needs to be tested by someone else.
For me, the problem was with the Install-PSDApplication() function in PSDApplications.ps1. When installing mandatory applications, the IDs of these applications are passed to the function by pipeline. However, when passing values by pipeline, Powershell requires the function to have it´s processing logic inside a "process {}" codeblock.
@MDA400 : Please try the following:
1. Take a backup of the PSDApplications.ps1 file! 2. Open the PSDApplications.ps1 file with an editor of your choice. 3. Insert a new line at line 63. The content of that new line should read " process {" (without the quotes). 4. Insert a new line at line 214. The content of that line should read " }" (without the quotes).Then please try the installation again.
EDIT: This should also fix the installation of application bundles.
This fixed the issue, thank you very much!
Devs, please close this issue once this has been assessed for updating the repository with this potential fix.
@daooze you are correct. this has the pipeline param but no proper pipeline begin/process/end in it. I also noticed it works with Applications and not ManadatoryApplications is because it's using an foreach loop (green arrow) instead for pipeline (red line)
@GeoSimos can you mark this as a bug. Thanks