On my Windows 2008 system, I've attached an external USB drive that's encrypted using Truecrypt. Once I mounted the Truecrypt drive, I share some of the directories from that drive using Windows file sharing. I find that whenever I restart the server, these shared directories are no longer shared and I to recreate share them. Pain.
Is there any way to avoid having to recreate these shares every time? Perhaps if I can script the sharing of the drives, perhaps I can run the script I mount the drive? If so, can someone tell me what the script commands are? For example, I want to share Z:\dir1 as \myserver\dir1 to everyone (no authentication required).