After latest Windows upgrade(?) Simple script for network sharing?


  1. Posts : 232
    Win 10 Ver 1903
       #1

    After latest Windows upgrade(?) Simple script for network sharing?


    Every time i think I have it right, Microsoft "moves the cheese". Is there any current one-run script or registry update that can do all the following: Turn on Network discovery and make the network I am connected to Private at the same time

    Without having to go through several steps to get there. On systems that were already on the network, they seemed to stay set properly but every new one we added it seems i had to go through this in at least 3 places to get sharing to work right.

    I know you always have the latest QuickSteps and thought you might already have a powershell or registry fix for this. I saw the new tutorial that goes through all the steps but is there no way to automate this any longer? The systems with the issue are all new Dell laptops. Maybe its a Dell thing(?) as I also discovered that i now had to run McAfee MCPR to get rid of all the hidden McAfee pre-installs so that is a possibility.
      My Computer


  2. Posts : 5,478
    2004
       #2

    To set private:
    Code:
    $NetConnectionProfiles = Get-NetConnectionProfile  | Where-Object {$_.NetworkCategory -eq 'Public'}
    ForEach ($NetConnectionProfile in $NetConnectionProfiles) { Set-NetConnectionProfile -NetworkCategory Private }
    To turn on network discovery:
    Code:
    netsh advfirewall firewall set rule group="Network Discovery" new enable=yes
      My Computer


  3. Posts : 5,478
    2004
       #3

    To set private:
    Code:
    $NetConnectionProfiles = Get-NetConnectionProfile  | Where-Object {$_.NetworkCategory -eq 'Public'}
    ForEach ($NetConnectionProfile in $NetConnectionProfiles) { Set-NetConnectionProfile*-NetworkCategory Private }
    To turn on network discovery:
    Code:
    netsh advfirewall firewall set rule group="Network Discovery" new enable=yes
      My Computer


  4. Posts : 40
    Windows 10
       #4

    Interesting point. I fact I was thinking the same thing...

    Is there not a simple app out there that takes the networking confusion out of W10? The other day I was actually starting to write some C# code to do the standard stuff, like turn on all the features that are needed for discovery and sharing and making computers visible and even doing a graphical representation of shares and the network.

    It might take awhile since I'm not familiar with running command line stuff in C#. But boy, it's really needed. One button for "set my computer up for network sharing and to be visible on the network and show me what computers are on the network and who are the users and shares".
      My Computer


  5. Posts : 232
    Win 10 Ver 1903
    Thread Starter
       #5

    Whoa !! ebergerly I want a copy of THAT program if you write it!!

      My Computer


  6. Posts : 103
    Win10Pro 64bit 1909 build 18363.628
       #6

    Sorry for the BUMP, but is there any success on a 1-click solution yet?
      My Computer


  7. Posts : 1,772
    Windows 10 Pro
       #7

    JIGSAW said:
    Sorry for the BUMP, but is there any success on a 1-click solution yet?
    How can I construct PS commands to set up each of the network shares that I have to manually re-create with each new install? Each system, I always name Drive C Programs, Drive D Data, Drive E Media, and Drive F Software (copies of install files). On one system, Drive G is Backups. The network name for each share is a three letter abbreviation of the system name, followed by a "-" and then the drive name like Programs or Data.

    Can this sort of command be set up according to the registry entries for each share? Or, asked in a different way, what reg keys do I need to export to set up all my network shares?
      My Computers


  8. Posts : 103
    Win10Pro 64bit 1909 build 18363.628
       #8

    ^ You're asking the wrong person, unless you didn't mean to quote me?

    Im just here for a 1-click solution to make sharing work like it should "out the box"
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:57.
Find Us




Windows 10 Forums