How to restore administrative shares on Windows server 2008
With share & drive management in Windows Server 2008 I was able to delete the D$ administrative share by accident. I tried to restore it by adding it myself with explore. But I got the message that it already existed. Here is my solution that did the trick. I found it on Microsoft but it was file dunder Windows server 2000
Edit the registry and add this key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer (DWord)
Set the DWord value to 1

Now restart the server service

Now the shares are restored. You can now delete the reg key and restart the service again.

