The AutoShareServer and autosharewks registry values under the Registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters are used by default. These shares are enabled by default, some informal installation systems may be disabled and need to be re-enabled. Edit the following to enable/disable the Registry file and import it to the registry using the Group Policy.
Enable. Reg content
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters]
"AutoShareServer" = DWORD: 00000001
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters]
"Autoscaling wks" = DWORD: 00000001
Disable. Reg content
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters]
"AutoShareServer" = DWORD: 00000000
"Autoscaling wks" = DWORD: 00000000
Create a BAT file with the content:
@ Echo off
Regedit.exe/s enable/disable. Reg
Exit
In Group Policy computer configuration/Windows Settings/script, double-click Start, click Add, copy the above bat and Reg files, and select bat as the script to remember