Search found 67 matches

by angelofstealth
Thu May 11, 2017 1:13 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

Look at the properties pane. What happens when you change a property? -- My point is if you manually change a property on a control is it stored somewhere to reference. Vs if you hard coded it in your code on a control you would know as the code is listed in the control. Control Sets... Based on you...
by angelofstealth
Thu May 11, 2017 12:35 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

How does this simple question, which is a yes or no response get a reply of this? Copying and pasting from a script? The question: Is there anyway to know in PSS if a set value for a control is set/changed from default in the properties vs hard coding it (which you would know right away)? jvierra: I...
by angelofstealth
Thu May 11, 2017 12:22 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

I know how to create a form in PSS, as how did i magically create the form/example when i started this thread which everything was working fine. Just want to have a responsive form when Get-AdComputer was called/used. Anyways... Is there anyway to know in PSS if a set value for a control is set/chan...
by angelofstealth
Thu May 11, 2017 11:57 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

I got rid of my "horribly" written code/wsf file and created one from scratch to reference what you had change/coded for the routine. Does the file/code you provided work, yes. Taking the pieces of what you added and putting them on my newly created wsf file it doesn't seem to update (got rid of my ...
by angelofstealth
Thu May 11, 2017 9:09 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

The message box doesn't come up with [System.Windows.Forms.MessageBox]::Show( $res.Count) or updating a form property (textbox) within the CompletedScript. It does work outside of the Completed script. I created a separate button with the following code, keeping it simple and the value of $res.Count...
by angelofstealth
Thu May 11, 2017 7:49 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

I understand about jobs, as i use the code under "Creating a Form that utilizes Jobs" with the command with Get-ADComputer and it works fine. Returns results, just with the JobTracker it is not returning results. I have test ed just putting in a simple WMI call, still return no results. You provide ...
by angelofstealth
Thu May 11, 2017 6:53 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

Running the debugger i see the values pass to the Add-JobTracker working.

1) $Job is returning empty on Receive-Job (CompletedScript)
2) If I pipe the Get-AdComputer into a variable, the variable is empty after it has ran.

Will keep troubleshooting, figured the $Job variable should not be empty.
by angelofstealth
Wed May 10, 2017 8:43 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

If i take the example/code provided (Add-JobTracker), did you return results/test it? 1) Wouldn't the progressbar information need to be in the completedscript and then followed by updating the datagrid? $progressbar1.Maximum = $v_AD_AllWinServers.count $progressbar1.Value = 0 2) It doesn't seem tha...
by angelofstealth
Wed May 10, 2017 4:04 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

Looks like we replied closed to each other and missed your updates, i will review your information and the referenced material. Thanks,
by angelofstealth
Wed May 10, 2017 3:58 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 9039

Re: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form

JobScript - Is what is running the commands i need completed, in this example Get-ADComputer.... Do i need to actually pass the command into a variable and return it, presume the jobscript does that, like scriptblocks with invoke-command. UpdateScript - Shouldn't need to use it if i don't care about...