Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

WQL Query to get the directories under a specified folder

$
0
0

Hi

I'm a newbie to power shell.

I would like to know the efficient way to get the immediate directories under a folder path.

The below one does not give directories inside rather gives the information of that directory.

SELECT * FROM Win32_Directory WHERE Name = 'c:\\folderpath'


Viewing all articles
Browse latest Browse all 6937

Trending Articles