Tag Info

New answers tagged

1

One option is to build a site map is by using PowerShell, Excel and Visio. You can use this PowerShell script to create a Excel-sheet of all site collections and sub sites in a web application and then use it to build a diagram in Visio. Get-SPWebApplication http://portal.contoso.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ...


0

To answer my own question. string fullUrl = "http://siteCollection/subsite/library/folder/document.docx" string siteUrl = string.Empty; using (SPSite site = new SPSite(fullUrl)) { SPWeb web = site.OpenWeb(); siteUrl = web.Url; } This will take the full url path to a document and return the path to it's site, in this case ...


1

Instead of replication content across different location in some sort of read-only mode, why don’t you use a single farm over WAN? It’s well supported in SharePoint 2013 and you don’t have to worry about replicating content (that may or may not be read). If you use WAN and a single farm (depending on the size of the organization) you could implement ...


0

It would be very difficult to find out the user who deleted Site collection. However you can use Get-SPDeletedSite -ContentDatabase "WSS_CONTENT" to obtain a deleted site collection reference object. It returns object that contain information about deletion time, but not about user who deleted Site. Follow this link for more information ...


1

Their is no easy way to find who deleted the site collection, once it gone from every where. But still you can try couple of things, may be you get some clue. Option 1 check the IIS logs on the WFE and try to find the /_layouts/deleteweb.aspx(if deleted from the site collection itself) or /_admin/delsite.aspx(if site collection deleted from Central ...


0

Problem solved: I had to give full permissions to c:\windows\temp. Even though I am an administrator, and so is the SharePoint farm account. Microsoft only knows why.


3

Using the following code, within the SharePoint Management Shell, you can get the count of Web Applications in the Farm, Site Collections in Web Application, Sites in Site Collection. Write-Host "Web Applications in Farm" $WebApplications = Get-SPWebApplication $WebApplications | Measure-Object | Format-List Count ForEach($WebApplication in ...


11

or simply: $site = Get-SPSite http://YourSharePointSite $site.AllWebs.Count


4

if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"} if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } $sites = Get-SPSite <SiteCollectionUrl> $noOfWebs = 0 foreach ($web in $sites.AllWebs) { $noOfWebs++ } If ($sites ...



Top 50 recent answers are included