79283090

Date: 2024-12-15 20:08:40
Score: 0.5
Natty:
Report link

It looks like you’re already heading in the right direction by enabling network-related settings with PowerShell. However, the “All Networks” setting in the control panel is part of the advanced sharing settings, and unfortunately, PowerShell doesn’t have a direct cmdlet to toggle that specific control panel setting.

That said, you can try enabling the underlying network discovery and file sharing components as you’ve started doing. You might also need to ensure that the network profile is set to “Private” since some sharing options behave differently depending on the network type. Here's a command for that:

powershell Copy code Set-NetConnectionProfile -NetworkCategory Private
If you still can’t get it to work, the issue might be with group policies or registry keys related to the sharing settings. One possible registry key to check is:

powershell Copy code Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\NetworkList\Profiles" -Name "Category" -Value 1
This sets the network profile to private, which is often a prerequisite for enabling “All Networks” sharing.

Let me know if this helps or if you’re stuck anywhere—I’ll be happy to troubleshoot further!

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tech host