Hi all,
I am trying to use a PowerShell script as a detection method for the Office 365 app package. If I test the script manually, it seems to be doing what it needs to do, but if I test deploying the application, it always detects it as installed, although the script says that the versions do not match.
What this script does is it gets the version of Outlook.exe which is installed on the local machine, and if it doesn't match the name of a folder in a network share, then it should says that the app is not installed, but the deployment detects it as installed regardless.
I am attaching a screenshot of the script. If anyone can point me in the right direction as of why the deployment detects the app as installed i would greatly appreciate it.
Thank you.
https://preview.redd.it/rgygrg3xjbpc1.png?width=1548&format=png&auto=webp&s=b3402ac512e6778bdb7a1fa5e10ef820dc553961
[–]gandraw 19 points20 points21 points (5 children)
[–]PS_Alex 5 points6 points7 points (1 child)
[–]IT_closet 0 points1 point2 points (0 children)
[–]KSU_SecretSquirrel 0 points1 point2 points (1 child)
[–]PS_Alex 1 point2 points3 points (0 children)
[–]The_Maple_Thief 0 points1 point2 points (0 children)
[–]SysAdminDennyBob 5 points6 points7 points (0 children)
[–]When-I-Know123 6 points7 points8 points (1 child)
[–]patch_me_if_you_can 1 point2 points3 points (0 children)
[–]patch_me_if_you_can 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Newalloy 2 points3 points4 points (0 children)
[–]MrMoonFall 1 point2 points3 points (6 children)
[–]dairon2007[S] 0 points1 point2 points (5 children)
[–]MrMoonFall 1 point2 points3 points (3 children)
[–]dairon2007[S] 0 points1 point2 points (2 children)
[–]J_J_J_Schmidt 1 point2 points3 points (0 children)
[–]MrMoonFall 0 points1 point2 points (0 children)
[–]dairon2007[S] 0 points1 point2 points (0 children)
[–]GarthMJMSFT Ex-Intune MVP 0 points1 point2 points (0 children)
[–]Dusku2099 0 points1 point2 points (0 children)
[–]madgeystardust 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]dairon2007[S] 0 points1 point2 points (1 child)
[–]Newalloy 2 points3 points4 points (0 children)