Test-Path returns "True" when path doesn't exist #15388
Labels
Issue-Bug
Issue has been identified as a bug in the product
Resolution-No Activity
Issue has had no activity for 6 months or more
WG-Cmdlets-Management
cmdlets in the Microsoft.PowerShell.Management module
Steps to reproduce
In a non elevated PS window test a path which you don't have access to (such as below).
Test-Path registry::HKEY_USERS\S-1-5-19\SOFTWARE\Microsoft\Office\16.0\Common\MailSettings
Performing the action in an elevated PS window will give you the expected value
Actual behavior
Test-Path registry::HKEY_USERS\S-1-5-19\SOFTWARE\Microsoft\Office\16.0\Common\MailSettings
Returns: True
The text was updated successfully, but these errors were encountered: