Because we set up Casper in an environment with established Macs already and we needed to active FileVault on all of them, our policy uses a FileVault setup that is set for current/next user. And that works fine for our end users, but Casper also installs a local admin account on their Macs (separate from the JSS management account), and the problem ends up being that after the end user's Mac is encrypted and they're added to FileVault, the local admin account does not show up on the FileVault login screen after a reboot, because the local admin account was never added to FileVault.
So I'm trying to find a way to just set a policy to remotely add the local admin account ("administrator" in this example) to FileVault on all our Macs, to ensure that we can log into them as the admin user from a reboot or cold boot. I haven't had much experience with fdesetup, and the man page says a password will be needed, but none of the fdesetup options includes the option to add a password, so I'm not sure how that's supposed to work.
The local admin account and its password are the same on every Mac, so I can enter them as static values into a script. So given the example below, A) will that work? and B) how do I embed the password into that command to let FileVault enable that user?
fdesetup add -usertoadd administrator