net share: is the share permanent?

  1. Posts : 25
    windows 10

    net share: is the share permanent?

    Local windows 10 machine. (home computer)

    I created a share via net share (CMD). I restarted my computer and noticed the share is still there.

    My question is, when using net share, are these permanent? I would think they would disconnect/delete after shutdown.
      My Computer

  2. Posts : 5,478

    They are permanent. They are also permanent if you do it through the GUI. You have to explicitly delete them - see this MS article: Net share

    eeps24 said:
    I would think they would disconnect/delete after shutdown.
    Why? If they were deleted you would have to share all your "Shared" folder(s) again every single time you rebooted which would be really annoying.
      My Computer

  3. Posts : 25
    windows 10
    Thread Starter

    awesome, thanks for the help.
      My Computer

  4. Posts : 5,478

    You are welcome.

    For what you want you'd have to do it like this I guess
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    PS C:\WINDOWS\system32> net share TempShare=c:\temp
    TempShare was shared successfully.

    and then at some point later...
    PS C:\WINDOWS\system32> net share TempShare /delete
    TempShare was deleted successfully.
    PS C:\WINDOWS\system32>
      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 20:37.
Find Us

Windows 10 Forums