We have discovered a library where a user has written script to create auto numbered folders, within a library... we now have 32000 of them!!?
I need a powershell script that will list the folders, and ideally tell me if they are empty, so they can be deleted.
I've looked at numerous example scripts listing the contents of libraries, but none really target the folders specifically, more over the content within the folder.
I originally had a script written against a sample smaller library, using the UNC path to the library but this doesn't work for this library.. I'm guessing because of the number of folders it contains...
Any ideas, gratefully received..... I'm stuck.