Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $licenses = Import-Csv $PSScriptRoot\LicenseCounts.csv
- [Array]::Reverse($licenses)
- $licenses = $licenses[0] | select *available*,*delta*
- if($licenses.'E3 Available' -ge 25) {
- write-output "E3 greater than or equal to 25: $($licenses.'E3 Available')"
- $E3AvailableStyle = 'good'
- } elseif ($licenses.'E3 Available' -ge 10 -and $licenses.'E3 Available' -lt 25) {
- $E3AvailableStyle = 'caution'
- } else {
- $E3AvailableStyle = 'warning'
- }
- Output:
- E3 greater than or equal to 25: 4
Add Comment
Please, Sign In to add comment