Why did this windows error happen?
You probably attempted to disable Microsoft Home Group by changing 'Home network'; to 'public network' in the 'Network and Sharing Center';. It is easy to assume that if you press on 'Home network' under 'Connect or disconnect' that Home Network will be disconnected. It will not. Changing 'Home network' to 'Public network' in Network and Sharing Center does not disconnect or connect anything. It is just switching off/on windows firewall rules for MS Home Network.
Go to Control Panel - Network and Sharing Center.
Choose Home Group and sharing options and click 'Leave the Home Group'.
Other related errors - Microsoft-Windows-HomeGroup Control Panel/Operational Get Sharing Flags failed..