Cannot delete a foldershare remotely

%3CLINGO-SUB%20id%3D%22lingo-sub-2219544%22%20slang%3D%22en-US%22%3ECannot%20delete%20a%20foldershare%20remotely%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2219544%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20shared%20folders%20which%20must%20be%20copied%20and%20deleted%20regurally.%20So%20i%20made%20a%20powershell%20script%20and%20try%20to%20do%20copy%20and%20delete%20the%20share%20but%20i%20can%20only%20copy%20the%20complete%20folderstructure%20but%20not%20delete%20it%20and%20not%20move%20it%20remotely.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20all%20subfolders%20and%20files%20are%20copied%20to%20another%20server%20then%20the%20rootfolder%20share%20is%20empty%20but%20cannot%20be%20deleted%20remotely%20not%20in%20a%20batchfile%20with%20cmd%20not%20with%20powershell%20and%20not%20with%20robocopy.%3C%2FP%3E%3CP%3EProcess%20is%20in%20use.%20But%20when%20i%20make%20a%20new%20share%20end%20trie%20it%20is%20also%20not%20deleted%2C%20just%20the%20subfolders.%3C%2FP%3E%3CP%3EWhen%20i%20delete%20the%20complete%20patch%20remotely%20then%20it%20can%20be%20deleted%20but%20not%20the%20share.%3C%2FP%3E%3CP%3E%5C%5Cservername%5Cshare%3C%2FP%3E%3CP%3Ewhat%20can%20be%20deleted%20is%3A%20%5C%5Cservername%5Cpatch%20to%20share%5Cshare%3C%2FP%3E%3CP%3Eor%20%5C%5Cservername%5Ce%24%5Cpatch%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20somewhere%20a%20setting%20that%20prevents%20deleting%20rootfolder%20shared%20folders%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2219544%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eshare%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

We have shared folders which must be copied and deleted regurally. So i made a powershell script and try to do copy and delete the share but i can only copy the complete folderstructure but not delete it and not move it remotely.

 

When all subfolders and files are copied to another server then the rootfolder share is empty but cannot be deleted remotely not in a batchfile with cmd not with powershell and not with robocopy.

Process is in use. But when i make a new share end trie it is also not deleted, just the subfolders.

When i delete the complete patch remotely then it can be deleted but not the share.

\\servername\share

what can be deleted is: \\servername\patch to share\share

or \\servername\e$\patch

 

Is there somewhere a setting that prevents deleting rootfolder shared folders?

0 Replies