Tag Info

New answers tagged

0

You do NOT need and you should NOT call web.update(). This mean that you save this property to the database. To disable site collection feature, you do not need SPWeb instance also. If you have permissions to manage features of the site, you also do not need new SPSite object instance. Try to write you code like, this: if (SPContext.Current.Site != null) ...


1

In my solution I had a event receiver and some content type definition. I splitted it in two different solutions (one with event receiver and other with definitions) and now it is working. Actually I do not know why (I did not change code at all), sad story.


0

Try with Enable-SPFeature xxx -Force


-1

Kill the vssphost4.exe process, do an iisreset and try again.


0

Maybe I didn't understand the question... You mean you have list of user or all and you want change their license options (Plans)? For example, if you want to disable "Sites" you need to disable license option - "Sharepoint (Plan 1)" etc. Example on PowerShell (ctreate variable for license options) $myO365SkuOption = New-MsolLicenseOptions -AccountSkuId ...


0

I would scope the feature for site collections and activate it (with powershell) in all sites. If you want it in new site collections you could staple it to a site template or use an event receiver.


0

If I understood your question, you want to add a web part to a page and set it as default. So you can add the web part in this way: # Add PowerShell Snapin $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'} if ($snapin -eq $null) { Add-PSSnapin "Microsoft.SharePoint.Powershell" } # Get the Site URL $SiteUrl = ...


1

So i think, you can use "Feature Stapling / Feature Site Template Association" options. this way you can associate it to a site template. We had the same thing for our SP 2010 deployment for mysite, i am not developer so i dont know insider information. Here are good resource: Feature Stapling / Feature Site Template Association Feature/Site Template ...


0

here we go: Display Name: OpenInClient Title: Open documents in client applications GUID:8a4b8de2-6fd8-41e9-923c-c7c3c00f8295 You can run the following the command to get all features: Get-SPFeature | select ID, DisplayName, Scope SharePoint 2010 : List of Features "ID, DisplayName and Scopes"


1

You can easily find this information using PowerShell Get-SPFeature cmdlet Get-SPFeature -Limit All | Where-Object { $_.DisplayName -like "*open*" } Feature id is 8a4b8de2-6fd8-41e9-923c-c7c3c00f8295 You can find this from blog


0

Here are the examples to get Details of a Feature. If you are not sure of the name, use this snippet. It will get all with name contained in Display Name Get-SPFeature -Limit ALL | Where-Object {$_.DisplayName -like "*YourFeatureName*"} Get all feature installed in site scoped Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "SITE"} Get ID and ...


0

Here is an example of how you can filter the Get-SPFeature Powershell Cmdlet in order to get only those feature you know a part of the feature name. This snippet will list all features, where "Content" is contained in the Display Name of a Feature : Get-SPFeature | where { $_.DisplayName -like "*Content*" } If you want to List a sandboxed feature by name ...


1

Get-SPFeature | ? {$_.DisplayName -eq "YOUR_FEATURE_DISPLAYNAME"}


0

To be more precise.. Again activate the content type feature then delete all list and library which refer to that content type and even from all the recycle bin (Site and Site collection both). Then deactivate feature it will remove content type.



Top 50 recent answers are included