So it was decided at our school to do Drive for desktop as everyone's backup solution. However once everyone installed it, our Wifi performance crashed because Drive was taking up all of our bandwidth. After speaking with our Google agent, they suggested running the following commands in terminal in order to throttle the amount of bandwidth Drive for Desktop uses.
defaults write com.google.drivefs.settings BandwidthRxKBPS 100
defaults write com.google.drivefs.settings BandwidthTxKBPS 100.
I have confirmed that the commands work when entered in terminal, but I can't get the policy to execute properly on the scoped machine. here is my script:
#!/bin/bash
defaults write com.google.drivefs.settings BandwidthRxKBPS 100
defaults write com.google.drivefs.settings BandwidthTxKBPS 100
exit 0
it runs on the machine, but nothing changes or happens with the preference file, and jamf shows no details about why the script didn't execute when I look at the policy logs.
I should mention that I am filling in for the sysadmin who is out sick at my school and I don't really have that much experience with deploying policies and even less experience in scripting. Please be gentle.