Skip to main content

Disable Printer Sharing on macOS using Intune Policy

A guide to turn off the printer sharing on Mac devices using Microsoft Intune


In this post, I will show you how to disable printer sharing on macOS using Intune policy. Using a DisablePrinterSharing.zsh shell script, you can turn off the macOS printer sharing feature via Microsoft Intune.


When you enable printer sharing on a Mac, it is set up as a print server to accept print jobs from other computers. Apple recommends using a dedicated print server or direct IP printing instead of printer sharing.


An organization recently approached me about stopping Mac users from enabling and using the printer sharing feature. Thankfully, the Mac devices in the enterprise were enrolled in Intune. However, they couldn’t locate a setting to turn off printer sharing for Mac in the settings catalog.


When I did some research, I discovered that there is no option to disable printer sharing for Mac devices in the settings catalog. So, I had to either use a script or a custom template to get this done. Thankfully, Microsoft provides a DisablePrinterSharing.zsh shell script to disable printer sharing, which I used and it worked.


https://flotte-plotter-otter.de/viewtopic.php?t=30007

https://flotte-plotter-otter.de/viewtopic.php?t=17572

https://flotte-plotter-otter.de/viewtopic.php?t=16652

https://flotte-plotter-otter.de/viewtopic.php?t=20937

https://winda.top/viewtopic.php?f=17&t=385381

https://winda.top/viewtopic.php?f=17&t=365189

https://winda.top/viewtopic.php?f=17&t=148750

https://winda.top/viewtopic.php?f=17&t=149723

https://jake2701.net.au/phpBB3/viewtopic.php?t=351

https://jake2701.net.au/phpBB3/viewtopic.php?t=14358

https://jake2701.net.au/phpBB3/viewtopic.php?t=26615

https://jake2701.net.au/phpBB3/viewtopic.php?t=2575

https://tucmas.fi/phpBB/viewtopic.php?t=102758

https://tucmas.fi/phpBB/viewtopic.php?t=104243

https://tucmas.fi/phpBB/viewtopic.php?t=101974

https://tucmas.fi/phpBB/viewtopic.php?p=221588

https://themastergames.com/mybb/thread-neuramap-2020--20971

https://www.2742bbs.com/forum.php?mod=viewthread&tid=4330


Prerequisites


Ensure that the following prerequisites are met when composing shell scripts and assigning them to macOS devices:


  • Devices should be running macOS 12.0 or later.
  • macOS devices must be enrolled and managed by Intune.
  • The Mac devices are connected directly to the Internet. Connection through a proxy is not supported.
  • Shell scripts begin with #! and must be in a valid location, such as #!/bin/sh or #!/usr/bin/env zsh.
  • Command-line interpreters for the applicable shells are installed.


For deploying shell scripts using Intune, refer to my guide on how to run shell scripts on macOS devices in Intune.


Download DisablePrinterSharing.zsh Shell Script


Microsoft provides a shell script called ‘DisablePrinterSharing.zsh‘ that disables printer sharing on Mac devices. Download the latest version of this script from the Intune GitHub repository.


Disable Printer Sharing on macOS using Intune Policy


Follow the below steps to upload the DisablePrinterSharing.zsh shell script to Intune and create a policy that will disable printer sharing on macOS devices.


  • Sign in to Microsoft Intune Admin Center.
  • Navigate to Devices > macOS and select Shell Scripts.
  • Click the Add button to upload the DisablePrinterSharing.zsh script for macOS.


Enter a name for the profile in the Basics tab of the Add Script pane. Add a brief description about the policy.


For instance, you can enter the following information for the Shell script:


https://www.2742bbs.com/forum.php?mod=viewthread&tid=1095

https://www.2742bbs.com/forum.php?mod=viewthread&tid=5223&extra=

https://www.2742bbs.com/forum.php?mod=viewthread&tid=11298&extra=

https://carpentryforums.com/showthread.php?tid=1802

https://www.forum.mybahaibook.com/showthread.php?tid=12288

http://googleseomastermind.com/viewtopic.php?t=21156

http://googleseomastermind.com/viewtopic.php?t=15482

http://googleseomastermind.com/viewtopic.php?t=36365

http://googleseomastermind.com/viewtopic.php?t=16995

https://amodsus.com/threads/transfer-admission-essays.10658/

https://foro.muelendhir.com/showthread.php?tid=24369

https://ekvall.co/showthread.php?tid=85882


  • Name: Turn off printer sharing on Mac
  • Description: Disable printing on a macOS that is managed by Intune
  • Click Next.


On the Script Settings tab, upload the shell script. Click on the Browse icon and select the DisablePrinterSharing.zsh script.


If you’re using a custom script, keep in mind that the macOS shell script file that you upload must be less than 200 KB in size. You can view the script that has been uploaded, but you cannot edit or modify the script at this time.


Comments

Popular posts from this blog

TOP BOOKMARKS

http://happy.prbookmarking.club/story.php?title=activate-windows-10- http://video.prbookmarking.club/story.php?title=norton-setup http://info.prbookmarking.club/story.php?title=office-comsetup%7Center-your-product-key http://codeapp.prbookmarking.club/story.php?title=mcafee-activate http://localseo.prbookmarking.club/story.php?title=activate-net http://seolink.prbookmarking.club/story.php?title=activate-roku http://prbookmarking.club/story.php?title=activate-office-2016-product-key http://paste.highbookmarks.club/story.php?title=activate-windows http://ppcteam.highbookmarks.club/story.php?title=activate-windows-10- http://ppcnet.highbookmarks.club/story.php?title=amc-comactivate-%7C-activate-amc-on-device- http://only.highbookmarks.club/story.php?title=ancestrydna-comactivate- http://map.highbookmarks.club/story.php?title=ancestrydna-comactivate- http://happy.seobookmarking.club/story.php?title=office-setu...

Enable Windows Search Service on Windows Server

This article explains how to enable Windows search service on Windows server. The Windows Search service allows clients that are compatible with the search service to perform fast file searches on a server. When you install the Windows Search service on a server, you can use the Windows File Explorer to quickly search for files and file contents. The Windows Search service must be running to enable quick searching. The search service is also available for Windows 10 and Windows 11 users. This service provides content indexing, property caching, and search results for files, e-mail, and other content. On Windows 10/11, if you’re using Microsoft Visio to lookup for newly installed stencils, the Windows Search service should be running. Otherwise, you’ll encounter the error “Visio cannot provide fast search results because Windows Search is not running or is not configured properly for Visio. Please contact your system administrator.” http://staff.akkail.com/viewtopic.php?id=1727 http://s...

top bookmarks

https://www.crazybacklink.com/post/255694/Ancestrydna-com-activate-Ancestry-DNA-activation-code https://www.ridents.com/post/193120/AMC-com-Activate-Activate-AMC-on-Device-AMC-Activation https://www.linksbeat.com/post/159024/Ancestrydna-com-activate-How-To-Activate-AncestryDNA-Test http://www.ferventing.com/post/176686/office-setup-Enter-product-key http://www.lucidhut.com/post/158360/office-com-setup-Office-Setup-Install-Office-setup http://www.hubcage.com/post/160505/www-office-com-setup https://www.kenplanet.com/post/164530/Activate-Windows-10-8-1-7-Vista-XP-Enter-a-Product-key https://www.shutkey.com/post/139570/Activate-Office-2016 https://www.mbacklinks.com/post/221345/Activate-Office-2016-with-Product-key http://bookbond.dabookmarks.club/story.php?title=activate-office-