Hi all,
I was wondering if someone could shed some light or recommend an alternative method to execute the below. We have a number of Mac users who access network shares, and we are experiencing performance issues when being accessed by Adobe applications. I found the following article: https://support.apple.com/en-gb/HT208209 which will hopefully will resolve the issue. I have run the actions described in the article and it works if directly entered into terminal from a users account, im now stuck trying to deploy via jamf to the whole estate.
There are 2 parts to the fix, part 1 is to run the command in terminal from the users account to disable reading the .DS_store files created by mac's, the second part which creates a nsmb.conf file. I was able to successfully create the nsmb.conf and deploy to the correct folder directory using the jamf tools. however i am having difficulty executing the first part of the process. using the snapshot tool i was able to see that the file is created and added to the users library preferences rather then the master preferences folder.
I tweak the script to the below to write the com.apple.desktopservices.plist to the users folder, however when i use read command in terminal (defaults read com.apple.desktopservices DSDontWriteNetworkStores) to confirm it executed i get an error to say it domain/pair doesnt exist. If i try to edit the .plist it says incorrect permissions, all other plists in the users folder can be opened, im not sure if this is why its not executing?
My Script:
!/bin/sh
user=ls -l /dev/console | cut -d " " -f 4
defaults write /Users/$user/library/Preferences/com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
...Thanks in advance for any input