When I develop different scripts for organizations, I like to customize the Window title as a small a “small touch”. For engineering firms, the window title may secure their intellectual property when the script is being run.
For whatever reason you want to customize the PowerShell Window Title, it’s a simple one liner.
$Host.UI.RawUI.WindowTitle = “Copyright © 2016 MasteringPosh.com. All Rights Reserved. Read More…
This quick article explains how to search for installed or pending Windows Updates on a system leveraging PowerShell, and create a report of what was found.
Recently I wrote a script that was to determine the current state of infrastructure in an environment. One of the items we wanted to scan for was the current state of Windows Updates. It’s often surprising and sometimes outright scary the current Windows update state of Windows Infrastructure. Read More…
While there are many posts that describe the code to do this function, there aren’t many posts that provide variables with meaning or actually describe the syntax. This post describes the method by which you can retrieve a Distinguished Name from a Fully Qualified Domain Name.
Fully Qualified Domain Name (FQDN): division.domain.root
Distinguished Name (DC): DC=division,DC=Domain,DC=root
Canonical Name(CN): division.domain. Read More…
Update! SCCM 2012 PowerShell Health Check Script is now available with optimized code! Check out the following post!
System Center Configuration Manager 2007 is an extremely powerful tool that, when configured correctly, will provide deployment and reporting capabilities for your organization. As explored in a previous article (located here), there are situations where a health check is helpful to ensure stability of the SCCM 2007 servers. Read More…
There have been several occasions while scripting in PowerShell that the script is dependent on a specific service in the running state. A good example is the need to wait for the WMI Service to startup prior to making a WMI call, or SQL Server where when you restart the services, you have to wait for the services to be in a running state before you can execute commands.
The following function solves this issue. Read More…