Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mveras1972

macrumors newbie
Original poster
May 6, 2015
6
0
Is there a way to run some Terminal commands automatically upon MacOS Monterey login or startup? I need to run three commands line the one listed below. They need to run as administrator or root without causing a password prompt:
sudo kextload -b org.virtualbox.kext.VBoxDrv

I run Virtual Box (VB) and upon upgrading to Monterey, the latest VB does not run the virtual machines unless I manually start those kexts. So I am looking for a way to run the commands automatically upon MacOS startup/login.
 
Hi! Have you tried Automator (it's a macOS built in tool)? It might be handy, though i'm not sure you can skip password prompts this way
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.