PSHTML-AD-Report icon indicating copy to clipboard operation
PSHTML-AD-Report copied to clipboard

Feature Request: Progress Bars

Open bwya77 opened this issue 7 years ago • 1 comments

function cross_check_domain($member_list) { # Snapshot the user count to make things a bit quicker with larger loop lengths $count = $member_list.member.count $current = 0

# Enumerate users in the group
foreach ( $m in $member_list.member )
{
    # Display some information that we are progressing:
    [int]$percent = $current/$count * 100
    Write-Progress -Activity "Processing $($count) objects for users from $($localdomain) against $($remotedomain) - object: $($m)" -PercentComplete $percent
    $current = $current+1

# Loop code
}

ccsrpsw

bwya77 avatar Dec 05 '18 18:12 bwya77

Submitted a pull request that has progress bars implemented in each main foreach loop.

Average-Bear avatar Dec 05 '18 23:12 Average-Bear