Tidied up some little bugs

This commit is contained in:
Zachary Gorman 2024-07-30 13:48:11 -07:00
parent ca45404af1
commit c7c4be8a6f
3 changed files with 13 additions and 7 deletions

View file

@ -15,13 +15,13 @@
"DisplayName": "Office 16 Click-to-Run Localization Component"
},
{
"DisplayName": "Realtek Audio COM Components (driver)"
"DisplayName": "Realtek Audio COM Components"
},
{
"DisplayName": "Realtek High Definition Audio Driver"
},
{
"DisplayName": "Vulkan Run Time Libraries (default)"
"DisplayName": "Vulkan Run Time Libraries"
},
{
"DisplayName": "Microsoft Teams Meeting Add-in for Microsoft Office"
@ -34,5 +34,11 @@
},
{
"DisplayName": "Teams Machine-Wide Installer"
},
{
"DisplayName": "Google Legacy Browser Support"
},
{
"DisplayName": "Maxx Audio Installer"
}
]

Binary file not shown.

View file

@ -356,7 +356,7 @@ function Get-PCBatchInvoke {
}
}
BatchInvokesProgressBar -stage 4
$output += $jobs | Receive-Job -Wait -AutoRemoveJob | Select-Object * -ExcludeProperty RunspaceId, PSComputerName, PSShowComputerName
$output += $jobs | Receive-Job -Wait -AutoRemoveJob | Select-Object * -ExcludeProperty RunspaceId, PSComputerName, PSShowComputerName, PSSourceJobInstanceId
$itemIndex = 0
$contactedhosts = $output.Hostname
BatchInvokesProgressBar -stage 5
@ -366,7 +366,7 @@ function Get-PCBatchInvoke {
$jobs += Start-Job -ScriptBlock ${function:SCCMQueryBlock} -ArgumentList $computer
}
}
$output += $jobs | Receive-Job -Wait -AutoRemoveJob | Select-Object * -ExcludeProperty RunspaceId, PSComputerName, PSShowComputerName
$output += $jobs | Receive-Job -Wait -AutoRemoveJob | Select-Object * -ExcludeProperty RunspaceId, PSComputerName, PSShowComputerName, PSSourceJobInstanceId
return $output
@ -408,9 +408,9 @@ function BatchInvokesProgressBar {
switch ($stage) {
1 { Write-Progress -Activity "Connecting to computers" -Status "$item ($currentItemIndex/$TotalItems)" -PercentComplete (($currentItemIndex/$TotalItems) * 100)}
2 { Write-Progress -Activity "Spinning up jobs" -PercentComplete ((20/100) * 100)}
4 { Write-Progress -Activity "Querying SCCM for offline computers" -PercentComplete ((30/100) * 100)}
3 { Write-Progress -Activity "Awaiting Jobs" -PercentComplete ((60/100)*100)}
4 { Write-Progress -Activity "Querying SCCM for missed computers" -PercentComplete ((75/100) * 100)}
3 { Write-Progress -Activity "Querying SCCM for offline computers" -PercentComplete ((30/100) * 100)}
4 { Write-Progress -Activity "Awaiting Jobs" -PercentComplete ((60/100)*100)}
5 { Write-Progress -Activity "Querying SCCM for missed computers" -PercentComplete ((75/100) * 100)}
Default {}
}