Solved How to run "net share Documents /delete" to delete the share

Dragonchaser

New member
Local time
12:46 PM
Messages
57
I used Box but then switched to another cloud service.

I uninstalled the Box desktop app but in my Event Viewer I'm getting this:

The server service was unable to recreate the share Documents because the directory E:\backups\My Box Files\Documents no longer exists. Please run "net share Documents /delete" to delete the share, or recreate the directory E:\backups\My Box Files\Documents.

I tried searching Google for Please run "net share Documents /delete" to delete the share but there isn't much.

Could someone tell me how I can do that? Is it simply clicking Start and typing that text in the search field?
 

My Computer My Computer

At a glance

W7 Pro x64Intel Core i7 920 @ 2.67 GHz8 GB RAM
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell T3500
OS
W7 Pro x64
CPU
Intel Core i7 920 @ 2.67 GHz
Memory
8 GB RAM
Monitor(s) Displays
Samsung SyncMaster XL2370
Screen Resolution
1920 x 1080
Antivirus
ESET
No, you should type cmd and press Enter. That will open a command prompt window. In there is where you should type this.

You can then type net share /? if you want more information about that specific command and its parameters.
 

My Computer My Computer

At a glance

Windows 7 Pro 32Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz4,00 GB (Usable 2,98)NVIDIA NVS 5100M
Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
Note that for net share to work, you need administrator access, so you must start an elevated cmd.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Is there a command to see existing net shares?

I tried net share /? but couldn't find it:

Code:
C:\Windows\system32>net share /?
The syntax of this command is:

NET SHARE
sharename
          sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
                               [/USERS:number | /UNLIMITED]
                               [/REMARK:"text"]
                               [/CACHE:Manual | Documents| Programs | BranchCache | None]
          sharename [/USERS:number | /UNLIMITED]
                    [/REMARK:"text"]
                    [/CACHE:Manual | Documents | Programs | BranchCache | None]
          {sharename | devicename | drive:path} /DELETE
          sharename \\computername /DELETE


If I run net share Documents /delete is there any danger I could delete something I don't want to delete?
 

My Computer My Computer

At a glance

W7 Pro x64Intel Core i7 920 @ 2.67 GHz8 GB RAM
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell T3500
OS
W7 Pro x64
CPU
Intel Core i7 920 @ 2.67 GHz
Memory
8 GB RAM
Monitor(s) Displays
Samsung SyncMaster XL2370
Screen Resolution
1920 x 1080
Antivirus
ESET
just type
Code:
net share
in the command prompt
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo8.00 GB DDR3 1600MhzMSI Gaming X GTX 1070
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dude Build
OS
Windows 10 Pro X64
CPU
Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo
Motherboard
MSI Z77A-G45 Gaming
Memory
8.00 GB DDR3 1600Mhz
Graphics Card(s)
MSI Gaming X GTX 1070
Sound Card
Realtek High Definition
Monitor(s) Displays
Dell S23O9W, HP L1710
Screen Resolution
DELL-1920 x 1080 HP-1280 x1024
Hard Drives
Crucial m4 256 SSD, WD 7200RPM 500GB WD 1TB
PSU
Seasonic X650 GOLD
Case
Zalman Z12
Cooling
Antec Kuhler 920
Keyboard
Logitech
Mouse
MSI DS100 Interceptor
Internet Speed
50 down and 5 up
Antivirus
MSE
Browser
Chrome, IE 11
Other Info
Logitech X-620 Speakers
net share on its own lists all the current shares, the very same that you can find and manage in computer management.

The /delete thing will just delete the share, that is, making it unavailable to other computers over network. The data itself that the share pointed to is unaffected at all.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Interesting... I learned a few things today. Thanks! :)

1. I did net share to get a list of shares and the share I'm supposed to delete isn't even there:

Code:
C:\Windows\system32>net share

Share name   Resource                        Remark
-------------------------------------------------------------------------------
ADMIN$    C:\Windows                Remote Admin
C$           C:\                             Default share
print$       C:\Windows\system32\spool\drivers       Printer Drivers
IPC$                                         Remote IPC
E$           E:\                             Default share
E            E:\
Pictures     E:\Pictures
Users        C:\Users
Videos       E:\Videos
Dell Laser Printer 1100    USB001       Spooled  Dell Laser Printer 1100
Kyocera Mita KM-1650     USB002       Spooled  Kyocera Mita KM-1650
The command completed successfully.

2. So logically typing net share Documents /delete resulted in the following:

Code:
C:\Windows\system32>net share Documents /delete
System error 3 has occurred.

The system cannot find the path specified.

3. Makes me wonder why I'm getting this in my Event Viewer:

The server service was unable to recreate the share Documents because the directory E:\backups\My Box Files\Documents no longer exists. Please run "net share Documents /delete" to delete the share, or recreate the directory E:\backups\My Box Files\Documents.

Any suggestions?

Perhaps I should recreate the directory E:\backups\My Box Files\Documents and see what happens?
 

My Computer My Computer

At a glance

W7 Pro x64Intel Core i7 920 @ 2.67 GHz8 GB RAM
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell T3500
OS
W7 Pro x64
CPU
Intel Core i7 920 @ 2.67 GHz
Memory
8 GB RAM
Monitor(s) Displays
Samsung SyncMaster XL2370
Screen Resolution
1920 x 1080
Antivirus
ESET
Maybe the folder that the share was referring to was deleted? Then the service may fail to list it (seems pretty much like a bug).

What if you try to create the real path on Windows explorer? Does the share begins to list? And can you delete it afterwards?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
The problem is solved! Me happy! :)

Here is what I did:
1. create the folder manually (no more Warning from here on)
2. delete the share manually (net share Documents /delete)
3. delete the folder manually
4. reboot

Thanks to Tookeri, Alejandro85 and Dude!
 

My Computer My Computer

At a glance

W7 Pro x64Intel Core i7 920 @ 2.67 GHz8 GB RAM
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell T3500
OS
W7 Pro x64
CPU
Intel Core i7 920 @ 2.67 GHz
Memory
8 GB RAM
Monitor(s) Displays
Samsung SyncMaster XL2370
Screen Resolution
1920 x 1080
Antivirus
ESET
Back
Top