Working on a script that will dump out all of the lists and libraries in a site, I found the script on Mike Smith's Blog: http://techtrainingnotes.blogspot.com/2011/06/finding-sharepoint-guids-using.html
I threw in a couple prompts for user input but otherwise it's still the same code...it's great but i need to be able to seperate what is a list and what is a library....does anyone know how to tweak this script to seperate the two types of objects reported...so that instead of one long list of lists and libraries it shows them grouped by type?
Here is the code:
$sitec = Read-Host 'Enter Site Collection (ex: http://yours.yourdomain.com)'
$subsite = Read-Host 'Enter Sub-Site(ex: departments or ENTER for "root")'
$site = Get-SPSite $sitec
$web = $site.OpenWeb("$subsite")
write-host "Site: " + $site.id
write-host "Web: " + $web.id
$web.lists | Format-Table title,id -AutoSize
$web.Dispose()
$site.Dispose()
Cheers!