Tags
Active_Directory Adobe AFP ARD Background Boot Bootcamp Chrome Command Default User DEP Deployment Dual_Boot El Capitan External boot GIS Group_Policy High Sierra Image Installer JAMF KACE Keyserver Kiosk Lion Login Macintosh Matlab Mavericks Mt Lion Novell Packaging Reference Security Silent Installer SIP Sleep Software Spss Startup User_Profile VectorWorks Windows Windows 10 Windows to GoContact Me
Contact me by email ... [email protected]Login
Tag Archives: Script
MacOS – Script – Getting the logged in user
loggedInUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' ) For more details see: https://scriptingosx.com/2019/09/get-current-user-in-shell-scripts-on-macos/