Search found 397 matches

by localpct
Fri Mar 11, 2022 12:25 pm
Forum: PowerShell GUIs
Topic: Picturebox to represent client health
Replies: 14
Views: 2323

Re: Picturebox to represent client health

I appreciate the idea, but I'm not willing to replace something that I have with something like that If I get this right, I can save hundreds of lines of code :) $allPictures | Where-Object { $_.Name -like "*Slider" } | ForEach-Object { #I just need to do the work here } 5 mins later, this...
by localpct
Tue Mar 08, 2022 5:24 pm
Forum: PowerShell GUIs
Topic: Picturebox to represent client health
Replies: 14
Views: 2323

Re: Picturebox to represent client health

Interesting …. Thanks so much I’ll look into this.
by localpct
Tue Mar 08, 2022 3:09 pm
Forum: PowerShell Studio
Topic: Installer Custom Actions
Replies: 6
Views: 4382

Re: Installer Custom Actions

This makes sense and I appreciate the script example. I’ll give it a go on the next sprint.
by localpct
Tue Mar 08, 2022 7:27 am
Forum: PowerShell GUIs
Topic: Picturebox to represent client health
Replies: 14
Views: 2323

Picturebox to represent client health

I'm building a form that I plan on using pictureboxes as 'sliders' to represent client health... think thermometer Green(Great), Yellow Green, Yellow, Red, Pink(Terrible) my current code looks like this and it works well but it's not scalable. How can I script these specific pictureboxes ONCE and th...
by localpct
Fri Mar 04, 2022 9:39 pm
Forum: PowerShell Studio
Topic: Installer Custom Actions
Replies: 6
Views: 4382

Re: Installer Custom Actions

Yes you nailed the install part, not sure why I didn't think of that, and it works perfectly. The code behind my .exe looks like this: checks for scheduled tasks (which is just to start the .exe on logon) and if it doesn't exist create it while ($true) { start-sleep -seconds 120 gather data Write da...
by localpct
Fri Feb 25, 2022 10:29 pm
Forum: PowerShell Studio
Topic: Installer Custom Actions
Replies: 6
Views: 4382

Re: Installer Custom Actions

This is packaged with you. I built a systray app using the blog article and build the .exe. Within the MSI build settings, I include the .exe, my start and uninstall PS1 files My start.ps1 looks like this & c:\folders\myapp.exe “Checking to see if the application is running before attempting to ...
by localpct
Thu Feb 24, 2022 10:43 am
Forum: PowerShell Studio
Topic: Installer Custom Actions
Replies: 6
Views: 4382

Installer Custom Actions

I have an installer custom action which starts an .exe
During install it creates a PowerShell screen
Are there arguments I can use in the Settings to eliminate this?

During uninstall, is there a way to stop the .exe so I'm not prompted to Automatically close the applications or Do not close :)
by localpct
Wed Feb 09, 2022 6:27 pm
Forum: PowerShell
Topic: Mimic event viewer filtering with Get-WinEvent
Replies: 6
Views: 3718

Re: Mimic event viewer filtering with Get-WinEvent

I need to show the rookies the event logs, how to filter them, and finally the corresponding dmp files I’ll load into WinDbg.

It’s okay, on to the next issue :). I appreciate you helping me with this effort as always.
by localpct
Wed Feb 09, 2022 7:49 am
Forum: PowerShell
Topic: Mimic event viewer filtering with Get-WinEvent
Replies: 6
Views: 3718

Re: Mimic event viewer filtering with Get-WinEvent

I misspoke about the registry.
We'll detect the event and use an existing process to copy the needed files from C:\Windows\System32\winevt\Logs and grab the .dmp files for debugging.
by localpct
Thu Feb 03, 2022 4:39 pm
Forum: PowerShell
Topic: Mimic event viewer filtering with Get-WinEvent
Replies: 6
Views: 3718

Re: Mimic event viewer filtering with Get-WinEvent

busy systems shouldn’t be an issue as we all have new HW w/ NVME disks. I think I’m engineering this wrong but it’s nice to know I’m on the right track. I was also reminded the evtx ( I think ) are store in Windows directory so I might just invoke them directly instead of toying with the registry .....