1.Click "Start" button
2.Choose the "Microsoft SharePoint 2010 Products"
3.Click the "SharePoint 2010 Management Shell" [ run as Administrator ]
2.Choose the "Microsoft SharePoint 2010 Products"
3.Click the "SharePoint 2010 Management Shell" [ run as Administrator ]
4.Create one folder in "C" Drive Named it data
Script:-
Get-SPWebApplication http://SampleWeb:32033/ | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL | Export-CSV C:\data\IterateAllSitesSubsites.csv
Note :-
http://SampleWeb:32033/ =Web application url
C:\data = Export url
Script:-
Get-SPWebApplication http://SampleWeb:32033/ | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL | Export-CSV C:\data\IterateAllSitesSubsites.csv
Note :-
http://SampleWeb:32033/ =Web application url
C:\data = Export url
No comments:
Post a Comment