Author Posts

November 18, 2014 at 8:44 pm

Trying to get directory size of multiple shares. Created a script which works but doing everything sequentially takes 8:30 hrs. Looking to optimise.

Using Boe Prox's Get-FolderItem function (https://gallery.technet.microsoft.com/scriptcenter/Get-Deeply-Nested-Files-a2148fd7) against the following shares

\\COMPANY\DFS\Group\ITPM
\\COMPANY\DFS\Group\ICTSS
\\COMPANY\DFS\Group\SPI
\\COMPANY\DFS\Group\CORPTECH
\\COMPANY\DFS\Group\FINANCE
\\COMPANY\DFS\Group\HR

There is approx 1.5TB of data in these shares

Haven't grasped JOBS and WORKFLOWs. Is this where I should start ? Are there other/better ways of doing this ? Any help would be greatly appreciated.

November 20, 2014 at 9:31 am

Workflow would be a good way to approach that, as the necessary commands are exposed as Workflow activities, and can therefore run within a Parallel block. But you might not be able to use Boe's function as-is that way – data handling in Workflow can get pretty complicated.

Jobs would also be valid as an approach.