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'