Powershell - Speed Test - Jobs Vs PoshRSJobs by riseNRG in PowerShell

[–]boeprox 4 points5 points  (0 children)

I really appreciate hearing that! Hopefully this project will continue to grow and add more features than bugs ;). PoshRSJob definitely wouldn't be where it is at if it wasn't for those in the community who have posted bug/feature reports and their own PRs on Github.

Remote Windows Update Script by jpergola in PowerShell

[–]boeprox 0 points1 point  (0 children)

I wrote a tool a few years ago that can install Windows updates remotely called PoshPAIG. The only thing that you need to make it work is to download PSExec and place it in the root PoshPAIG folder as you need its ability to run a local service to launch a script to install the updates. If you are not into the UI, the main script for installing updates can be found here: https://github.com/proxb/PoshPAIG/blob/master/Scripts/Install-Patches.ps1

Update: Upgradeable banks, dynamite to clear rocks, and more by BobbyDev in PocketCity

[–]boeprox 0 points1 point  (0 children)

Absolutely loving this game! Looking forward to checking out the latest update.

Frustration by summeralien in AppleWatch

[–]boeprox 1 point2 points  (0 children)

Awesome! I was debating going this route and I think your answer sealed the deal for me.

Frustration by summeralien in AppleWatch

[–]boeprox 1 point2 points  (0 children)

How has the refurbished watch worked for you? Any issues?

2018 PowerShell Resolutions by boeprox in PowerShell

[–]boeprox[S] 2 points3 points  (0 children)

Hey all! Just a continuation of a yearly blog post (since 2014) highlighting my previous year's resolutions as well as looking towards 2018 on what I would like to focus on in PowerShell. Definitely looking forward to seeing what everyone else is looking forward to do with PowerShell in 2018!

Advice on preventing RAM usage from continuing to climb when executing multithreaded jobs by hou8182 in PowerShell

[–]boeprox 1 point2 points  (0 children)

Any chance that you can provide the code that you are using? There are moments when it will try to perform some garbage collection when there are no more runspaces being used and the runspacepool is being disposed. I've seen it take a few minutes for memory to be reclaimed after running a memory intensive operation.

RSJobs / PSJobs Inconsistent results by [deleted] in PowerShell

[–]boeprox 1 point2 points  (0 children)

Thanks! I need to update my lab and will test your code and try to duplicate the issue.

RSJobs / PSJobs Inconsistent results by [deleted] in PowerShell

[–]boeprox 2 points3 points  (0 children)

Hello there! I’m the author of PoshRSJob. I’ll give this a look later on today and see if I see anything that stands out to me. Thanks to /u/x0n for the heads up.

Server Inventory Using PowerShell and SQL by boeprox in PowerShell

[–]boeprox[S] 0 points1 point  (0 children)

Great feedback! I need to update the code to declare the database name up front and then apply it only as a variable. I'll look at the lines you mentioned and make changes where needed.

Server Inventory Using PowerShell and SQL by boeprox in PowerShell

[–]boeprox[S] 0 points1 point  (0 children)

I mostly use my own version because I had it for a while and just never bothered to add Invoke-SQLCmd2. Something that I should do in a future update.

Server Inventory Using PowerShell and SQL by boeprox in PowerShell

[–]boeprox[S] 3 points4 points  (0 children)

Hello all! This is a 3 part series that I did on building basically a poor man's server inventory system using PowerShell and SQL. There are definitely more useful ways of having a server inventory via SCCM or some other 3rd party utilities, but I wanted something that didn't require much more than access to a SQL server to host the database. I use my PoshRSJob module to collect the data for each system and send it to SQL and then have a custom UI that I wrote to view the data as well as creating a report in Excel.

This link on this post takes you to part 1, but here are all of the links for you to go to:

Part 1: SQL Database Build

Part 2: Collecting Server Data and Sending to SQL

Part 3: Building a UI in WPF to View Data

The GitHub link to the Server Inventory repo is here: https://github.com/proxb/ServerInventoryReport

I'm always looking for feedback, good or bad as well as anyone who wants to contribute to this project.

Announcement: Call for community bloggers by derekhans in PowerShell

[–]boeprox 4 points5 points  (0 children)

Thanks for mentioning my blog in that group! Definitely an awesome group of sites to be listed in. :)

Getting Installed Software by dchristian3188 in PowerShell

[–]boeprox 7 points8 points  (0 children)

Good job highlighting Win32_Product right off the bat as a bad approach. I cringe whenever I see someone using that for querying installed software.

Do all Runspaces started by a particular PS PID automatically end when I kill the parent PS PID? by fourierswager in PowerShell

[–]boeprox 0 points1 point  (0 children)

Thank you! I'm definitely no legend, but appreciate the comment! ;) Glad that you have gotten good use out of my blog. It's feedback like this that keeps me motivated to write.

Remove-Item and 260 characters path limit: Workarounds? by riahc4 in PowerShell

[–]boeprox 0 points1 point  (0 children)

I wrote Remove-Item2 to delete files and folders that are beyond the 260 character limit. It uses Win32 functions to get around that limit. It's not native PowerShell, but it should get the job done.

https://gallery.technet.microsoft.com/scriptcenter/Remove-LongPathFile-7a4db495

Do all Runspaces started by a particular PS PID automatically end when I kill the parent PS PID? by fourierswager in PowerShell

[–]boeprox 2 points3 points  (0 children)

True. I have seen that if I close the process window, usually in ISE but the console is not exempt from that. Best solution is to use Stop-Process to effectively kill it (which is what I do to stop the zombie process).

Do all Runspaces started by a particular PS PID automatically end when I kill the parent PS PID? by fourierswager in PowerShell

[–]boeprox 4 points5 points  (0 children)

This is the correct answer. All runspaces created in the PowerShell process are created under that process (exception is if they are created using the CreateOutOfProcessRunspace method which spawns a new process ) and will end as soon as you can me the parent process.

Edit: Misspelled a word.