Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
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.6
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
Sites
SharePoint Server 2016
Up Next
Backup And Restore Site Collection In SharePoint Server 2016
Ebook Download
View all
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS
Read by 4.9k people
Download Now!
Learn
View all
Membership not found