Author: jbmurphy

  • PowerShell to create Aliases for all your functions

    I have a naming convention for all the function that I write, for example: JBMURPHY-AD-GetGroup. I wanted to create aliases for all my functions with my employers’s name, for example CompanyName-AD-GetGroup. I created the following function to “grep” all the function names and create an “Alias” file. This file would have all the set-alias commands that…

  • PowerShell, Active Setup and running a SCCM package “before log on”

    I have been struggling with the following idea for a while: How to run a package before before a person logs on using SCCM. There is a setting in SCCM that runs when no one is logged on, but if a person reboots and logs on before SCCM fires, the package will never run. Basically…

  • Dotted (period) NetBIOS Domain Name issues

    I inherited a Dotted Netbios Domain Name. Technically it is allowed, but it is not recommended. With every new version of software, I cringe in fear that it will come back to bite us again. For example: Moving from Exchange 2003 to 2010 was a problem for a while, but it seemed to been resolved…

  • PowerShell Query to find a users computer name in SCCM

    We rely on Remote Assistance. Usually, I just type “msra /offerra” in to my PowerShell session and lookup a the user’s computer name in the SCCM report named “Computers for a specific user name”. I wanted to make that process quicker. I wrote the following script to query SCCM for the “list of computer’s who’s…

  • PowerShell scripts to create a WinPE 4.0 wim/ISO

    I have been  a WinPE hacker since it was only available to SA subscribers. With Vista it was free to the world, and I started moving all my setup processes to it. I have always used the dos batch scripts found in this forum to create a new WinPE ISO. Since WinPE 4.0 is coming out…

  • Specifying Firefox setting (like proxy) on a machine across the enterprise.

    We are interested in how to “push” proxy settings for Firefox across the environment. There are custom builds that claim to work with Group policy, but I wanted to manage the standard Firefox. A little digging shows that you need to create 2 files. First, a file named mozilla.cfg and place it in “C:\Program Files\Mozilla Firefox”.…

  • Quick PowerShell script to run a command on every machine in an OU

    I wanted to run a command on all machines in an OU. I know this documented all over the place, but this is the syntax I like:

  • Install OpenManage Server Administrator on ESXi5 via PowerCLI

    Dell has changed how you install OpenManage Server Administrator on ESXi5. To do this via PowerCLI, use the following steps. Download the new vib file: OM-SrvAdmin-Dell-Web-6.5.0-542907.VIB-ESX50i_A02.zip (most recent can be found here) Extract it and upload the folder via the vSphere client (browse datastore and upload the extracted folder) Put the ESXi5 box into maintenance mode.…

  • jbmurphy.com’s first year in blogging

    I had a goal last year, a goal of blogging 2 times a week for the entire year. I ended up with 116 posts. A couple of those posts were a few dates late, so I did not meet my exact goal of 2 times week, but I always managed 4 posts in every two…

  • SQL query to find the number of WordPress posts this year!

    I was compiling my year end wrap up (hits, posts, twitter followers), and I realized I did not know how many posts I created this year. I ran the following query again my WordPress database to find out. select post_date,post_title from wp_posts where post_type = ‘post’ AND post_status = ‘publish’ AND post_date like ‘%2011-%’; My…