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).
Thanks.
Add "ANONYMOUS" instead of Everyone
If you restart the server service then those shares should be restored.
If you wanted to script this just do a net stop server followed by a net start server.
it's ok, but NFS shares and QUOTAS don't restore.
In truecrypt, you can add the external drive as a system favourite, and to automatically mount system favourites when windows starts. This works around the problem of shares becoming unshared. The only problem is, the system drive needs to be encrypted, and have the SAME PASSWORD as the external drive.