Search found 13730 matches

by jvierra
Fri Sep 13, 2019 10:38 am
Forum: PowerShell GUIs
Topic: Did Call-Form get deprecated?
Replies: 7
Views: 136

Re: Did Call-Form get deprecated?

That was changed years ago and you are apparently watching a very old video.
Only the name has changed. Everything else is the same Just use "Show" instead of "Call".
by jvierra
Thu Sep 12, 2019 12:28 pm
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 168

Re: Running responsive gui with wokflows

A little testing shows that even a simple loop no longer works when run as a job and uses a parallel task. Even this fails at a command prompt. $VMs = 'one','two','three' Start-Job -Name StartMultipleVms -ArgumentList $VMs -ScriptBlock { Param ($VMs) workflow StartAzureVM { Param ($VMs) ForEach ($VM...
by jvierra
Thu Sep 12, 2019 12:12 pm
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 168

Re: Running responsive gui with wokflows

Did you try the second version that does not call the VM? If that one fails then you have an issue with the form. Try a new form and carefully copy and add the code without changing anything else.
by jvierra
Thu Sep 12, 2019 9:51 am
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 168

Re: Running responsive gui with wokflows

I wanted you to use my code as written and not just assume that you know the answer.

Try the code in my post above. If that still fails then try it this way and see what happens:

Debugging requires patience.
by jvierra
Wed Sep 11, 2019 8:45 pm
Forum: Windows PowerShell
Topic: Get Input from CSV Files
Replies: 3
Views: 419

Re: Get Input from CSV Files

To rename the columns in a CSV with columns:

import-csv test.csv -header oldname,newname | select * -skip 1
by jvierra
Wed Sep 11, 2019 2:08 pm
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 168

Re: Running responsive gui with wokflows

Try it like this to see what you get as a result. $VMs = Get-Content -Path $FileBrowser.FileName Add-JobTracker -Name StartMultipleVms -ArgumentList $VMs -JobScript { Param ($VMs) workflow StartAzureVM { Param ($VMs) ForEach -parallel ($VM in $VMs) { Get-AzVm $vm } } StartAzureVM $VMs } -CompletedSc...
by jvierra
Wed Sep 11, 2019 2:07 am
Forum: PowerShell GUIs
Topic: How to enable check boxes in treeview
Replies: 1
Views: 81

Re: How to enable check boxes in treeview

Properties panel. Look for checkboxes property and set it to "True".
by jvierra
Sat Sep 07, 2019 9:07 pm
Forum: Windows PowerShell
Topic: Get Process Info, capture it and send it via email
Replies: 2
Views: 289

Re: Get Process Info, capture it and send it via email

What is it that you are asking? What is the question or what are the errors?
by jvierra
Fri Sep 06, 2019 4:00 pm
Forum: PowerShell GUIs
Topic: Getting Data from DataGridView Column
Replies: 5
Views: 166

Re: Getting Data from DataGridView Column

$row.Cells['PowerState'].Value
by jvierra
Fri Sep 06, 2019 12:19 pm
Forum: PowerShell GUIs
Topic: Getting Data from DataGridView Column
Replies: 5
Views: 166

Re: Getting Data from DataGridView Column

That is not what I posted. You have to enumerate the rows. "Cells" is not a property of the "Rows" collection. It is a property of a "row" object.

foreach ($row in $datagridview1.Rows){