Re-post: Darren Mar-Elia's "Controlling Shares on Windows Systems"
Darren Mar-Elia, aka GPOGuy, wrote a cool post about using Group Policy Preferences to remove unwanted network shares from your environment. Group Policy Preferences can do everything! If you've got Windows Server 2008 or above, you've already got GP Preferences at your disposal.
Read on : https://sdmsoftware.com/blog/2010/06/22/controlling-shares-on-windows-systems/
To get more detail on what you need to use Group Policy Preferences, read here:
hope this helps,
@superlilia