Search found 11276 matches

by jvierra
Wed Sep 20, 2017 3:48 pm
Forum: PowerShell GUIs
Topic: Help with the responsive form
Replies: 19
Views: 188

Re: Help with the responsive form

Just add 20 jobs to the JobTracker. They will all run in parallel.
by jvierra
Wed Sep 20, 2017 3:29 pm
Forum: PowerShell GUIs
Topic: Capture Output to Rich Text Box
Replies: 2
Views: 43

Re: Capture Output to Rich Text Box

You cannot easily capture the verbose output. Do this: $output = Invoke-Command -ComputerName $Realservername -ScriptBlock { Remove-Item -path $args[0] -Recurse -force -PassThru } -ArgumentList $profPathComplete Or this. $output = Invoke-Command -ComputerName $Realservername -ScriptBlock { Remove-It...
by jvierra
Wed Sep 20, 2017 3:24 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 140

Re: $richTextBox

You still need to place only one breakpoint on that line. If you don't hit the breakpoint then the code is never being executed and the "X" variable is never getting created. Remember that variables are automatic and exisit on ly if they have been assigned. Programming is more than half about learni...
by jvierra
Wed Sep 20, 2017 1:18 pm
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 228

Re: Run job as a function?

You have successfully commented out all of your code after "<#region job" A "region" declaration looks like this. #region <comment tag goes here> ... code #endregion <same comment tag here for convenience> This "<#" opens a block comment which comments out all lines until it sees "#>". "#" is the sa...
by jvierra
Wed Sep 20, 2017 1:11 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 140

Re: $richTextBox

Because $x is null. Now you get to debug your command. break should stop on "$x = <command>" but only if $global:vm is a collection with at least one member. Break and inspect $global:vm.
by jvierra
Wed Sep 20, 2017 12:50 pm
Forum: PowerShell GUIs
Topic: Help with the responsive form
Replies: 19
Views: 188

Re: Help with the responsive form

Why would you add 20 scripts to the same job? That makes no sense. Are you saying you want to create 20 separate jobs? Just add the jobs one at a time. JobTracker will manage multiple jobs.
If you have 20 steps and you want them to run parallel as one job then use a workflow and add that as a job.
by jvierra
Wed Sep 20, 2017 12:34 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 140

Re: $richTextBox

The "Product Manual" with instructions is on the "Help" menu panel at the far left.
by jvierra
Wed Sep 20, 2017 12:17 pm
Forum: Windows PowerShell
Topic: $richTextBox
Replies: 11
Views: 140

Re: $richTextBox

Run it under the debugger and inspect the variables.
by jvierra
Wed Sep 20, 2017 12:17 pm
Forum: PowerShell GUIs
Topic: Run job as a function?
Replies: 15
Views: 228

Re: Run job as a function?

The function completes before the job is executed. The "JobComplete" script has to set the variable or load the control when the job is finished.
by jvierra
Wed Sep 20, 2017 12:06 pm
Forum: PowerShell GUIs
Topic: Hide and disable single TreeView node
Replies: 6
Views: 160

Re: Hide and disable single TreeView node

You really cannot use inheritance in PowerShell.

Build the custom control in C# and generate a DLL. Manually load and position the custom control.