Final Std_Out Powershell teaser

Started by spl, July 28, 2026, 10:18:26 AM

Previous topic - Next topic

spl

The attached .wbt script is as simple as it gets to (1) determine PS is installed via Registry query (2) and if installed output available modules in gridview.

And, for the curious, the Powershell Gallery is the main repository of some pretty incredible modules. Put this sample into the previous code I posted to see what can be installed

;sample 5
q = '*WMI*'  ; or try '*Excel*'  or '*SQL*'
args = "Find-Module {q} | Select Name, Version, Author, ProjectUri, Description | Out-Gridview -Title 'Searching for {q} Modules' -PassThru"
args = StrReplace(args,'{q}',q)
Stan - formerly stanl [ex-Pundit]

td

I tried the above, but it ran for so long that the OS decided the process had hung. Being an impatient soul, I eventually just killed it.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

spl

Quote from: td on Today at 07:27:51 AMI tried the above, but it ran for so long that the OS decided the process had hung. Being an impatient soul, I eventually just killed it.

I had Jim test it before I uploaded. I have over 300 modules installed, and it took a long time for me to get a GUI gridview. But it was meant to terminate immediately if reg entry was not there. Besides, most of the stuff could just be run from commandline. Sorry, you had an issue --- maybe a problem with Winbatch
Stan - formerly stanl [ex-Pundit]

JTaylor

It took about 10 seconds to display for me but I only had about 75+- modules.

Jim

SMF spam blocked by CleanTalk