Hello,
I am new to the Mac and Jamf world and am in need of some advice. I need to deploy a script via Policy to change the "DisconnectOnLogout" value for each NIC on a device to "NO". The below AppleScript works but it prompts for credentials. How could I change this so that it runs silently?
Any assistance would be greatly appreciated!
activate application "Terminal"
tell application "System Events" to keystroke "sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 prefs DisconnectOnLogout=NO"
tell application "System Events" to keystroke return
delay 2
tell application "System Events" to keystroke "sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en3 prefs DisconnectOnLogout=NO"
tell application "System Events" to keystroke return
delay 2
tell application "Terminal"
quit
end tell