Removing multiple shares

If you have a folder containing multiple subfolders which are shared and you want to unshare them. Go to the folder and use this:

for /d %v in (*) do net share “%v” /delete

Comments

Leave a Reply

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)