From 6230c962d6dfb67494c2dea4366cba5b392792e0 Mon Sep 17 00:00:00 2001 From: dyoder Date: Mon, 22 Mar 2021 15:43:23 -0400 Subject: [PATCH] added log message --- Fix-OfficeModernAuth.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fix-OfficeModernAuth.ps1 b/Fix-OfficeModernAuth.ps1 index 9f61caa..8da0c9d 100644 --- a/Fix-OfficeModernAuth.ps1 +++ b/Fix-OfficeModernAuth.ps1 @@ -4,4 +4,5 @@ If ( !((Get-ItemProperty -Path $REG_PATH -Name $REG_PROP -ErrorAction SilentlyCo LogMsg "Adding registry entry: ""${REG_PATH}\${REG_PROP}"" = 1" Try { New-ItemProperty -Path $REG_PATH -Name $REG_PROP -PropertyType DWord -Value 1 | Out-Null } Catch { LogErr $_.Exception.Message } -} \ No newline at end of file +} +Else { LogMsg "The registry path already exists: ""${REG_PATH}\${REG_PROP}""" }