I am trying to make a GUI to show IIS APPPool names on dropdown menu.
I can get the app pool names but I cant show in label.
Screenshots are attached.
Thanks in advance.
- Import-Module webadministration -ErrorAction SilentlyContinue
- Import-Module iisadministration -ErrorAction SilentlyContinue
- Load-ComboBox $combobox1 (Get-ChildItem -Path IIS:\AppPools | select Name) -DisplayMember "Name"
- $combobox1_SelectedIndexChanged={
- #TODO: Place custom script here
- Write-Host $ComboBox1.ValueMember
- $results = $combobox1_SelectedIndexChanged
- $label1.Text = $results;
- }