I'm running Catalina, and the OS will always turn wifi on at boot. I've been looking into methods to turn wifi power off when I login, and I've created a .plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.username.wifi_off</string>
<key>ProgramArguments</key>
<array>
<string>/Users/username/.wifi_off.sh</string>
</array>
<key>Nice</key>
<integer>1</integer>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/wifi_off.err</string>
<key>StandardOutPath</key>
<string>/tmp/wifi_off.out</string>
</dict>
</plist>
which is placed in ~/Library/LaunchAgents, and the file .wifi_off.sh is:
#!/bin/sh
networksetup -setairportpower en0 off
Is this quickest and/or most efficient way to disable wifi at login? How can this be extended to disable wifi at boot, so that wifi is disconnected at the login screen, before anyone has logged in?

/LaunchDaemons, andsudo launchctl loadit, right? Do I need tolaunchctl unloadthe previous one at all? – irishwristwatch Jan 31 '20 at 07:07sudoat all. And you don't need a separate shell script. You can just put/usr/sbin/networksetup -setairportpower en0 offin your plist as theProgramArguments– TJ Luoma Feb 01 '20 at 03:04date >> /Users/username/Desktop/launchd_datestamp.txtto thecrontabandlogouthook, and they work reliably, however I cannot get theLaunchDaemonto write a file anywhere on the drive. Perhaps it is properly writing the file but it is not persistent? I have tried/tmp/Users/username/...and elsewhere. Any suggestions? – irishwristwatch Feb 10 '20 at 01:42/Library/LaunchDaemons/and have to be owned byroot:wheel(sudo chown root:wheel /Library/LaunchDaemons/com.your.launchdfile.here.plist) If that's already set I'm not sure why it isn't working try adding StandardErrorPath and StandardOutPath to the plist – TJ Luoma Feb 10 '20 at 02:53ultimate goal, and then decided to remove theultimate goalfrom your question entirely. Do you think that's helpful? I'm not saying it's un-helpful - I'm just curious. From where I sit, it does look like a moving target though. – Seamus Jun 05 '20 at 21:43