I have a requirement of scanning a CIFShare and get the file properties and ACL properties of all the files and folders in the share.I know there is an option of -recursive in get-chilItem but in case of very large shares, using the -recursive option is really time consuming.I know this can be achieved with multithreading.
Assume the hierarchy is like the following:-
Root
Root\FolderA
Root\FolderA\FolderA1\FolderA2\FolderA3\FolderA3\FolderA4
Root\FolderB\..
..
I have managed a script which gets the file properties and ACL of all the files and folders in the root and start a job for each of the folder in the root (Folder A, Folder B etc) which runs without any error. I tried creating jobs for each and every folder (all the levels in the directory structure) and this in turn results in to the job getting hung or the powershell getting force closed. I am using PowerShell V2.0 and any upgradation in the version is not possible in our environment. I am new to powershell and kindly forgive if it's a very silly question.
Thanks in advance for the help.