Contents tagged with System Administration

Making an RDP connection to a server you just rebooted with PowerShell

Jan 08 2012No Comments by justin

Update: With the release of PowerShell 3.0 imminent, I wish to draw everyone's attention to Shay Levy's (blog|twitter) simplified Posh v3 version. It's an all to familiar story. You  need to reboot a server, and then you need to start a remote desktop connection into it. So what do you do? You open up a command prompt, type ping -t <HOSTNAME> and wait until the server responds to pings. When that happens, you keep trying to connect via remote desktop, until it works. There's got to be an …

PowerShell, Remote Desktop, System Administration Read more

More Windows command line PATH goodness pathed.exe

Jun 11 2011No Comments by justin

Readers of this blog probably think I have an obsession with editing my system path. That belief is absolutely correct. I even added a tag on this blog for the articles about path manipulation. I am a command line junkie who is constantly trying out new tools so I have to add them to my path. I've written about doing this from powershell here and here, as well as doing it with setx. While these methods are good, I wanted something better. I got better with pathed.exe. pathed.exe is a program …

command line, path, System Administration Read more

Setx where have you been all my life?

May 08 2011No Comments by justin

For me, the reference implementation of mixed emotions is the combination of anger, relief, joy, and frustration when "Why isn't there a way to do X?!" becomes "How come no one ever told me about Y?!" This past Friday, I got to experience that entire bag of emotion thanks to setx.exe. Setx (technet - ss64) is a command line utility that sets environmental variables permanently on windows. This behavior is distinct from the set command (technet - ss64) which only affects the current cmd.exe …

command line, path, System Administration Read more

IIS7 Web Application Enabled Protocols: Yet Another WCF Gotcha!

Jan 30 2011No Comments by justin

One of the cool things about IIS 7.0  and WCF is the ability to serve WCF endpoints with non-http bindings. Naturally, this new feature presents new opportunities for the developer to get frustrated by WCF configuration headaches. This blog post is about one of them. I was writing a WCF web service that had three endpoints, Json, Soap 1.1, and net.tcp. This services primary purpose was to be the middleware for the mongo database where my applications data was held. In the end, I didn't need …

devops, HowTo, System Administration, WCF Read more

A quick guide to installing PHP 5.3 on Redhat Enterprise or Centos 5 machine

Oct 26 2010No Comments by justin

I was tempted not to post this article since it is little more than a link to someone elses blog article. However, said article is so useful its worth sharing in a manner more permanent than a tweet. A while back I was trying to get some PHP code to run on a Redhat Enterprise Linux server. Long story short, the code required PHP 5.3, RHEL does not package PHP 5.3, I didn't feel like compiling PHP, and it was late Friday afternoon.  So I googled around and discovered that someone made a yum …

centos, php, System Administration Read more

Cleaning up your path in PowerShell, and adding stuff to it.

Oct 02 2010No Comments by justin

A while back, I demonstrated some PowerShell one-liner-fu for path management. I also pointed out that my machine had duplicate entries in its path. Most people would not care about this at all. Most of the few people that do care would cleanup their path by hand. However, there are a mentally deranged few who realize the world needs a PowerShell script to clean up our paths for us. Luckily for you, I am that kind of crazy. However, I don't stop there. I also show you how to search the registry …

path, PowerShell, System Administration Read more

MongoDB as a Windows Service

Oct 01 2010No Comments by justin

Update: an older blog article exists on Chris Conway's blog. The directions are out of date, but its an interesting read to get a historical perspective of the improvements mongod's windows support. Unix is an OS built around a worse is better philosophy. Part of that philosophy is defining things through convention. This has many advantages. One is thats its really easy to write a program that can run in both the console and as a daemon. The mongo server, mongod, is a perfect example of this. …

mongodb, System Administration Read more

Two Powershell One-Liners: Appending to my %PATH% and Whats in my %PATH%

Sep 15 2010No Comments by justin

To say I've fallen in love with PowerShell is an understatement. PowerShell is what perl would be; if perl was object based instead of stream based, and lacked all the "culture" of perl. I use PowerShell for a lot of things lately. Recently, I've been using it to manage my path, thanks to this PowerShell tip of the week. This has inspired me to share two one-liners related to path management. The first allows you to add an item to your path. Few things annoy me more than windows programs that …

path, PowerShell, System Administration Read more

Impressions of PowerShell: Taking Buck Woody's EventLog example further.

Aug 12 2010No Comments by justin

This is not quite a PowerShell first impressions article. I've toyed with PowerShell a few times before previously. Most notably, I toyed with the PowerShell TFS cmdlets that come with Team Foundation Server Power Toys a little under a year ago. However, I never stuck with it long enough to retain any of the syntax. Recently, I discovered a one liner by chance in Buck Woody's blog. This lead me to do some serious PowerShell tinkering today. I'm not quite a seasoned PowerShell novice, but I …

PowerShell, System Administration Read more

An evening with a Solaris 10 Appliance on Virtual Box

Aug 08 2010No Comments by justin

I have a tolerate/hate relationship with Solaris. I've played with it occasionally, and I always seem to spend too much time administering Solaris, giving me less time to solve the problem I intended to use Solaris for. Recently, I was called in to troubleshoot some mod_perl scripts for a client. The troubleshooting was done over email and I never actually had access to the machine the code ran on. I was asked to do some follow-up, and I wanted to more accurately reproduce the client's …

System Administration Read more