SharePoint 2013: Claims Encoding – Also Valuable for SharePoint 2010 (i:0#.w|domain\username)

http://social.technet.microsoft.com/wiki/contents/articles/13921.sharepoint-2013-claims-encoding-also-valuable-for-sharepoint-2010.aspx

Advertisements

Updating Group or Person field in a SharePoint 2013 custom list using a Powershell script

The PS script below loops through an SP 2013 custom list and update the Person or Group field.

—————————-

#Updating the SP2013 list item on the Group field.
Add-PSSnapin Microsoft.SharePoint.PowerShell

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") 
$site = new-object Microsoft.SharePoint.SPSite("<Site URL>") 
$relweburl = '/<relative web url>'
$web = $site.openweb($relweburl)
$list=$web.Lists["<list name>"]
$listItems = $list.Items
$listItemsTotal = $listItems.Count

 if($listItemsTotal -ne 0)
  {
    Write-Host("Number of Items found : "+$listItemsTotal )
    foreach($item in $listItems)
     { 
      $currentTitle = $item["<field name>"];
      $newApprover = $web.EnsureUser("<new username>")
      Write-Host("Current approver : "+$currentTitle )
 
       if($currentTitle -like "*<comparing username value>*") 
        { 
           Write-Host("Updated, "+$currentTitle+" with "+$newApprover)
           $item["Approver"] = $newApprover;
           $item.Update()
        } 
     }
  }
else
 {
  Write-Host("Nothing Found")
 }

In the script above, update the following placeholders:

  1. Site URL
  2. Relative Web URL
  3. List Name
  4. Field Name
  5. New Username
  6. Comparing username value

After editing the script with your values, save the script using (.ps1) extension and type the following line of code in Powershell console to execute the script.

* <path>\scriptname.ps1 

Hit enter to execute.

NB: Execute the script in your dev or test environment first before you execute it in your prod environment.

Opening PDF doucments in SharePoint

http://stevemannspath.blogspot.com/2013/04/sharepoint-2013-pdf-support-and.html

Step 1- Please reset your browser

http://ccm.net/faq/6361-reset-your-browser-restore-your-browser-to-default-settings

Step2 – Acrobat Reader Settings

https://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

Step3 – Enable Browser PDF Add-ons

https://helpx.adobe.com/acrobat/using/display-pdf-in-browser.html