Show-ADTInstallationWelcome with DeploymentType Silent

Hi,

During the uninstallation of an application I need to close 2 processes. But the DeploymentType in the MECM Deploymenttype is set to run silently.

Can I use: Show-ADTInstallationWelcome-CloseProcesses @{ Name = 'Process1' }, @{ Name = 'Process2' } -Silent

…or do I have to use:
Stop-Process -Name 'Process1' -Force 4>&1 | Write-ADTLogEntry
Stop-Process -Name 'Process2' -Force 4>&1 | Write-ADTLogEntry

The description mentions:

…but it’s a bit confusing with the Show-ADTInstallationWelcome name of the function, because with the -silent switch, nothing is shown I presume ?

Regards.

The -CloseProcesses parameter works regardless if a user is present or not.
If no user is present, the processes are closed without a GUI.

If you add the -Silent switch, then the processes are closed without a GUI, user present or not.

1 Like

Thanks for the clarification. All clear now.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.