Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Mar 21, 2024
1 parent 4741965 commit 5ab468b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.5.4] - Unreleased

### Added
### Fixed

- Fix #25

## [0.5.3] - 2024-03-06

Expand Down
13 changes: 7 additions & 6 deletions Src/Private/Get-AbrWinApplication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrWinApplication {
.DESCRIPTION
Documents the configuration of Microsoft Windows Server in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.5.2
Version: 0.5.4
Author: Andrew Ramsay
Editor: Jonathan Colon
Twitter: @asbuiltreport
Expand Down Expand Up @@ -40,14 +40,15 @@ function Get-AbrWinApplication {
$TempAddRemoveReport = [PSCustomObject]@{
'Application Name' = $App.DisplayName
'Publisher' = $App.Publisher
'Version' = Switch ([string]::IsNullOrEmpty($App.Version)) {
'Version' = Switch ([string]::IsNullOrEmpty($App.DisplayVersion)) {
$true { "--" }
$false { $App.Version }
$false { $App.DisplayVersion }
default { "Unknown" }
}
'Install Date' = Switch (($App.InstallDate).count) {
0 { "--" }
default { $App.InstallDate }
'Install Date' = Switch ([string]::IsNullOrEmpty($App.InstallDate)) {
$true { "--" }
$false {$App.InstallDate}
default { 'Unknown' }
}
}
$AddRemoveReport += $TempAddRemoveReport
Expand Down

0 comments on commit 5ab468b

Please sign in to comment.