I'm having trouble using the Powershell CmdLet Test-Path.
I created a Share on a Server (\\Servername\MyShare$), which allows one Group of users to just create a file and append data, while others users can just read and delete these files. The first group is not allowed to do anything else, including Read-Permissions, Read-Attributes and so on.
If I do a Test-Path on this folder as member of the "drop files only" group, it returns false. Even [System.IO.Directory]::Exists() returns false.
I am searching for a way to test if a directory exists without the need to have Read-Permissions or Read-Attributes rights. Any ideas?
Is this the correct behaviour of those two methods?
Regards, teamoo
Test-Path "\\server\Share$"I even tried this with the same result:[System.IO.Directory]::Exists("\\server\Share$")both return false, while the Share actually exists, but I'm not allowed to access it, which is not a reason (in my opinion) to return False with both methods. - teamoo