From 574546b004a77868e4960ab9aaabe553a2af0aa3 Mon Sep 17 00:00:00 2001 From: dyoder Date: Mon, 20 Sep 2021 07:39:32 -0400 Subject: [PATCH] minor logging update --- Create-LocalAdmin.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Create-LocalAdmin.ps1 b/Create-LocalAdmin.ps1 index 2df1910..0b467c5 100644 --- a/Create-LocalAdmin.ps1 +++ b/Create-LocalAdmin.ps1 @@ -6,8 +6,8 @@ param( [Parameter(Mandatory=$true)][string]$FullName, [Parameter(Mandatory=$true)][string]$Description ) -LogMsg "Create-LocalAdmin.ps1" -LogMsg "Securing supplied password" + +## Secure supplied password Try { $SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force ; $Password = $null } Catch { LogErr $_.Exception.Message ; Exit } If ( IsAdmin )