issue with get-folderbypath

This post was originally published on this site

Hello LucD many thanks for your help last time.

Now,  i’m having some strange issue with the  function get-folderbypath you created.

With some folder it find 4 times the object i try to search…

 

here is how it’s look like :

 

DC2

     Discovered virtual machine

     FolderVM-Test

          Fold2

               test

          test

 

If i ran get-folderbypath -path DC2/foldervm-test/fold2/test it’s working fine giving me one folder.

but if i ran get-folderbypath -path DC2/FolderVM-Test/test  it’s giving me 4 folder test as output.

And if i try get-folderbypath -path DC2/test (which doesn’t not exist) once again it found 4 test folder…

 

Have you got some suggestions?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.