Use Power shell script to turn off Mobile view of a SharePoint site
Run below mentioned script in your SharePoint server(enter your application URL in the script)
$webApp = Get-SPWebApplication http://<SharePoint webapplication URL>
$configMod = New-Object
Microsoft.SharePoint.Administration.SPWebConfigModification
$configMod.Path = "configuration/system.web"
$configMod.Name = "browserCaps"
$configMod.Sequence = 0
$configMod.Type = 0
$configMod.Value = "<browserCaps>
</browserCaps>"
$configMod1 = New-Object
Microsoft.SharePoint.Administration.SPWebConfigModification
$configMod1.Path =
"configuration/system.web/browserCaps"
$configMod1.Name = "result"
$configMod1.Sequence = 0
$configMod1.Type = 0
$configMod1.Value = "<result
type=""System.Web.Mobile.MobileCapabilities, System.Web.Mobile,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a""/><filter>isMobileDevice=false</filter>"
$webApp.WebConfigModifications.Add($configMod)
$webApp.WebConfigModifications.Add($configMod1)
$webapp.Update()
$webapp.Parent.ApplyWebConfigModifications()
$webapp.WebConfigModifications.Clear()
No comments:
Post a Comment