Hi all,

I'm creating an HTML email report in PowerShell that returns the following
table.

NameSite URLSize(MB)#WebsVS 2010/sites/dev1.572Site Test/6.136Team Site
/sites/team4.291Apps/sites/apps5.846

I would like to sort these by Size descending but am having no luck.

I have a collection of sites from a specified webapp.

$sites = $webapp.Sites

I then iterate through them with a foreach loop. I tried adding the sort
property to the* $sites* var but the *usage *property does not exist at
this level. It's a site property.

foreach (*$site* in (*$sites* | Sort-Object -Descending -Property *
usage.storage*))

Do I need to store the above in another var and then sort it??

-- 
Regards,

Paul Noone

--
SharePoint Farm Admin/Developer
Infrastructure Team
CEO Sydney

p: (02) 9568 8461
f: (02) 9568 8483
e: [email protected]
w: http://www.ceosyd.catholic.edu.au/
_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to