From 079ba53a950b76a928f952736268ca62f9acc462 Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Mon, 11 May 2020 09:20:04 +0200 Subject: [PATCH] =?UTF-8?q?Changed=20error=20property=20to=20message=20pro?= =?UTF-8?q?perty=20=F0=9F=93=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Get-OrphanHomeFolder/Get-OrphanHomeFolder.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Get-OrphanHomeFolder/Get-OrphanHomeFolder.ps1 b/Get-OrphanHomeFolder/Get-OrphanHomeFolder.ps1 index 458fb29..dee5e39 100644 --- a/Get-OrphanHomeFolder/Get-OrphanHomeFolder.ps1 +++ b/Get-OrphanHomeFolder/Get-OrphanHomeFolder.ps1 @@ -168,7 +168,7 @@ $ListOfFolders | ForEach-Object { # If no matching samaccountname is found this code is executed and displayed if (!($ADResult)) { $HashProps = @{ - 'Error' = 'Account does not exist and has a home folder' + 'Message' = 'Account does not exist and has a home folder' 'FullPath' = $_.FullName } if ($FolderSize) { @@ -197,7 +197,7 @@ $ListOfFolders | ForEach-Object { # If samaccountname is found but the account is disabled this information is displayed } elseif (([boolean]((-join $ADResult.Properties.useraccountcontrol) -band 2))) { $HashProps = @{ - 'Error' = 'Account is disabled and has a home folder' + 'Message' = 'Account is disabled and has a home folder' 'FullPath' = $_.FullName } if ($FolderSize) { @@ -222,7 +222,7 @@ $ListOfFolders | ForEach-Object { # Folders that do have active user accounts are displayed if -DisplayAll switch is set } elseif ($ADResult -and $DisplayAll) { $HashProps = @{ - 'Error' = $null + 'Message' = 'Account is active' 'FullPath' = $_.FullName } if ($FolderSize) {