-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Currently Get-UserProfileSize iterates one by one through each computer and doesn't return output until the last one is complete, when it outputs the result array in its entirety. I suggest skipping the array altogether and just letting each PSObject hit the pipeline as it completes.
Also, the logic for listing profiles is performed in a separate command from querying the profile sizes. If that were moved into the script block, you could drop the foreach-object and allow it to just use Invoke-Command against $ComputerName, allowing it to use Invoke-Command built-in asynchronous query ability.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels