UPDATE !!!!
When -CloseApps contains "notes" the command is failing.
The error is:
When -CloseApps contains "notes" the command is failing.
The error is:
<![LOG[[Installation] :: Display Dialog Box with message: Error Record:
-------------
Message : Cannot bind argument to parameter 'DifferenceObject' because it is null.
InnerException :
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.CompareObjectCommand
ScriptStackTrace : at Show-InstallationWelcome<Process>, G:\SCCM2012\ComputerRestartScript.1_0.EN\Package\AppDeployToolkit\AppDeployToolkitMain.ps1: line 4673 at <ScriptBlock>, G:\SCCM2012\ComputerRestartScript.1_0.EN\Package\ComputerRestartScript.ps1: line 163
PositionMessage : At G:\SCCM2012\ComputerRestartScript.1_0.EN\Package\AppDeployToolkit\AppDeployToolkitMain.ps1:4673 char:173
+ ... fferenceObject $notesPathExes -IncludeEqual | Where-Object { ($_.SideIndicator - ...
+