Posts

Showing posts from 2014

Export all user permissions from a SharePoint 2010 Site to CSV

One of the requirement came to me to list down or export all users available on the site to .CSV format in a particular site collection with the properties like Group name, Permission Level, User id, Url, Item type (List, site, library) etc.. So below is the script to achieve the same.  Copy the code & save it in notepad with .ps1 extension & then run with powershell. (Dont forget to mention the url of site collection in the script) function Get-SPUserEffectivePermissions(     [object[]]$users,     [Microsoft.SharePoint.SPSecurableObject]$InputObject) {         begin { }     process {         $so = $InputObject         if ($so -eq $null) { $so = $_ }                 if ($so -isnot [Microsoft.SharePoint.SPSecurableObject]) {     ...

How to remove orphaned features

Image
How to remove orphaned features   Get - SPFeature | ? { $_ . Scope - eq $null } This will give you a complete list of orphaned features.   $feature = Get - SPFeature | ? { $_ . DisplayName - eq "My_Orphane_Feature" } $feature . Delete () You can even use this code to clean all the orphaned features: Get - SPFeature | ? { ! $_ . Scope } | % { $_ . Delete () }

Sharepoint 2010 SPUpdatedConcurrencyException Fix

Problems when installing the June_CU_2013, December 2013 CU (KB) for SharePoint Server. After installing the CU, and running the online command to update the second server in the farm. You may get this error just after step 2: === An exception of type Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException was thrown. Additional exception information: An update conflict has occurred, and you must re-try this action. The object SPUpgradeSession Name=Upgrade -20110924-194525-15 was updated by DOMAIN\ACCOUNT, in the PSCONFIG (7240) process, on machine SERVER. View the tracing log for more information about the conflict. Total number of configuration settings run: 3 Total number of successful configuration settings: 2 Total number of unsuccessful configuration settings: 1 Successfully stopped the configuration of SharePoint Products. Configuration of SharePoint Products failed. Configuration must be performed before you use SharePoint Products. For furt...

SharePoint 2010: Default Site Templates

What is a SharePoint site template? SharePoint site templates are pre-built definitions designed around a particular business need. You can use these templates as they are to create your own SharePoint site and then customize the site as much as you like. SharePoint 2010 comes bundled with a lot of default site templates, like Team Site, Blog site, and Group Work Site as shown here. In addition to the default templates, you can create your own site template based on a site you’ve created and customized in SharePoint. When you save your site as a template, you create a Web Solution Package, or WSP. A WSP is a CAB file with the solution manifest. The solution you create gets stored in the Solution Gallery for the SharePoint site collection. From there, you can download a copy of the solution or activate it on the server. When you save your SharePoint site as a template, you’re saving the overall framework of the site – its lists and libraries, views and forms, and workflows. In ad...

Disable Loopbackcheck using PowerShell

Disable Loopback Check Powershell To disable Loopback check run the following cmd on the (each) SharePoint server from a SharePoint PowerShell prompt (run as administrator): New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword

CORRECT INSTALLATION ORDER FOR SHAREPOINT SERVER 2010, LANGUAGE PACKS AND OFFICE WEB APPS

Image
In order to properly install these items, you must do things in the following order: SharePoint 2010 RTM + SP1 (slipstreamed) Configure Farm using PowerShell Office Web Apps RTM + SP1 (slipstreamed) Run SharePoint Config Wizard (PSConfig) on all severs SharePoint 2010 Server Language Pack RTM + SP1 (slipstreamed) Run SharePoint Config Wizard (PSConfig) on all servers Install OCT 2011 CU (or current recommended CU) Run SharePoint Config Wizard (PSConfig) on all servers (if you get errors here, so additional note below) Installing in any other order may cause issues and some functionality to not work properly. Additional Note: Sometimes after installing CU’s I’ve noticed errors when trying to run the SharePoint Products Configuration Wizard (PSConfig), like in the screenshot below. In my case the PSConfig wizard was complaining about missing language packs and the CU files, which I could confirm had been installed properly and there before installing the CU. To ...

PowerShell Script to Check and Generate Report on Access Rights for a Specific User:

Requirement: To ensure security, generate permissions report on all locations like (sites, lists, etc.) where a specific user has permissions. When people moving from one role to another, Its necessary to audit their permissions on sites and lists where user has access rights. But unfortunately, There is no out of the box ways to find all sites and lists where a particular user has been granted access in SharePoint with out using third party tools. Luckily, We've PowerShell! Lets find all SharePoint sites and lists where a particular user has access rights. PowerShell Script to Check and Generate Report on Access Rights for a Specific User: With this script, you can analyze and track the security effectively check what permissions on an account has been granted on each all places in SharePoint. This PowerShell script scans these areas to to retrieve a specific user's access rights: •Farm Administrator's Group •Central Administration Web Application Polici...