Search found 67 matches

by angelofstealth
Wed May 10, 2017 1:56 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 6813

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

I added the tracker to my code, not receiving an errors now. No results are being returned, i pipe my completedscript/receive-job, results are empty. $timerJobTracker = New-Object 'System.Windows.Forms.Timer' $timerJobTracker.Interval = 2500 $timerJobTracker.add_Tick($timerJobTracker_Tick) Can anyon...
by angelofstealth
Wed May 10, 2017 7:10 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 6813

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

I added the JobTracker with the parameters/code to the form, running into the following error. Attached updated code. Code/Tracker $ADFilter = 'OperatingSystem -Like "Windows *Server* *2008*" -and enabled -eq $true' Add-JobTracker ` -Name "ADLookUp" ` -JobScript { PARAM ($ADFilter) Get-ADComputer -F...
by angelofstealth
Tue May 09, 2017 8:11 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 6813

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

Thanks for the help MarvelManiac, pointed me in the right direction. My code will now update the datagridview with the computer objects without freezing the form. Much appreciated for that. Follow up question: How can i make the Get-ADComputer call not freeze my form if it is taking a while. I know ...
by angelofstealth
Fri May 05, 2017 5:56 am
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 6813

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

I think i know what i need to do to get to what i want,

Basically want each object from an array (computer AD objects) be the progress bar update, inside the progress bar i presume the jobtracker/job will perform the work.

I will run through the debug, see if i can come up with a solution. Thanks,
by angelofstealth
Thu May 04, 2017 12:04 pm
Forum: PowerShell GUIs
Topic: GUI: Progress Multiple Com Objects/Progress Bar - Responsive Form
Replies: 38
Views: 6813

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

Goal: 1) read in events from Active Directory into an array 2) Process each object in that array while perform and invoke command to a remote computer, updating the progress bar at the sametime. - How can I combine the loop of the computer objects with the indexing of the progress bar at the sameti...
by angelofstealth
Wed Apr 05, 2017 6:47 am
Forum: PowerShell GUIs
Topic: GUI - Tab Control tabs - Disable/Not clickable
Replies: 6
Views: 1659

Re: GUI - Tab Control tabs - Disable/Not clickable

This doesn't seem to work for me after a form load. I pasted this code after my form load and disabled the tabpages in the formload and they are still clickable.
by angelofstealth
Tue Apr 04, 2017 1:12 pm
Forum: PowerShell GUIs
Topic: GUI - Tab Control tabs - Disable/Not clickable
Replies: 6
Views: 1659

GUI - Tab Control tabs - Disable/Not clickable

I'm trying to not make certain form control tabs not clickable on form load. List example below, wondering what i am missing, thanks Example: $tabcontrol1.Enabled = $false <-- will disable the whole tabcontrol $tabpage2.Enabled = $false <-- disables the tabpage Want to disable the $tabpage2 from not...