![]() ![]() PlistContents="$(defaults read /Users/"$loggedInUser"/Library/Preferences/)"ĪutoUpdateSetting="$(defaults read /Users/"$loggedInUser"/Library/Preferences/ AutoUpdateState)" Helped out, the script I have (which seems to be working now) is: #!/bin/bash -v And when I open Citrix, it's still set to automatically check for updates.Īny ideas about what I might be doing wrong? I also tried specifying the full path of the PLIST (so defaults write /Users/"$loggedInUser"/Library/Preferences/) for the "defaults read" and "defaults write" commands and it seemed to work, though when I run "defaults read " in terminal (which used to come up with the contents of that file) it now just gives the "Domain does not exist" error message. I'm able to get through the part where it confirms the PLIST exists, but then when it tries to define the plistContents variable it says "Domain does not exist." Which is frustrating since I confirmed that it existed before running that command (and it definitely does exist). If I just run this script on a computer it works fine, but I'm running into issues doing it through JAMF. If ] #autoupdatesetting is not set to Disabledĭefaults write AutoUpdateState -string Disabled PlistContents="$(defaults read )"ĪutoUpdateSetting="$(defaults read AutoUpdateState)" If Įcho "Plist not found, Citrix not installed or in error." #confirm plist exists where this setting can be entered LoggedInUser="$(/bin/ls -la /dev/console | /usr/bin/cut -d " " -f 4)"Įcho "labuser not logged in, please re-run later" I'm trying to build a script to change this setting, and I'm close but I'm running into some issues. I've noticed after installing Citrix Receiver the default setting is to have it automatically check for updates, and the popups to update are really persistent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |