List folders and files in a UNC root folder
问题 I am trying to get folders and files from the root of a UNC path name. I am using Get-ChildItem . I can get results from a subfolder via the UNC path, but not the root folder. If run the command Get-ChildItem \\sf1\user1 from the command line, results are returned. Directory: \\sf1\user1 Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 11/14/2013 3:40 PM 1.ISGROUP When I try to execute Get-ChildItem \\sf1 from the command line I get errors. Get-ChildItem : Cannot find path