Thursday, July 16, 2015

We found some suggestions for you on SharePoint

User Profile My Site Suggestions Email Job


These email come from the User Profile Service - User Profile My Site Suggestions Email Job - Sends out emails with colleague and keyword suggestions to people who don’t update their profiles often, prompting them to update their profiles, scheduled for every 15th of the month, by default.

You can disable the timer job responsible for sending mail for My Site Suggestions Email job.
  1. From Central Administration, click Monitoring
  2. Under the Timer Jobs heading, click Review job definitions
  3. Scroll down (or click through pages) until you find a job called User Profile Service - User Profile My Site Suggestions Email 


Email contents:

We found some suggestions for you on SharePoint

You may know
Smith, Laura
Senior Application Analyst
IT HR BUSINESS SYSTEMS
Thomas, Cynthia
HR Manager
HR AND PAYROLL
Williams, Mike
HR Analyst
HR- PAYROLL

You may be interested in·  Team Site
·  Safety Site
·  Site Admin
·  Web Parts
·  Site Admin Training
·  Compdiscipline Field
·  W2
·  ERP

Add any of these suggestions to your interests to get updates in your newsfeed. Add them to your ask me about to share your expertise.

If you don't want to see emails like this, you can change your email settings.
Learn about opting out of suggestions and related topics in the Manage the information you share through your My Site article.Learn about opting out of suggestions and related topics in the Manage the information you share through your My Site article.

Exclude SharePoint 2013 Site Collection(s) from External Indexing (Google, Yahoo, etc) Host Named Site Collections (HNSC)

Many of public sites developed in SharePoint that are configured to allow anonymous access with restriction that should not be indexed by any search engines. We can prevent that by placing robots.txt file in the root of our SharePoint sites in question. (If you have Host Named Site Collections, you will want to add the robots.txt file at the root of each HNSC, as these are treated as separate sites (not just web app root).
There are multiple ways to perform this, one of which is the new SEO site collection feature in SharePoint 2013: http://blog.mastykarz.nl/search-engine-optimization-sharepoint-2013/. This method requires activating the Search Engine Optimization Feature on each site collection (Publish site collections already have this feature enabled), which can be daunting and/or accomplished through powershell as well.
Alternatively, you can perform this manually with the following powershell:
Create a Robots.txt file and enter the following in that file to exclude the whole site and its contents:
User-Agent: *
Disallow: /
Optionally, you may elect to exclude portions of the site from being indexed, if so, use the following format to achieve:
User-Agent: *
Disallow: /_Layouts/
Disallow: /SiteAssets/
Disallow: /Lists/
Disallow: /_catalogs/
Disallow: /WorkflowTasks/
After adding the content to exclude, save the robots.txt file and run the following powershell as administrator:
$file = [system.io.file]::ReadAllBytes("<robots.txt full path>");                                         
$siteToAddFile = Get-SPSite "<Site to add the robots.txt>";
$siteToAddFile.RootWeb.Files.Add("robots.txt", $file, $true);




Add Explicit Managed path to the robots.txt file
  1. Open Central Admin and navigate to Application Management > Define Managed Paths
  2. Select your specific web application from the drop down
  3. Add a new path for /robots.txt
  4. Switch the type to Explicit inclusion
  5. Click OK
  6. Run IISREST