List view not showing all items using filter

In your SharePoint list, you have column where you want to filter content from in a list view. You create a new view and try to filter content from this column but nothing appear. Even you add column to view. However, this column show content in all items and you can sort the content and filter content using metadata navigation. You also make sure that your filter is defined properly. First this is to do is to try to see the query in SharePoint designer in list view but that doesn’t help.

The only solution is to create a new column with new name, move all content to this column, then recreate the buggy column, and move content back. Then delete the temporary column.

Only problem is when you move content your item get new version and may be workflow also run. The safe way is to disableeventfiring and disable updating the item. In addition, just preform an update to these columns. Here is PowerShell script help you move content from one column to another without having item update. When content is moved, change the column names and move content back.

So you run this script twice. Once when you move form buggy column second you move from temporary column to original column. Make sure you change column names.

Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue

$myAss = [Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”);

$type = $myAss.GetType(“Microsoft.SharePoint.SPEventManager”);

$prop = $type.GetProperty([string]”EventFiringDisabled”,[System.Reflection.BindingFlags] ([System.Reflection.BindingFlags]::NonPublic -bor [System.Reflection.BindingFlags]::Static));

$prop.SetValue($null, $true, $null);

$listName = “ListName

$web = Get-SPWeb http://sitecollection

$list = $web.Lists[$listName]

$items = $list.items

foreach($item in $items) { $user = $item[“Lastname“]

$item[“Lastname2“] = $user

$item.SystemUpdate($false)

$prop.SetValue($null, $false, $null);

}

Good luck.

Start SharePoint Central Admin Service in Powershell

The name speaks about itself, SharePoint Central Admin services. That is the service which run Central admin up and running. May be to have some fun you have stopped this service and now want to start it again. And its not for fun you want to start but you must start this service to have Central admin up and running as usual.

If the service is not running that means you must use Powershell to start the service again. So, start the management shell

Put this powershell script to see the actual services:

Get-SPServiceInstance

Here you see the service is stopped.


Now Use this script to start the service while its not easy to start the service using the Guid:

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’} |  Start-SPServiceInstance –Confirm

Confirm you action and start the SharePoint 2010 Central Administration again from the start menu. You see CA is working again.

SharePoint 2010 Claims to Classic and Classic to Claims

If you in hurry have chosen wrong authentication for your web application and want to change. In Central administration, there is no any option to change the authentication provider. We must use PowerShell command to change these settings. Thanks god for PowerShell.

From Classic to claims:

$webApp = Get-SPWebApplication “http://webapplication”
$webApp.UseClaimsAuthentication = $True;
$webApp.Update()

From Claims to Classic:

$webApp = Get-SPWebApplication “http://webapplication”
$webApp.UseClaimsAuthentication = $False;
$webApp.Update()

 

We also can use 1 or 0 instead of $True and $False.

Default Provider for Central Admin

Have you ever tried to change default authentication provider for Central Administration in web.config file? If your answer is no, I would say “Try that”. Well if you have already been in web-config without my recommendation you must have been some flashback why you did customization on that is IIS.

If your rolemanager or Membershipprovider have some text mistake in web.config, you will get some error in browser indicating some errors without any notification when you visit central administration.

Here is the solution you can use to fix that problem if you just with my recommendation have tried to play with authentication of Central administration to may be Form Based Authentication.

Open IIS Manager, click on the site Central Administration, right click and choose explore, open web.config file in notepad, and add flowing codes.

<roleManager defaultProvider=”AspNetWindowsTokenRoleProvider” enabled=”true” >

Good luck and be away from web.config fileJ

Shallow Copy in SharePoint Server 2010 SP1

You might have heard about the “Shallow Copy” in SharePoint 2010 SP1. What does actually “Shallow Copy” does. To find it out I just used went through the description of the SP1 where I found this information.

Remote Backup Systems (RBS) and shallow copy can decrease downtime and increase efficiency by moving pointers to databases instead of moving databases.

Read further for  more information.  Continue reading