I'm trying to get Get-Acl to work but it seems that when I use UNC path, it returns false. I ran Test-Path and it also returns false.
I tested Test-Path on my local folders and still the same. UNC path returns false but when normal path it returns true. What am I doing wrong?
PS C:\windows\system32> Get-Acl \\computername\Asset
Get-Acl : Cannot find path '\\phmangang01\Asset' because it does not exist.
At line:1 char:1
+ Get-Acl \\phmangang01\Asset
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-Acl], ItemNotFoundException
+ FullyQualifiedErrorId : GetAcl_PathNotFound_Exception,Microsoft.PowerShell.Commands.GetAclCommand
PS C:\windows\system32> Get-Acl C:\Asset
Directory: C:\
Path Owner Access
---- ----- ------
Asset BUILTIN\Administrators BUILTIN\Administrators Allow FullControl...
PS C:\windows\system32> Test-Path \\computer name\Asset
False
PS C:\windows\system32> Test-Path C:\Asset
True
\> should betest-path \\ComputerName\C$- T-Metest-path \\ComputerName\C$\Asset- T-Menet shareon the server show? - Ansgar Wiechers