I like this, but actually need it to show less. Specifically, I just need to see the folders and folder paths. I’m a n00b when it comes to scripting, so any advise you can give would be appreciated. I figure there should be a way to specify that I only want to see the folders and path after the Get-InventoryPlus command.
Hi Christopher,
You can use a Where-Object clause to filter the returned objects.
And with Select-Object you can specify which properties you want to see in the output.
Christopher Moore
I like this, but actually need it to show less. Specifically, I just need to see the folders and folder paths. I’m a n00b when it comes to scripting, so any advise you can give would be appreciated. I figure there should be a way to specify that I only want to see the folders and path after the Get-InventoryPlus command.
LucD
Hi Christopher,
You can use a Where-Object clause to filter the returned objects.
And with Select-Object you can specify which properties you want to see in the output.
Get-InventoryPlus |
where{$_.Type -eq 'Folder'} |
Select-Object -Property Name,Path,BluePath