Author: jbmurphy
-
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…
-
Updated PowerShell to determine if a user is visiting the office
I made an error. More like an incorrect assumption in this post, specifically this code.: My incorrect assumption was that the AD PowerShell components were installed on every machine (they are only my machine). I needed to rewire this code above to use ADSI, since Get-ADGroupMember is not on everyone’s machine. Below is that code:
-
PowerShell wrapper function to display a dialog box
I wanted a function that I could pass some text, and it would put that text in a dialog box for the user to click okay. Simple, but I will reuse it I am sure.
-
After removing last Exchange 2003 Server, mail enabled public folders no longer work
We decommissioned our last Exchange 2003 server the other day. All seamed well and I thought we were done. Nope. A few days later we had our scheduled downtime to apply patches, and I rebooted all three of our Exchange 2010 servers (for the record we are Exchange 2010 SP1 UR3 v3). Next morning people were…
-
PowerShell script to change default prf imported when Outlook starts up for the first time
In this previous post, I talk about how we use Office Customization Tool (OCT) and “.prf” files to deploy Office 2010. Continuing with the idea that I want to know if a person is visiting from another office, I want to be able to switch from our default of “cached mode” to “online mode” for…
-
Command to enable windows backup feature on Server 2008 R2
One liner: DISM /online /Enable-Feature /FeatureName:WindowsServerBackup /Quiet /NoRestart
