![]() If ] thenĮcho "User successfully enabled $appName"Įcho "$appName is still disabled. ![]() SecondCheck=$(/usr/bin/sqlite3 "/Library/Application Support//TCC.db" 'SELECT service, client FROM access WHERE allowed = '0'') Exiting."įi Wait 60 seconds and report if screen recording has been enabled InitialPrompt=$( /usr/bin/osascript -e "display dialog "$initialMessage" with title "$appName Screen Sharing" with icon file POSIX file "$appImage" buttons giving up after 30" )Įcho "Button OK not selected. TccSearchPair=$4 Variables for dialog This was the original appName variable appName="Slack" This is the new one to get the 5th variable from JamfĪppName=$5 App icon location This was the original appName variable appImage="/Applications/Slack.app/Contents/Resources/electron.icns" This is the new one to get the 6th variable from Jamf If the TCC option is disabled it will prompt the user to enable it Shaquir Tannis 5-26-2020 Select the TCC value pair from the system's TCC.db To get a list of all the system TCC values on your machine, you can run the command: /usr/bin/sqlite3 "/Library/Application Support//TCC.db" 'SELECT * FROM access ' This was the original tccSearchPair variable tccSearchPair="kTCCServiceScreenCapture|" This is the new one to get the 4th variable from Jamf My script looks like this: !/bin/bash This script is part of a workflow to ensure an Application's Screen Recording permission has been set to enabled in the TCC Security and Privacy. Script result: Error: unable to open database "/Library/Application Support//TCC.db": unable to open database fileĦ2:75: execution error: An error of type -4960 has occurred. Hi, I'm also trying to solve the screen recording issue for Team Viewer and Manage Engine Desktop Central remote control but having issues with the database command. Script: Prompt_User_to_Enable_ScreenRecording_TCC.shįeel free to message me with any questions or suggestions. ![]() Name: Prompt User to enable AppName ScreenSharing Camera and Microphone)ĭisabledValues=$(/usr/bin/sqlite3 "/Library/Application Support//TCC.db" 'SELECT service, client FROM access WHERE allowed = '0'')Īnd Disabled System TCC Values like kTCCServiceScreenCapture| #Report Machine's disabled TCC values (Note, this does not include user level TCC results, i.e. #Extension Attribute reports disabled system level TCC values Script: Disabled_System_TCC_Values_EA.sh #!/bin/bash If the TCC option is disabled, it will open System Preferences > Security & Privacy > Screen Recording and prompt the user to enable the App Solution: I created this Script to check if an Application's Screen Recording permission has been set to enabled in the TCC Security and Privacy. You can check out how I similarly addressed the Camera and Microphone issue here: Automatically Reset Teams Camera and Microphone for User To manage this limitation set by Apple, I have created this workflow to prompt users to enable the Screen Recording option for the required App (Currently set to Slack, but can be easily modified). ![]() Background: As many of you may be aware, the Screen Recording option can only be enable by a physical user on a Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |