69 lines
3.5 KiB
PowerShell
69 lines
3.5 KiB
PowerShell
<#
|
|
|
|
$T = Get-SCCMSoftwareUpdateStatus -DeploymentID 16777538 # _11PM - Production Patching
|
|
$S = $T | ? { $_.Status -eq "InProgress" }
|
|
write-host ""
|
|
write-host "------------------------------------------------------------------------------------"
|
|
write-host "_11PM - Production Patching" -foregroundcolor white -backgroundcolor black
|
|
write-host "Total Servers: $($S.DeviceName.count)" -foregroundcolor Black -Backgroundcolor white
|
|
$Err = $T | ? { $_.Status -eq 'error' } | Select DeviceName
|
|
$Success = $T | ? { $_.Status -eq 'Success' } | Select DeviceName
|
|
write-host "Error Count: $($err.count)" -foregroundcolor Yellow
|
|
write-host "InProgress: $($S.DeviceName.count)" -foregroundcolor Cyan
|
|
|
|
#>
|
|
|
|
<#
|
|
|
|
$T = Get-SCCMSoftwareUpdateStatus -DeploymentID 16777541 # _9PM - Production Patching
|
|
$S = $T | ? { $_.Status -eq "InProgress" }
|
|
write-host ""
|
|
write-host "------------------------------------------------------------------------------------"
|
|
write-host "_9PM - Production Patching" -foregroundcolor white -backgroundcolor black
|
|
write-host "Total Servers: $($S.DeviceName.count)" -foregroundcolor Black -Backgroundcolor white
|
|
$Err = $T | ? { $_.Status -eq 'error' } | Select DeviceName
|
|
$Success = $T | ? { $_.Status -eq 'Success' } | Select DeviceName
|
|
write-host "Error Count: $($err.count)" -foregroundcolor Yellow
|
|
write-host "InProgress: $($S.DeviceName.count)" -foregroundcolor Cyan
|
|
|
|
#>
|
|
|
|
<#
|
|
$T = Get-SCCMSoftwareUpdateStatus -DeploymentID 16777540 # _6PM - Production Patching
|
|
$S = $T | ? { $_.Status -eq "InProgress" }
|
|
write-host ""
|
|
write-host "------------------------------------------------------------------------------------"
|
|
write-host "_6PM - Production Patching" -foregroundcolor white -backgroundcolor black
|
|
write-host "Total Servers: $($S.DeviceName.count)" -foregroundcolor Black -Backgroundcolor white
|
|
$Err = $T | ? { $_.Status -eq 'error' } | Select DeviceName
|
|
$Success = $T | ? { $_.Status -eq 'Success' } | Select DeviceName
|
|
write-host "Error Count: $($err.count)" -foregroundcolor Yellow
|
|
write-host "InProgress: $($S.DeviceName.count)" -foregroundcolor Cyan
|
|
write-host "Success: $($Success.DeviceName.count)" -foregroundcolor Green
|
|
|
|
#>
|
|
|
|
<#
|
|
$T = Get-SCCMSoftwareUpdateStatus -DeploymentID 16777539 # _11PM - Production Patching - File Servers
|
|
$S = $T | ? { $_.Status -eq "InProgress" }
|
|
$S.DeviceName.count
|
|
write-host ""
|
|
write-host "------------------------------------------------------------------------------------"
|
|
write-host "_11PM - Production Patching - File Servers" -foregroundcolor white -backgroundcolor black
|
|
write-host "Total Servers: $($S.DeviceName.count)" -foregroundcolor Black -Backgroundcolor white
|
|
$Err = $T | ? { $_.Status -eq 'error' } | Select DeviceName
|
|
$Success = $T | ? { $_.Status -eq 'Success' } | Select DeviceName
|
|
write-host "Error Count: $($err.count)" -foregroundcolor Yellow
|
|
write-host "InProgress: $($S.DeviceName.count)" -foregroundcolor Cyan
|
|
write-host "Success: $($Success.DeviceName.count)" -foregroundcolor Green
|
|
|
|
#>
|
|
|
|
|
|
#
|
|
# Test-Connection -ComputerName $s.DeviceName -Count 1
|
|
# gwmi win32_operatingsystem -ComputerName $s.devicename | select @{n="Server";e={$_.PSComputername}},@{n="LastBootup";e={$_.Converttodatetime($_.LastBootUpTime)}} | sort LastBootup -descending | ft -autosize
|
|
|
|
|
|
# gwmi win32_operatingsystem -ComputerName PVST002 | select @{n="Server";e={$_.PSComputername}},@{n="LastBootup";e={$_.Converttodatetime($_.LastBootUpTime)}} | ft -autosize
|