@@ -22,7 +22,7 @@ function Invoke-SCOMDecrypt
2222 }
2323 else
2424 {
25- Write-Host " [! ] Unable to find installation directory of SCOM"
25+ Write-Host " [Critical Error ] Unable to find installation directory of SCOM" - ForegroundColor Yellow
2626 return
2727 }
2828
@@ -39,7 +39,7 @@ function Invoke-SCOMDecrypt
3939 }
4040 Catch [System.Management.Automation.ItemNotFoundException ]
4141 {
42- Write-Host " [! ] Unable to detect SQL server"
42+ Write-Host " [Critical Error ] Unable to detect SQL server"
4343 return
4444 }
4545
@@ -50,7 +50,7 @@ function Invoke-SCOMDecrypt
5050 }
5151 Catch [System.Management.Automation.ItemNotFoundException ]
5252 {
53- Write-Host " [! ] Unable to find key"
53+ Write-Host " [Critical Error ] Unable to find key"
5454 return
5555 }
5656
@@ -83,18 +83,21 @@ function Invoke-SCOMDecrypt
8383
8484 if ($domain -notlike " " )
8585 {
86- Write-Host " [+] $domain \$user : $truePass "
86+ Write-Host " Username: $domain \$user "
87+ Write-Host " Password: $truePass "
8788 }
8889 else
8990 {
90- Write-Host " [+] $user : $truePass "
91+ Write-Host " Username: $user "
92+ Write-Host " Password: $truePass "
9193 }
94+ Write-Host " "
9295 }
9396 }
9497}
9598Invoke-SCOMDecrypt
9699<#
97- GNU AFFERO GENERAL PUBLIC LICENSE
100+ GNU AFFERO GENERAL PUBLIC LICENSE
98101 Version 3, 19 November 2007
99102
100103 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
0 commit comments