Size of SHAREs - Powershell JOBS/WORKFLOW ?

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 2 years ago.

  • Author
    Posts
  • #20662
    Profile photo of ratty67
    ratty67
    Participant

    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.

  • #20708
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.

You must be logged in to reply to this topic.