New
#1
Sharing folders with homegroup, using a batch file?
Hello,
Due to some drives being portable, windows unshares them all the time on reboot, so I'm wondering if there is a command line option (batch command) to share folders with a homegroup.
I already did some checking, and found that when you share a folder, it starts the process "C:\Windows\system32\svchost.exe -k netsvcs" which writes to the register in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares"
I tried to export the keys, unshare the folder manually, and when re-setting the keys, but that did not work...
Anyone has an idea of how I can do this?
Thanks