Windows

Google Search Gadget

Google Gadget Screen Shot

After I got my new PC, the first thing I wanted to do was replace some of the functionality of my dynamic desktop. Primarily this meant a useful Google Search box. My search found 3 gadgets already in play, but to my dismay, they all link to adwords sponsored websites.

So, using Darren's example, I found that gadgets are really just little tiny websites. Hmm, I can code websites. Even really tiny ones.

Powershell - Enumerate Delegate Rights for a mailbox

Troubleshooting Outlook delegate permissions is a pain. I found the easiest way to get a user's delegates is to create a profile, open their mailbox and check each person.

That's why I created this script. Using the Quest Powershell addons for AD, it reads the delegate permissions for a specified mailbox, then looks up the display name for each delegate or mailbox they are a delegate for.

PowerShell - Find all enabled AD users

A friend is working on a script to pull active LCS accounts from his AD. One last bit of information that he that was troubling him was enabled/disabled AD accounts.

Lookup email addresses from CSV in AD

Scenario: I was given a list of 15,000 email addresses and asked if they were still valid in our Exchange environment.

Easy method: I ran a simple VBScript that does an LDAP query against each email address. This worked great, except that it took close to 5 seconds per email address to query our environment. (~20 hrs!) The over-all run time was going to be too extreme.

Creating a REALLY BIG file!

I ran into an occurrence where I needed to create a really big file. I was having an issue with a backup procedure failing at only 16gb. After extensive troubleshooting, I thougth that maybe the issue was with the hard drive. The backup solution would reach the 18gb mark and fail due to some inconsistency.

So, where I can I find a big file?

  1. Copy an existing large file off another server or workstation - great, but all the large files are open and I didn't want to shut something down.

Dynamic Interesting Desktops

One of my first contract jobs was for a small IT company in the area. I worked with them for about 4 months before a permanent, salaried position came along. (Sorry, I like having someone else pay for the benifits) One of the most memorable things the owner shown me was his background.

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

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.

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...

To the PowerShell

As I am learning some of the benefits (and quirks) to PowerShell, I am finding new ways to take advantage of the language. Besides the enormous user community out there available via Google, there are a number of people all trying to do the same thing. It appears that we are all very excited about the simplicity and complexity of Powershell.

I've been working to revise (yet again) my User export script to write to a single CSV file and to include additional fields. Using the Scripting Guys recent post, I was able to find the Powershell value for when an account was created. Oddly, the same value in VBScript?! :) Next I used my sample from my LastLogonTime field to span several OUs into a single CSV file. The normal export-csv does not appear to span, simply over-write.

Syndicate content