C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Disable Mobile Browser View Across Sites In SharePoint Server 2016
WhatsApp
Priyaranjan K S
8y
8.7
k
0
1
25
Blog
Device channels were introduced in SharePoint 2013. Device channel allows us to map the created device channel to a device, based on its user agent and target custom master pages, specifically to the device. Thus, we can have one master page for iPhone while a different one for Blackberry and so on.
However, when we try to specify a master page for the device channel, we will get the below warning if Mobile Browser view is not disabled.
We can disable Mobile Browser View feature across the sites in a site collection by running the below script in SharePoint 2016 Management Shell.
$
SPWebApplication
=
Get
- SPWebApplication - Identity "http://SharePoint2016"
$
SPSiteCollection
= $SPWebApplication | Get - SPSite - limit all
foreach($SPSite in $SPSiteCollection) {
$
SPWebs
= $SPSite | Get - SPweb - limit all
foreach($SPWeb in $SPWebs) {
Disable - SPFeature - Identity "d95c97f3-e528-4da2-ae9f-32b3535fbb59" - url $SPWeb.URL - Confirm: $False - ErrorAction SilentlyContinue
}
}
Heading over to the Features section, we can see that the Mobile Browser View has been disabled.
Now, we can successfully specify the master page for device channel, as shown below.
Summary
Thus, we saw how to disable Mobile Browser View for sites across the site collection in SharePoint Server 216
Mobile Browser View
SharePoint
SharePoint Server 2016
Sites
People also reading
Membership not found