Powershell

  • Get ciminstance powershell

    Get-CimInstance: Get WMI Objects with PowerShell

    In case you haven’t heard, starting on January 29, 2024, Microsoft has deprecated the Windows Management Instrumentation Command-line (WMIC), disabled by default on Windows 11 insider builds. If your application depends on WMIC, Microsoft, in their documentation, recommends that you…

  • Psscriptanalyzer powershell script analyzer

    PSScriptAnalyzer: The Ultimate PowerShell Script Analyzer and Linter

    As you get more into DevOps and running CI/CD pipelines with PowerShell code, you will find that you want to have a way to check your code as the pipeline runs. PSScriptanalyzer is a free PowerShell module that provides the…

  • WSUS import the underlying connection was closed

    WSUS Import The Underlying Connection Was Closed New PowerShell Script

    Microsoft recently announced that the WSUS import updates feature in the WSUS console would no longer be used. Instead, admins need to use a PowerShell script provided by Microsoft to import updates into WSUS. However, in my recent testing of…

  • Warning in the SYSTEM log from the PacRequestorEnforcement registry key set to 1

    Create and Configure PacRequestorEnforcement Registry Key with PowerShell

    As a follow-up to the news that Microsoft is rolling out a new Kerberos configuration change to remediate security vulnerability CVE-2021-42287. Starting with the rollout of the November 2021 security patches, Microsoft has introduced a new registry key that controls…

  • Vulnerable virtual machine in VMware vSphere to VMSA 2022 0001

    VMSA-2022-0001 CD-ROM vulnerability patch workaround and Locked CD-ROM error

    Well, closely on the heels of the Log4j vulnerability, we have started 2022 with a new VMSA-2022-0001 released from VMware. The new vulnerability affects a wide range of products, including VMware Workstation, Fusion, and ESXi. Let’s take a closer look…

  • Sign up for a free ipstack account to hit their API for IP geolocation

    PowerShell IP Geolocation based on State

    I have been revisiting a few things in the lab environment, including monitoring and other alerting that I have had set for a while. I had an outside box that even with the other security measures in place, I wanted…

  • Download system.management.automation

    How to write a Cmdlet in PowerShell Step-by-Step

    PowerShell is well, very powerful! If you have worked with PowerShell for any period of time, you have no doubt fallen in love with the cmdlet. The PowerShell cmdlet provides very human readable syntax that allows writing extremely powerful scripts…

  • Updating-VMware-PowerCLI-module

    VMware PowerShell Module Download

    PowerShell has quickly become the defacto standard for automating Windows environments over the past several years. However, using PowerShell, admins can automate other environments, including VMware vSphere using PowerShell. PowerShell is a modular platform that extends PowerShell with both “snap-ins”…

  • Difference-between-PowerShell-Core-LTS-and-Stable

    Difference between PowerShell Core LTS and Stable

    As most are aware, there are now two versions of Microsoft PowerShell for use in the enterprise. There is the legacy version of PowerShell, version 5.x, which is included with modern Windows versions. As most may know, PowerShell Core is…

  • Manage-VMware-with-PowerShell

    Manage Your vSphere Environment Using PowerShell

    Automation is the “king of the road” when it comes to managing today’s fast-paced infrastructure. VMware vSphere is an environment that greatly benefits from automation and allows organizations to lower the TCO of the environment, scale more easily, and have…