This will forbid any sharing, including Administrative shares, but without IPC$ shares. Next go to Control Panel > Administrative tools > Services or just type services.msc in Start > Run and Services Manager will appear. Find service named Server and from properties select Disabled for Startup Type.
This action generally will stop Windows sharing abilities including File and Print sharing. IPC$ shares will be stopped too.


