Wednesday, April 2, 2014

Get SharePoint SubSite List items via PowerShell

If you want to get all items in a specific list in Subsite, PowerShell can help:

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

$spWeb = Get-SPweb "http://sp/site"

$subsite = $spweb.Webs | where {$_.title -eq "SubSiteName"}
$lists = $subSite.Lists
$mylist = $lists | where {$_.title -eq "ListName"}
$mylist.GetItems() | select name


Tuesday, April 1, 2014

Sorry, We couldn't find your file. is it possible it was moved, renamed or deleted? SharePoint 2013,SkyDrive,OneDrive,Office Web Apps


I was trying to Edit a document -which hosted on SharePoint- in client side Word application , but I faced this error "Sorry, We couldn't find your file. is it possible it was moved, renamed or deleted? " followed by half of the URL.




After alot of trails I found the best ways to solve this issue, as it was not clear in most of the websites.

First:
Restart-Service AppFabricCachingService

Second:
You have to check the client side, as my problem was there, my Microsoft Office edition didn't allow me to open the file, Try to Repair it , or better to UnInstall then Install it again


Last:
Use the following PowerShell in your environment:


$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()


Also you can find more in the following links:
http://blog.sharepointsite.co.uk/2014/01/office-web-app-ran-into-problem-opening.html

http://social.technet.microsoft.com/Forums/sharepoint/en-US/31c6d108-e94d-41a1-99a9-570b3880eb33/sharepoint-2010-and-office-2013-cant-edit-documents

http://social.technet.microsoft.com/Forums/sharepoint/en-US/9662d5cf-0381-4c70-89cb-301ec1ea4439/sorry-we-couldnt-fine-your-file-is-it-possible-it-was-moved-renamed-or-deleted-skydrive?forum=sharepointgeneral