When I run this script:
$a = Get-PWFolders -FolderPath 'Projects\123456 - Project'
$b = Get-PWFolders -FolderPath 'Projects\123456 - Project' -JustOne
I get the wrong dates unless I use the -JustOne switch:
Im planning to loop through a few folders, so I cant use the -JustOne switch. Is this a bug?
I found using -Slow will return the correct date but it took over 30min to loop through a single project of 125 folders. This wont be feasible to run on hundreds of projects. Does anyone know if there is a faster way to get the folder dates?
Oh and FYI, -JustOne always does a -Slow when used since the lookup time for a single record is very fast. I think that's in the help somewhere. it threw me for a loop to initially.
Hey Kevin, filtering the properties not populated may be a bit difficult as you suspect, however, I will look into it. It's sometimes quicker to use the get-pwfolders to get all of the folder objects you want, and then loop through them and use the get-pwfolders with the -slow switch parameter to gather the data you want. Seems a bit convoluted, but seems to be quicker. For me anyway.
Thanks for the tip Brian. Going back with the -Slow switch on the specific folders, was a lot faster.