Windows PowerShell Home
Powershell 3.0 Test-Path -PathType Container always returns false for UNC path
5/9/2013 11:47:58 AM
User(s) can reproduce this bug
When running Test-Path "known UNC folder path" -PathType Container in server 2012 it always returns false. I run the same command on the same known folder from a server 2008 r2 or windows 7 box, and it returns True when it is a folder, and false when not.
How often does this happen?
Have you seen this problem before in this product?
No, this is new to the most recent version
Test-Path "known folder path" -pathType Container
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
on 5/9/2013 at 11:59 AM
Even though UAC is off, and powershell title windows showed "administrator", i still had to run as Administrator when opening powershell. Now the command works, and result is expected
© 2013 Microsoft