At a command line type in "Diskpart". You will see a command like:
DISKPART>
Now type in "list disk"
You will see a list of disks on your system and if your dynamic disk is currently offline it will have a status of "offline" and probably just a number under the Disk ### column. Other disks you will notice will be named "Disk" then their number such as "Disk 10". Once you figure out which is the one that you want type in "select disk".
You will now see:
"Disk is not the selected disk."
Now simply type in "online".
Once the disk is online you can type exit.
Now that you are familiar with the commands and what they do, create a text file, put the commands into it, rename the extension .bat and put it in your startup folder or leave a convenient link to it on your desktop. The commands inside the batch file would look like this:
diskpart
select disk9
online
exit
NOTE:
If a disk is online it is referred to with a space between "disk" and that disks number as follows:
Disk 9
But if a disk is offline (that state you are concerned with) it will be:
Disk9