Hi,
I know how to disable Network Discovery or File and Printer Sharing via the following command lines:

netsh advfirewall firewall set rule group="Network Discovery" new enable=no
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=no

But I didn't find a way to disable Public Folder Sharing using cmd or reg, any idea?

Also is there a way to set the current Lan network connection as metered via registry or command prompt?
Thanks.