Month: January 2012
-
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…
-
PowerShell script to add Active Setup registry entries
I am interested in using Active Setup more throughout our environment. The thing I like about Active Setup is that if I screw up, it will only run once and not over and over! Kidding, but the “run one” nature of Active Setup is nice. I wanted a PowerShell function to create Active Setup registry…
