禁用所有共享文件夹

时间:2012-08-09 11:05:21

标签: windows windows-xp

什么是禁用Win XP计算机上的所有共享文件夹的CMD命令。

谢谢

5 个答案:

答案 0 :(得分:8)

按此顺序发送命令

net share

这将招募所有共享资源

net share DataShare /delete

其中datashare是您要删除的选项

http://technet.microsoft.com/en-us/library/bb490712.aspx

答案 1 :(得分:2)

wmic path Win32_Share delete

(在win10上测试)

答案 2 :(得分:2)

(对于Win10)

1-以管理员身份运行cmd.exe

2- wmic path Win32_Share delete

答案 3 :(得分:1)

不确定cmd命令以及是否要将其自动化 但是,如果这是你需要做的一件事,你可以随时运行mmc.exe并通过文件/添加删除管理单元添加共享文件夹管理单。

在此屏幕中,您将获得所有共享的列表,您可以根据需要禁用它们。

答案 4 :(得分:0)

Try the next steps:

  1. Click Start, then right-click Computer, and then click Manage.

  2. In the console tree, click System Tools, then click Shared Folders, and then click Shares.

  3. In the details pane, right-click a shared folder, and then click Stop Sharing (this item only appears if you launched Computer Management using an account that is a member of the local Administrators group).

  4. To stop sharing multiple files, press the CTRL key while clicking the file names, right-click any one of the selected files, and then click Stop Sharing. This removes shared network access to the selected files.

https://technet.microsoft.com/en-us/library/cc753475(v=ws.11).aspx