net share: is the share permanent? Solved

  1.    28 Jan 2018 #1

    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 ComputerSystem Spec

  2.    28 Jan 2018 #2

    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: View Post
    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 ComputerSystem Spec

  3.    28 Jan 2018 #3

    awesome, thanks for the help.
      My ComputerSystem Spec

  4.    29 Jan 2018 #4

    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 ComputerSystem Spec


Related Threads
Hello, I am trying to make all HDD's of one PC available to another, and vice versa. Both Computers are in the same WORKGROUP. I right-clicked the drive, select 'advanced sharing', enabled sharing and set permissions for "everybody" to "full...
Similar issues have been posted to this and other forums in the past, but I will describe my specific situation here as I believe the circumstances are somewhat different from those described in other threads: I have a USB hard drive connected to...
I have two laptops both running Windows 10 and I need to be able to access ALL data from either one via WiFi. One laptop is my main one that I use everyday in my house. The other laptop I need to use is in my workshop, however, I need to be able to...
Just a Thought I will share in Customization
As most of you know I have had some issues with Windows 10 and I believe that I was the cause of all of them. I removed stuff that I did not need, tweaked things, and so forth. I now have a clean running machine that is faster than it ever was. I...
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 10:27.
Find Us