minor logging update

This commit is contained in:
2021-09-20 07:39:32 -04:00
parent 746111a54c
commit 574546b004
+2 -2
View File
@@ -6,8 +6,8 @@ param(
[Parameter(Mandatory=$true)][string]$FullName, [Parameter(Mandatory=$true)][string]$FullName,
[Parameter(Mandatory=$true)][string]$Description [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 } Try { $SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force ; $Password = $null }
Catch { LogErr $_.Exception.Message ; Exit } Catch { LogErr $_.Exception.Message ; Exit }
If ( IsAdmin ) If ( IsAdmin )