Search found 29 matches

by ianstraw
Wed Oct 28, 2015 7:03 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

Oh wow! Ok, i know how get-aduser works and yes get-aduser * does not work. I was simply trying to explain that the button would get all users off that domain that was selected in the form.
by ianstraw
Wed Oct 28, 2015 6:41 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

I know how ad-user works. I dont think you understand what i am trying to do. Let me try again.... - Combo box has 3 different domains to choose from - for this example the button runs get-aduser * If the person using the form selects d1 from the dropdown list, hits the button then the get-aduser ru...
by ianstraw
Wed Oct 28, 2015 6:21 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

Thanks for the info so far. Can you expand on it a little please? If i have a drop down list of domains, D1, d2, d3 The user selects d1 and hits the button. For this example the button will do a get-aduser * but i need to know to get the selected item to feed into get-aduser so it will run get-aduse...
by ianstraw
Wed Oct 21, 2015 1:26 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

Yes ive read every blog re this hence the reason im asking for help. To reiterate... The combox box has a selection of domains which are the "strings" When a user selects one of these domains from the drop down box and clicks a GO button it performs an action such as get-aduser * I need to...
by ianstraw
Mon Oct 19, 2015 3:48 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

I have created the form and the combo box. I have populated the combox box with the domains. What i cant figure out is how to take the domain selected in the box and run the code on that domain. If you have 3 domains dc1,dc2,dc3 where in the code is this stored? how do you take that value and run it...
by ianstraw
Mon Oct 19, 2015 2:41 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Re: Combobox example

I want a combo box that lists several domains. once the required domain is selected a button is pressed that then runs some code on that domain that was selected.
by ianstraw
Fri Oct 16, 2015 7:25 am
Forum: PowerShell GUIs
Topic: Combobox example
Replies: 33
Views: 13011

Combobox example

Hi, can anyone start me off or provide an example of a combox box that does the following. I have tried the spotlights but i am still struggling. Basically have a combo box listing domain so for example d1, d2, d3 which ever domain is selected you hit a button and it does something such as get-aduse...
by ianstraw
Fri Oct 16, 2015 4:57 am
Forum: PowerShell GUIs
Topic: Help with some code
Replies: 2
Views: 1809

Re: Help with some code

Thats worked. thanks
by ianstraw
Thu Oct 15, 2015 5:01 am
Forum: PowerShell GUIs
Topic: Help with some code
Replies: 2
Views: 1809

Help with some code

I have some code that is basically going out looking for serves offline, online etc. This works, however i have some lines that need writing out to a text box to show whats happening. This line of code works $richtext.text = some text, some text However this line does not work $richtextbox1.text = $...
by ianstraw
Thu Aug 27, 2015 6:41 am
Forum: PowerShell Studio
Topic: Standalone install issue
Replies: 9
Views: 3008

Re: Standalone install issue

Name Value ---- ----- CLRVersion 2.0.50727.5485 BuildVersion 6.1.7601.17514 PSVersion 2.0 WSManStackVersion 2.0 PSCompatibleVersions {1.0, 2.0} SerializationVersion 1.1.0.1 PSRemotingProtocolVersion 2.1 Powershell v2 console opens fine and works .net is 4.52 Thanks