Windows KERNEL Locking folders
Hi,
This issue is for Windows 2008 but i did't find and other forum to post it.
The problem is that folders shared in Windows 2008 are locked by Windows
Kernel main process. We are sharing folders automaticly and deleiting share
and folder.
Issue:
The share is created by Net Share command
Wait about two hours
Remove the share using Net Share
Delete Folder <---ERROR Is in use by som program
I used the Handle command to find out what pids are locking the folder and i
found following: "System pid: 4 \<unable to open process>" this process is
the Windows Kernel process.
This issue does not applay if I remove the share immideatly. And the lock
takes up to two hours until it will be visible by handle command.
I dont think this is default behavior? Same script worked fine on Windows
2000 and 2003. Ii works fine on Windows 2008 if I delete the share before two
hours.
-----------------------
Marcin S.
|