I have an external hard drive for my backups, but to better protect it against ransomware, I want to have a scheduled script after the backup finishes, that dismounts the drive, and then a similar one to mount the drive just before the backup initiates.
I've tried some PowerShell scripts with DriveEject but no luck. Any ideas?