Posts

Showing posts from June, 2015

SharePoint 2010 _layouts/clientbin/mediaplayer.xap showing in Top Pages

Recently i encountered that one of  SharePoint resource is in 2nd highest accessed item from one of my Site Collection. It was _layouts/clientbin/mediaplayer.xap file and it was very new to me that where MediaPlayer.xap file is actually being used. Never seen this before in any of my SharePoint farm. Thanks to Microsoft's Savoeurn Va for replying to a user here . Its actually get called for SilverLight calls. Some of your page in your farm might be using some SilverLight plugin and that's calling _layouts/clientbin/mediaplayer.xap file. For confirmation, go to that target page, disable SilverLight in your IE browser, refresh the page and test it. If it threw an error or warning then your page is using some sort of  SilverLight plugins. Note: In my case it was Content Query Webpart which was calling Silverlight. I found this very nice article below on how to disable this Silverlight call. http://toddbaginski.com/blog/controlling-the-silverlight-media-player-in-a-co

Set "Request Access" Email Address using PowerShell in SharePoint 2010

Using below code, you can set "Request Access" Email ID in SharePoint. It worked for SharePoint 2010 (could be working for SharePoint 2013). $path = "C:\Logs.txt" $contentWebAppServices = (Get-SPFarm).services | ? {$_.typename -eq "Microsoft SharePoint Foundation Web Application"} # Get All Web Application foreach($webApp in $contentWebAppServices.WebApplications) { add-content -Path $path -Value $webApp.name -Force if($webApp.name -ne "") {     foreach ($SPsite in $webApp.Sites)     {     add-content -Path $path -Value $SPsite.URL -Force        # get the collection of webs        foreach($SPweb in $SPsite.AllWebs)         {     add-content -Path $path -Value    $SPweb.URL -Force               # if a site inherits permissions, then the Access request mail setting also will be inherited         try             {                 if (!$SPweb.HasUniquePerm)                   {                   add-content -Path $path -Value "Inheriting from

Disable "Request Access" in SharePoint using PowerShell

Hi There, Using below code, you can disable or hide or remove "Request Access" option from SharePoint. It worked for SharePoint 2010 (could be working for SharePoint 2013). $contentWebAppServices = (Get-SPFarm).services | ? {$_.typename -eq "Microsoft SharePoint Foundation Web Application"} # Get All Web Application foreach($webApp in $contentWebAppServices.WebApplications) { Write-Host $webApp.name      foreach ($SPsite in $webApp.Sites)     {        # get the collection of webs        foreach($SPweb in $SPsite.AllWebs)         {               # if a site inherits permissions, then the Access request mail setting also will be inherited              if (!$SPweb.HasUniquePerm)                {                   Write-Host "Inheriting from Parent site"                }              elseif($SPweb.RequestAccessEnabled)            {               $SPweb.RequestAccessEmail =""               $SPweb.Update()            }         }     } } Hope it