added log message

This commit is contained in:
2021-03-22 15:43:23 -04:00
parent da1479b96b
commit 6230c962d6
+2 -1
View File
@@ -4,4 +4,5 @@ If ( !((Get-ItemProperty -Path $REG_PATH -Name $REG_PROP -ErrorAction SilentlyCo
LogMsg "Adding registry entry: ""${REG_PATH}\${REG_PROP}"" = 1" LogMsg "Adding registry entry: ""${REG_PATH}\${REG_PROP}"" = 1"
Try { New-ItemProperty -Path $REG_PATH -Name $REG_PROP -PropertyType DWord -Value 1 | Out-Null } Try { New-ItemProperty -Path $REG_PATH -Name $REG_PROP -PropertyType DWord -Value 1 | Out-Null }
Catch { LogErr $_.Exception.Message } Catch { LogErr $_.Exception.Message }
} }
Else { LogMsg "The registry path already exists: ""${REG_PATH}\${REG_PROP}""" }