We have been using some powershell to return project properties for quite some time already, but it seems to have stopped working.
it is working when when using PWPS_DAB Version 188.8.131.52 and 184.108.40.206
it is however NOT working on 220.127.116.11 and 18.104.22.168, and 22.214.171.124, i even tried updating to the latest 126.96.36.199
Kind regards Gavin Chapman
$tempFolderPath = 'client\project'
$projAttribs = (Get-PWRichProjects -FolderPath $tempFolderPath -JustOne).ProjectProperties
Trying adding the -PopulateProjectProperties switch parameter. Should resolve the issue.
Answer Verified By: GChapman
I have this function return null projects. I tried adding the switch parameter (-PopulateProjectProperties), but still it does not work for me.
The version I have installed for PWPS_DAB 188.8.131.52 and ProjectWise version is 10.00.03.280.
$project = Get-PWRichProjects -FolderPath $PWSitesParentFolder -FolderName $pwSite -JustOne -PopulateProjectProperties
Please let me know how to fix this.
The version in which it works is 184.108.40.206 with 10.00.03.167, there the folder structure has a parent 'Sites' folder and then its child is "ZZ-Test Area" this is the project I am interested in. The child is a rich project (it has the special icon on it) but the parent 'Sites' folder does not have the rich project icon. Accordinly a warning is thrown when the above command is run
'Sites' is not a rich project.
Figured it out, there is a change how the FolderPath is specified. It has to be like this "parent_folder\child_folder".