Skip to content
Josiah Pewterbaugh
  • Twitter
  • GitHub
  • LinkedIn
Night Mode
Text Size

IT Professional

PowerShell

Query to find all hardware models – including Lenovo

Posted on Published April 22, 2020April 22, 2020 by Josiah Pewterbaugh

I needed to find all the hardware models in our environment. Lenovo stores their model name in ‘version’ instead of ‘model’ like other vendors. I ran the following SQL code on our SCCM/MECM database to get the data I needed. This code can be converted to a report in SSRS or used in PowerShell. If […]

Get notified about duplicate host names in SCCM

Posted on Published March 8, 2020June 4, 2019 by Josiah Pewterbaugh

As part of the general maintenance and upkeep of SCCM we have a “Duplicate Host Names” collection in SCCM. This collection finds duplicate host names but unfortunately does not notify us when one is found. The script below will send an e-mail when the collection membership is greater than 0. We have it set up […]

Find previous commands in Command Prompt and PowerShell

Posted on Published March 5, 2020May 29, 2019 by Josiah Pewterbaugh

To find a menu of previous commands in Command Prompt just press F7.

Test your SCCM application deployment using PsExec

Posted on Published March 5, 2020May 27, 2019 by Josiah Pewterbaugh

When getting an application ready for deployment it is typically much faster to test that the install works as expected by running it as SYSTEM. When an application is ran from Software Center it is ran under the SYTEM context. Manually running the install as SYSTEM means you do not need to wait for your […]

Upgrading 7-Zip crashes Windows Explorer

Posted on Published March 8, 2020March 6, 2018 by Josiah Pewterbaugh

We started deploying 7-Zip v18.01 but quickly had to stop the deployment due to Windows Explorer crashing and leaving the end user without a taskbar. We tweaked our deployment and added this parameter to our PowerShell App Deployment Toolkit install string:

Posts navigation

Page 1 Page 2 Next page
© 2022 Josiah Pewterbaugh

Perfection is the enemy of progress!