Powershell Tangents
System Center Configuration manager (SCCM) 2007 R3 – Device Discovery Issue / Health Check script
By: Brenton Blawat A large hospital recently had been experiencing issues with their SCCM Server replication and SCCM Remote Console. Initially, they started to notice slow package replication which quickly expanded to the following list: SCCM 2007 Remote Console Loading Slowly SCCM 2007 Remote Console Not Connecting to Remote Clients SCCM 2007 Packages Taking Hours [...]
Read Full Post | Make a Comment ( None so far )PowerShell Script – SCCM 2007 Health Check
By: Brenton Blawat 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. The below PowerShell Script [...]
Read Full Post | Make a Comment ( None so far )PowerShell queryService–Wait for a Dependency Starting Service
By: Brenton Blawat 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 [...]
Read Full Post | Make a Comment ( None so far )Powershell Import-GPO : The Data Is Invalid Fixed
By: Brenton Blawat This article is to aid those who are receiving the “Data is Invalid” error message in Powershell on Windows Server 2008 R2. This issue occurs while trying to import policies from one domain into their a different domain using a migration table. This issue has to do with the migration table editor [...]
Read Full Post | Make a Comment ( 2 so far )PowerShell Script: Encrypting / Decrypting A String – Function Encrypt-String
By: Brenton Blawat The encryption and decryption of strings is essential when creating an enterprise product that has clear text passwords. This function displays how to encrypt and decrypt a string using Powershell using Richard’s code located at http://poshcode.org/116. While I found his code very useful, he didn’t explain the syntax and is why I [...]
Read Full Post | Make a Comment ( 4 so far )PowerShell Script: Finding A Distinguished Name of a Group/User: Function Find-DN
By: Brenton Blawat This article explains the the method by which one would be able to Search Active Directory for the distinguished name of a User or Group. This is helpful when trying to add an object to Active Directory or adding Users to Groups. Function Find-DN Finding Distinguished Name: Download PS1 Here 1: # [...]
Read Full Post | Make a Comment ( 6 so far )PowerShell Script: Retrieving Distinguished name (DN) from A Fully Qualified Domain Name (FQDN)
By: Brenton Blawat 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. Quick Reference: Fully Qualified Domain Name [...]
Read Full Post | Make a Comment ( 3 so far )PowerShell Script: Distinguished Name / Fully Qualified Domain Name to string
By: Brenton Blawat This article is designed to be short and sweet. This article displays the method by which one would retrieve the FQDN or Distinguished Name of the Domain. This is code is very useful for any operations in Active Directory. A must know for any scripter that needs to call the domain on [...]
Read Full Post | Make a Comment ( None so far )

