Hi,
I’m looking to Uninstall user-based installs of Remote Desktop when running PSADT as System.
We have different versions installed and I would like to remove which ever version they have.
Is there any way I can combine these below so that it runs for the logged in user?
Execute-ProcessAsUser and Remove-MSIApplications -Name ‘Microsoft Remote Desktop’
Execute-ProcessAsUser needs for the affected user would have to be logged on AT EXECUTION TIME for your solution to work.
If the same computer has multiple users with Microsoft Remote Desktop installed in their profile, Execute-ProcessAsUser will only fix one user profile.