How to setup Security of homegroup
As we mentioned, a homegroup is protected by a password. The HomeGroup feature initially provides a password, but you can change it later if you want to. People who belong to a home network will not automatically belong to a homegroup and be able to connect to it. They will need a password which appears while you are setting up a HomeGroup before they can join the homegroup or see and access files and printers.