From 4e02ef57116178d5c1fcdb99da7fb34dbc9cf23c Mon Sep 17 00:00:00 2001 From: jnisbet Date: Wed, 6 Mar 2024 16:36:09 +0000 Subject: [PATCH] Update UnlockScript.ps1 --- UnlockScript.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnlockScript.ps1 b/UnlockScript.ps1 index 86d2d23..7834132 100644 --- a/UnlockScript.ps1 +++ b/UnlockScript.ps1 @@ -11,7 +11,7 @@ $group_linked_ou = [PSCustomObject]@{ #List of security groups taken from the object above $group_keys = $group_linked_ou | ForEach-Object {$_.psobject.properties.name} -#$env:username + #Get current logged in user $logged_in_user = Get-ADUser -Identity $env:username -Properties MemberOf @@ -58,7 +58,7 @@ $users_to_unlock = list_ou_members -ou_dns $ou_dn_list #GUI creation $form = New-Object System.Windows.Forms.Form -$form.Text = 'Select a Computer' +$form.Text = 'Unlock Account' $form.Size = New-Object System.Drawing.Size(400,200) $form.StartPosition = 'CenterScreen'