PSHTML-AD-Report
PSHTML-AD-Report copied to clipboard
Feature Request: Progress Bars
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
Submitted a pull request that has progress bars implemented in each main foreach loop.