Forum Discussion
braedachau
Jan 23, 2021Brass Contributor
Acrobat DC Reader Vulnerabilities - Endpoint Manager - PowerShell
To whom it may concern, Please excuse me but I believe the post belongs here not in the PowerShell discussion. I deleted the post placed in the PowerShell group Background: I have a test t...
- Feb 10, 2021
Hello braedachau,
the issue is caues by the if condition, the path you try to check cannot be found because it does not exist when Adobe DC is not installed. (I believe that the registries have not been set by Adobe DC then.)
Try it with "Test-Path"
Example:
#Check path If (Test-path -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockDown') {}
MK_Nils
Feb 10, 2021Copper Contributor
Hello braedachau,
the issue is caues by the if condition, the path you try to check cannot be found because it does not exist when Adobe DC is not installed. (I believe that the registries have not been set by Adobe DC then.)
Try it with "Test-Path"
Example:
#Check path
If (Test-path -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockDown')
{}