Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, November 26, 2012 9:21 PM
If I go to backup and restore I can see the list of Sites: /PFS /PFS/ix /PFS/Operations /PFS/Operation/Contacts. But how do I know if the PFS has subsites or they are pages etc. I am having difficulty while exporting the site. In my export script I have listed as http://test/PFS, http:// test/PFS/Operation and when I imported that it looks like when I ran the export file from http://test/PFS it has all the information about the site. If such is the case I do not want to export other site and just export the root site.
All replies (3)
Monday, November 26, 2012 10:10 PM âś…Answered
Hello Chitra, There are many ways you can judge that are there any subsite under a root level site:
By going into --> Site actions --> All Site Content --> Subsites
here you will get how many subsite are hare
Second option :
By going into --> Site actions --> edit in sharepoint designer (for that you must have designer installed)
Once site is open in designer click on subsite in left navigation panel, if there is any subsite it will get display in right pane.
With the same process you can know if there are more subsites of a subsite in SharePoint.
Tuesday, November 27, 2012 5:31 AM
If it is a PowerShell Script. You can iterate through the he sub sites of the site.
$web=Get-SPWeb <web site Url>
foreach($subWeb in $web.Webs)
{
//Process (exclude) unwanted sites with some match criteria.
}
Pradip T. MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile
Tuesday, November 27, 2012 4:38 PM
How do I correct this error:
===============================================================
The term '//Process' is not recognized as the name of a cmdlet, function, scrip
t file, or operable program. Check the spelling of the name, or if a path was i
ncluded, verify that the path is correct and try again.
At D:\Scripts\subsitenames.ps1:8 char:14
+ //Process <<<< (exclude) unwanted sites with some match criteria.
+ CategoryInfo : ObjectNotFound: (//Process:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException