How to change network type (public/private)?

This concludes the explanation of how to change the Windows 11 network to public/private.

Public network (recommended) Private network

Other Windows 11 settings and usage are summarized, so please refer to it.

When changing by command

This concludes the explanation of how to change the Windows 11 network type. In this example, the network name (Name) is Buffalo** and the network type (NetworkCategory) is Public. Other Windows 11 settings and usage are summarized, so please refer to it.