I copied a few million files from one disk array to another on a Server 2008 box. Then I wanted to move the share that people used to access those files, so it would point at the new location of the files.
I innocently clicked "stop sharing" on the first share, thinking it would just delete a record somewhere, and deny network access to the directory.
That was three hours ago, and Windows still says "Stop sharing... this may take a few minutes". I assume that means it's updating the permissions on every file in under the shared directory. yay.
How can I figure out how much longer I have to wait?
What happens if I click cancel?
It sure does sound like a file is currently open or somehow locked in use. try PsFile from Sysinternals (now a part of Microsoft) it will help you track the file. http://technet.microsoft.com/en-us/sysinternals/bb897552.aspx no reboot necessary to install this utility.
As far as I can see, Windows was hung for no good reason. I clicked cancel, which immediately closed the dialog. I was then able to edit and create the shares I needed very quickly.