Friday, August 28, 2020

Creating a MacOS administrator account when none exists

An easy and safe way create an administrator account when non-exists on MacOS is to boot into single user mode and mount the OS drive. We actually want to delete a file called the .AppleSetupDone file located in /var/db. This will cause the user wizard to run again where you can create any kind of account again after you exit or reboot out of single user mode including an administrator account.

Here are the steps:

  1. Turn on your mac pressing the "command ⌘" key + S. This will boot you into Single User Mode
  2. Mount the drive by typing /sbin/mount -uw /
  3. type rm /var/db/.AppleSetupDone
  4. type exit or reboot and it will run the account setup wizard and setup the administrator account

Automating SQL Data Dump and SFTP File Transfer with Powershell and WinSCP on Windows

We work with a third party that takes care of a few systems for us that we automated and to make that work we had to script an automated pro...