Search found 6 matches

by ltwillis
Fri Oct 23, 2015 8:10 am
Forum: PowerShell GUIs
Topic: ListBox issue
Replies: 3
Views: 4157

Re: ListBox issue

I didn't see your post/reply until today. I found the issue though. Turns out just had to make one simple change to line 5 as below: [System.Array]$EA = $holdval2.EmailAddresses For some reason, the data type for $EA was being set to ArrayList instead of just Array, and the Load-Listbox function is ...
by ltwillis
Wed Oct 21, 2015 1:25 pm
Forum: PowerShell GUIs
Topic: ListBox issue
Replies: 3
Views: 4157

ListBox issue

I have the PS script below: $holdval2 = Get-Mailbox $MailboxAddress.Text $WhenMailboxCreated.Text = $holdval2.WhenMailboxCreated $ADUserObjectCreated.Text = $holdval2.WhenCreated $EA = $holdval2.EmailAddresses Load-ListBox $Proxys $EA $EA ends up holding a list of email addresses (6 of them) in an a...
by ltwillis
Wed Oct 07, 2015 10:04 am
Forum: PowerShell GUIs
Topic: How to fetch multiple values from a PS script result
Replies: 10
Views: 4692

Re: How to fetch multiple values from a PS script result

I figured it out! $holdval = Get-Mailboxstatistics $textbox1.Text | select * $textbox2.Text = $holdval.StorageLimitStatus $textbox3.Text = $holdval.ItemCount $textbox4.Text = $holdval.DisplayName $textbox5.Text = $holdval.LastLogonTime $textbox6.Text = $holdval.LastLoggedOnUserAccount This works bea...
by ltwillis
Thu Oct 01, 2015 2:10 pm
Forum: PowerShell GUIs
Topic: How to fetch multiple values from a PS script result
Replies: 10
Views: 4692

Re: How to fetch multiple values from a PS script result

Thanks, that's helpful, but that will put all the results into a single textbox. What if I want to take 4 or 5 of the return results and put them into corresponding textbox fields on the form? Using the example of get-mailboxstatistics: take the return value "StorageLimitStatus" and place ...
by ltwillis
Thu Oct 01, 2015 1:57 pm
Forum: PowerShell GUIs
Topic: How to fetch multiple values from a PS script result
Replies: 10
Views: 4692

Re: How to fetch multiple values from a PS script result

Meant to type PS script (Powershell script) and not PW script, sorry.
by ltwillis
Thu Oct 01, 2015 12:43 pm
Forum: PowerShell GUIs
Topic: How to fetch multiple values from a PS script result
Replies: 10
Views: 4692

How to fetch multiple values from a PS script result

I would like an easy way to store a PW script result into a variable and then place those values into corresponding fields on a form. For example: get-mailboxstatistics returns a number of values for a given mailbox. I'd like to have: $HoldValue = Get-Mailboxstatistics -Identity [some mailbox...] an...