Password Protected Sharing - Turn On/Off with PowerShell


  1. Posts : 42
    Windows 7, 8.1, 10
       #1

    Password Protected Sharing - Turn On/Off with PowerShell


    How can I use PowerShell to turn on/off "Password Protected Sharing" setting in Advanced sharing settings?
      My Computer

  2.   My Computer


  3. Posts : 42
    Windows 7, 8.1, 10
    Thread Starter
       #3

    bro67: I used the link you provided and scanned the contents. All I could see was information about file shares .. i.e. specifically. I'm sorry if my question wasn't clearer. I'm asking about these Advanced Sharing Settings specifically. The setting regarding passwords is at the bottom of the image:
    Password Protected Sharing - Turn On/Off  with PowerShell-2016-10-07-advanced-sharing-settings.jpgPerhaps I missed the connection to this in the link provided but I didn't see it.
    That said, it's a very interesting bunch of information and surely will be valuable at some point!
    Thanks


      My Computer


  4. Posts : 9,780
    Mac OS Catalina
       #4

    The Advanced Sharing options are just quick set options for those who do not know or want to get into the meat and potatoes of the OS. The Technet information is going to be your best resource, along with Windows IT Pro. Everything that is found on a search is about the Command Terminal. The link that I posted yesterday for the first post was just a jumping off point, because it gave you the direction to where you needed to dig in further.

    Most stuff that is advanced is done by "Roll your own", when it comes to items that are normally done on Domains and in scripts for when users log in.
      My Computer


  5. Posts : 42
    Windows 7, 8.1, 10
    Thread Starter
       #5

    Well, I've looked at it a bit now and don't find the connection. For example, if passwords are required then where/how is that connection made? Or is it that there is *no* such blanket setting and that the notion gets translated into a bunch of individual settings? One can imagine that but it seems counter to having powerful tools like PowerShell, etc.
      My Computer


  6. Posts : 9,780
    Mac OS Catalina
       #6

    Password tokens are only to unlock the gate to let you into the protected share. Without that, you are just going to see that there is a share out there. What you are wanting to do is done through a startup script and can be done in many different ways. Using Powershell is going to take a learning curve in what you want to do, since it is new territory.

    Jimbo is pretty good with this kind of stuff. You may want to dig a little deeper with the information in both of those links, since they are just basic this is how you do it stuff, not actually what you need to do.
      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 01:57.
Find Us




Windows 10 Forums