Quantcast
Viewing latest article 14
Browse Latest Browse All 14

PowerShell Tip #14–Get all IDs and URLs for SharePoint sites

If you are interested in finding a list of all IDs and URLs of any web application in SharePoint, here is what you may do.

get-spwebapplication http://sp2010 | get -spsite -limit all | get-spweb -limit all | select id, url


ID                                      Url
--                                      ---
5f9e57c9-0b65-4cc6-99b7-dbfbd512d1a1   
http://sp2010
4ac60eab-73e9-41d9-9326-baf332737c73    http://sp2010/helloBlank
97858259-0141-48e2-b8a9-6c784c5dc5a4    http://sp2010/my
03c337b2-9253-4d01-827c-fb9a0f53a670    http://sp2010/sites/1
e0122d13-01de-4350-8aa6-1508577a74db    http://sp2010/sites/bistuff
28cb75b0-bf06-4ffc-8b64-468ba8b62201    http://sp2010/sites/blank

Hope this helps, Image may be NSFW.
Clik here to view.
Wave

Rahul

 


Quote of the day:
"I finally figured out the only reason to be alive is to enjoy it." - Rita Mae Brown



Viewing latest article 14
Browse Latest Browse All 14

Trending Articles