The second will show the time of the last password change for the selected user account: $Label2 = New-Object ![]() $ComboBox.Location = New-Object (60,10)Īdd two more labels to the form. $Users = get-aduser -filter * -Properties SamAccountName You can get the AD user list using the Get-ADuser cmdlet (from Active Directory for Windows PowerShell module): $ComboBox = New-Object $Label.Location = New-Object (0,10)Ĭreate a drop-down list and fill it with a list of accounts from the Active Directory domain. ![]() To add graphical dialog and control elements to it, add the code below before the last line ($main_form.ShowDialog()).Ĭreate a label element on the form: $Label = New-Object Adding Dialog-Box Components to Your PowerShell FormĪs you can see, an empty form is displayed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |