New
#51
You can create a PowerShell script to do all of that over a pre-installation environment, but definitely not in a single executable line, though it would not take many if you were to use Macrium's image mounting command switches and then PowerShell's default .NET object cmdlets for the rest. Using Try/Catch/Finally blocks for stuff like this is highly recommended.
I use Macrium Reflect Server Plus 7.0 and Home. To automate everything like you want, you will have to set up both global variables and dynamic parameters in order for the script to initiate functions regardless if environmental variables change, unless you assign static variables to things and the environment does not change (i.e. disk change, formatting differences, etc.).