lHi,
I my previous post i wrote about “How to search for files using Powershell” .
In this post i am writing about “How to search folders” in Powershell.
The logic and command are almost same ,the only difference is in Files we were using
I my previous post i wrote about “How to search for files using Powershell” .
In this post i am writing about “How to search folders” in Powershell.
The logic and command are almost same ,the only difference is in Files we were using
$_.PSIsContainer -eq $false
and for searching Folders we need to use
$_.PSIsContainer -eq $true
Simple
You can download the script from this link :
Download Link : http://gallery.technet.microsoft.com/scriptcenter/Search-and-Find-Folders-af9c86ad
Thanks
Aman Dhally
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.