Tag Info

New answers tagged

0

You can use below snippet to create site collection SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://WebApp")); webApp.Sites.Add("/sites/site1", "Description", null, 1033, null, "administrator", "Administrator", "admin@contoso.com")) You can read command line arguments using if (args == null) { Console.WriteLine("args is null"); // ...


1

You need to make sure the web applications and customizations are in place before you mount the content database to the web application. The full process is described in the article Upgrade content databases to SharePoint 2013: Create Web Applciations Create a web application for each web application that existed in the SharePoint 2010 Products ...


1

CMSPublishing#0 is designed to be used as a template for a sub site in a site collection where Publishing Infrastructure is already enabled. Credit goes to Paul S.


0

When you run Move-SPSite, the site collection gets moved to the new content database.However, the site collection in the source Content Database was not completely removed. The site collection "Deleted" flag was set to 1. This means it is scheduled for deletion. The Gradual site delete timer jobs will delete the site collection from the content database. By ...


0

Create a Registry Key 'disableloopbackcheck' with value 1 under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 .. It ll disable log on everytime you browse. http://blogs.technet.com/b/scottstewart/archive/2014/09/15/disableloopbackcheck-when-routing-through-a-load-balancer-powershell-sample-included.aspx


3

As you said you can use the command Move-SPSite on more site collection. Select the site collection (by matching the url) and then move them. Get-SPSite -Limit All | Where-Object {$_.Url -match "mySiteName" -or $_.Url -march "mySiteName1" } | Move-SPSite -DestinationDatabase ContentDb2 To create a new content DB, you can use New-SPContentDatabase ...


0

It's not possible to create site collection scoped event receivers. What you need is "Feature Stapling". You can connect a site or web scoped feature to a certain site template. So in your case you create a site scoped feature that contains the code to manipulate the home page of the root web. If you also want to activate that kind of modifications on all ...


0

I think you create an event receiver scoped to Web Events and fire it when A Site is being provisioned and A site was provisioned. How to Attach an Event Receiver to the Web Added Event And For What Purpose How to: Programmatically Activate a Feature


0

The problem was quite strange. My user account was twice in the web.SiteUsers set. Once with the claims authentication i:0#.w|domainname\username and an other with classic authentication domainname\username. I remove those users and then it worked fine. I think I had this issue during the migration of the contentdb' users. (from 2010 to 2013)


0

The application pool acoount had no permission on the DB. Adding the permission solved my problem.


0

When you run the move coomand, user will get correlation Id, sometime 404.typically this is advised to run in after hours, because you have to run iisreset after it.After you run the Move-SPSite cmdlet, run the IISReset command to update changes to IIS. Their is no power shell or other method, which will tell you exact timings.its depend upon, hardware of ...


2

1 - The Move-SPSite cmdlet moves the data in the specified site collection from its current content database to the content database specified by the DestinationDatabase parameter. A no-access lock is applied to the site collection to prevent users from altering data within the site collection while the move is taking place. Once the move is complete, the ...


0

From your information, its look like you trying to move the subsite into different content database. which is not possible, you should move the site collection from one DB to other. Now, if you want to move the subsite into own db then: Move subsite to own site collection first, using export & import process. Now move new site collection to different ...


0

I had the same challenge and to resolve it this is what I did: I moved out other site collections from the content database containing the bad site collection using the command below Move-SPSite http://servername/sites/sitename -DestinationDatabase ContentDb2 iisreset I deleted the faulty content database using the command below: Remove-SPContentDatabase ...


0

The extra size was about the log. (generated during the copy precess, also if the recovery model was in simple mode). After the copy, I shrank the contentDB and everything was fine. (the sizes were the same)


1

By using SPOSitePropertiesEnumerable spp = tenant.GetSiteProperties(0, true); you will get limited to 300 site collections only. I shared my solution here to get all the site collections here. http://stackoverflow.com/questions/24405584/sharepoint-csom-retrieving-site-collections-limited-to-300/24406495?noredirect=1#comment40072226_24406495 ...


0

Out of the box it's not possible to copy permissions between site collections. You can copy permissions programmatically, as explained in How To Copy Permissions Between Site Collections However, it's considered a best practice to make a security group in Active Directory and add that security group to each of the site collections. Then all you need to do ...


0

Yes, it will delete the web from the Database. But you will not get the space back just with this action. Once something removed from the DB it will not reduced by size rather the white space(unused Space) increased. I think, you have to shrink the database to get the space back(reduce the size of content DB). their is one rule in the health n monitor ...


0

When you start to inherit permissions on the list from the site, you don't effect the items that already have unique permissions. It only effect new items. They could be set up in a way that only the author are able to read the item. If so, the user having control over the item needs to either 1) start inherit permission or 2) give administrative users ...


-1

Which site collection features are available out of the box in a site collection will depend upon which site template you chose when creating the initial site collection as well as which service applications have an association to the web application hosting the site collection. So there's no one simple list, the exact features depend on the context of your ...


0

You can try below powershell, it will give you all OOTB feature scoped to Farm, web App, Site and Web. script create a csv and then you can filter it as per your need. $lcid=1033 $delimiter = "*" Get-SPFeature -Limit ALL | % { Get-SPFeature -Identity $_ | % { $_.DisplayName + $delimiter + $_.GetTitle($lcid) +$delimiter +$_.Scope + $delimiter + $_.Id + ...


0

You can use PowerShell to get list of Installed features. Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "SITE"} I believe this will return features irrespective its activated or deactivated.


0

when you restore the existing DB even with new ID/GUID but still site collection url will be same, so in that case it will not work. For Sp 2010 You have to go with either backup and restore to new database or export & import method. For Sp 2013 If you want to copy of existing site then you can use copy-spsite command. Copy-SPSite ...


0

You would need to create a custom webpart and insert it into a page. The custom webpart would be able to pull data from a different site collection. I don't think there is any way to do it OOTB. See this: http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx


0

For this PowerShell script I have created a function called AddGroupToSite, allowing you to assign a SharePoint group (must already be created in the site collection) to a site along with a permission level by specifying one line of script. This first section sets up the SPWeb object and the function: $web = Get-SPWeb "http://portal" function ...


1

There is no OOTB webpart available for this activity. But you can create a custom Web Part for this. Programmatically find out the number of site-collections within a web application. SPWebApplication.Sites would help you get the site-collection present inside web application. Check these for more info: ...



Top 50 recent answers are included