Another great use for PSExec

Tired of searching through racks and racks of servers to not find what your looking for?

Tired of having to run back to your desk to remote into that server to insert a CD?

Utilizing the power of PSExec, you can eject the CD drive remotely without having to leave your comfy desk.

@echo off
if "%1"=="" goto end
echo Starting process to eject the CD on %1
psexec \\%1 -c "\\yourworkstationname\script$\ejectcd.exe"
:end

Winter Ballet Recital

My daughter is the red-head at the far right. My favorite part is when they do the large loop... if you watch closely, my daughter is the only one that does the spin before going around...

:)

Enjoy!

Variants of the same name...

Curious about my Google Twins, I thought I would check in on each of them. Here is what I know about them to date.

  1. Myself - This query sums up almost all my works.
  2. Realtor in Columbus, OH who made the 5 million dollar club in 2002.
  3. Farmer working on alternate fuels from plant biomass in Redwood Falls, MN
  4. Attorney/Police Officer in Macon, GA (also avid runner)
  5. Parole Agent in Napa, CA married to the warden at a Napa prison. Congrats! He hit a hole-in-one at age 54.
  6. Military Officer serving in Malaysia & Singapore (1941)
  7. Junior High school student placed 34th in a 2006 chess tourney.

How Many of Me says there are 15 Eric Woodford's in the US ... so time to find the others..

Series of DNS Cleanup Scripts

One of my current projects is helping with the removal of a legacy DNS server. I am reviewing Wireshark logs to determine which devices are statically set to utilize the old DNS servers. These devices range from servers and workstations to printers, digital senders and ILO servers. Each device should be logged into, and updated with the new DNS server IP address.

Server Inventory Script

I have been working on a number of projects lately where I need to touch most of the servers in our environment; be it changing DNS servers, or querying event logs, I needed a way to get every live server out there.

The attached script will query AD for all servers, then if pingable, it will attempt to gather more info via WMI. The final result is output to a CSV file in the C:\ root of the local computer.

  • Server name
  • OS version
  • Last Service Pack # applied (not patch version)
  • MAC Address, IP and DNS configuration for each active NIC

Musings: Driving Under the Influence of a Cell Phone

Yesterday, a woman (who wishes to remain anonymous) was the first person ticketed for driving while eating. She had just bought a cheeseburger in the drive-thru lane at In-n-Out Burger. Officer Smith pulled her over for reckless driving when he stopped our driver leaving the establishment, maintaining control of the car with her knees and holding the burger in one hand and tring to get a sip of her chocolate shake.

My 2008 Predictions for the IT Industry

crystal ballIn an IT group that I belong to, someone asked for predictions for the industry in 2008. I responded with a list of my top 5 predictions for 2008. For your consideration, here is my list of predictions along with a short description of why I think so.

Merry Christmas & Happy 2008!

This last year has seen a lot of changes in our household. We started 2007 with a wonderful Monterey vacation only to return to a pink slip. I then spent the next 7 months hopping between one short term contract position to another. August I started a long-term contract that I have been enjoying.

Query AD for Printer info

Expanding on my code to query single printer information, I found I could pull all networked printers from Active Directory(AD). This will help in cleaning up the naming standard for all our printers. Hopefully making DNS cleaner by using a single standard for host(A) records. Final file is written to c:\printer-info.csv. The attached script will return the following:

  • Printer name
  • Server name - where hosted
  • Port - name of printer port (local or network)
  • Share name

Modify Mailbox Alias field

We recently finished a project updating the naming standard for all our Windows AD accounts. Once completed, I found that approximately 3% of the accounts had the alias field set to this old naming standard. Googled high-and-low, I could not find a simple script to set the alias field. So...