Sunday, February 23, 2014

Get list of all users in a site collection and get all the web parts in a page

We can get the list of all users and web parts in a page by entering the URL of the site with addition of text. We can get all the users by appending “_layouts/people.aspx?membershipGroupId=0” text. We can get all the users in a Site collection as shown the image below. We can have settings for the list of the users.


We can see the Actions for the users as shown the image below.


We can the list of all the web parts in a page by appending “?contents=1” text to Url of the site. It will navigate to SharePoint web parts maintenance page. We can have option to close the web parts, reset and delete the web parts from the page.


Saturday, February 22, 2014

Change SharePoint top left text using powershell commands

In SharePoint 2013, UI wise a lot of changes are placed. We can have top links, includes Sky drives, news feed, Sites etc in right side and SharePoint text in left side. We can change the all the text by customizing the link details.

We can change the left side text by using powershell commands. To change the text, Open SharePoint management console with admin privileges. Write command get web application by using Get-SPWebApplication command

$webApplication = Get-SPWebApplication "Web Application URL"

Get SuiteBarBrandingElementHtml and update the text by following command.

$webApp.SuiteBarBrandingElementHtml = "Suresh Pydi Blog"
$webApp.Update()




Once we update the control text we can it as shown below.


Tuesday, February 18, 2014

Error while opening files in SharePoint - Unable to open office files in SharePoint Office client

While working a SharePoint having heavy load got an issue for few users while opening documents/excel sheets/ PowerPoint in office client applications. Files that are stored in SharePoint, while opening files in client application got the following error:

Could not open "http://Servername/Documents/Doc". 

After digging into the issue, found that SharePoint Workspace temp files are stored in Office Cache location which is used for synchronizing as stored in the location below,

"C:\Users\login_user_name\AppData\Local\Microsoft\Office\14.0\OfficeFileCache"

By cleaning the temp files we can fix this issue.

Friday, February 14, 2014

SharePoint 2013 InfoPath form error - “A query to retrieve for data cannot be completed because this action would violate cross-domain restrictions”

While working with SharePoint 2013 InfoPath forms in cross domain, I got an error saying that, “A query to retrieve for data cannot be completed because this action would violate cross-domain restrictions”. 


We can get this error, due to cross page submissions. We can fix this issue by allowing cross domain access for InfoPath service. We can do that by the steps below,

Navigate to SharePoint Central Administration, General Application Settings page and click on Configure InfoPath Forms services link in InfoPath Form Services section.



In the Settings page, Cross-Domain Access for user For Templates section Check “Allow cross-domain data access for user form templates that use connection settings in a data connection file” and click on Ok to Save the settings.


Tuesday, February 11, 2014

Disable cursor animations in office 2013

While using office 2013, we can see different animations in excel and word. We can see smooth animations that cursor moving different cells in excel, entering text in word and transition animations when moving the calendar and mail in outlook. We can disable the animations easily by using following steps,

Right click on My Computer and select properties. Select on Advanced system settings, left pane in System window.



click on Settings buttons under performance section.



In the Performance Options window, un select custom and select Animate controls and elements inside windows option to disable animations


Sunday, February 9, 2014

Create a crawl rule in SharePoint search

We can add a crawl rule in SharePoint search to include or remove the content in a specific path while crawling the content. We have to provide the credentials to crawl the data. We can test/delete/reorder the content by using crawl rules.

To create or edit crawl rule we have to follow the steps below,
Navigate Application management in SharePoint central Administration and click on manage Service Applications link.



Select Search service application to add the crawl rule. We'll navigate to Search service application. In Search Service Administration page, click on Crawl Rules in Crawling section.


To create new crawl rule click on New Crawl Rule.


In Add Crawl Rule page, Path section enter path of the rule. We can use regular expressions in the path box. To use regular expressions select "Use regular expression syntax for matching this rule
In Crawl Configuration section, to exclude all the items in the specified path select Exclude all items in this path. Select Exclude complex URLs to exclude URLs that containing parameters use? notation. To include all items in the path to be crawled select Include all items in this path option.
In Specify Authentication section, Select Use the default content access account to use default content access account. To specify different credentials, select Specify a different content access account. Enter Account name in and Password. To prevent basic authentication select Do not allow Basic Authentication checkbox. To Use certificate for authentication, select Specify from credentials and expand certificate and select certificate. to use form credentials for authentication select specify form credentials and enter form URL in Form URL box, enter credentials. To use Cookies, select Use cookie for crawling. select Obtain cookie from a URL. Select Anonymous access to allow anonymous access. Click on ok to save settings.


Saturday, February 8, 2014

Adding a service to Default Application Proxy Group in SharePoint using PowerShell

When creating a Service application to a SharePoint server, we need to attach that service to Default Application proxy. We can attach the service application using following Power Shell commands,
Get the Service application proxy by using Get-SPServiceApplicationProxy command

$ServiceAppProxy=  Get-SPServiceApplicationProxy | where { $_.Name -eq “Name of the service Application” }

Get default proxy group by using Get-SPServiceApplicationProxyGroup command.

$serviceProxyGroup = Get-SPServiceApplicationProxyGroup | where { $_.FriendlyName -eq “default” }

Add service application proxy group to default proxy group using Add-SPServiceApplicationProxyGroupMember command.

Add-SPServiceApplicationProxyGroupMember -Identity $serviceProxyGroup -Member $serviceProxyGroup

By combining all commands we can see the script as

$ServiceAppProxy=  Get-SPServiceApplicationProxy | where { $_.Name -eq “Name of the service Application” }                              
$serviceProxyGroup = Get-SPServiceApplicationProxyGroup | where { $_.FriendlyName -eq “default” }
 Add-SPServiceApplicationProxyGroupMember -Identity $serviceProxyGroup -Member $serviceProxyGroup