sharing folder in Win Server 2008 64bit

Villageac
Villageac used Ask the Experts™
on
I am using Server 2008 64 bit.  I have a folder on our network that I mostly share, but periodically need to unshare while I do some work on the folder.  While I do maintenance work on the folder I unshare it, then when I'm done I re-share it.
I find the folder in Explorer, and I R click, share with, select nobody with a L click, and then select stop sharing.  The window goes away immediately.
If I stop at this point the folder is still shared.  I need to repeat the process - I need to R click on the folder again, L click on Share with, then select Nobody at which point the stop sharing window opens and a blue line goes from left to right for a few minutes as the folder unshares.  My question is am I doing something wrong to need to go through the R click process twice?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I unshare my folder using Advanced Sharing and deselect the Share this folder box. Works on the first attempt.

Author

Commented:
where do I find Advanced Sharing?
Right click on the folder -> Properties -> Sharing tab -> Advanced Sharing...
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
thanks - although it seems like there is as much drilling around and selecting options when you use Advanced Sharing as by doing it the way I'm doing it.
No problem. There's probably a shortcut but that's how I usually do it.
you could research a bit about net share command
open command prompt type "net help share"

I would create 2 batch files
like this:

shareoff.cmd
@echo off
net share myshare /delete

Open in new window


shareon.cmd
@echo off
net share myshare=C:\Share /GRANT:username,FULL

Open in new window


create these 2 .cmd files on your desktop, substitute path and username, GRANT can be used as many times as many users you need to give permissions to the share, run them as administrator.

Author

Commented:
thank you both

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial