Posts Tagged ‘Powershell’

The case of the 340.000 contacts in a user mailbox

One of our users suddenly had this issue, this user had over 340.000 contacts most of them duplicates. As it turns out it was a syncing issue with his mobile phone. Deleting 340.000 contacts using Outlook is a painful task, so I figured out another way to do it. Here are the steps I took: […]

Exchange Custom Attribute editor with GUI, written in Powershell

Microsoft Exchange extends the default Active Directory schema with some additional attributes, also known as custom attributes. These extra free fields are very handy, we use them for example for third party applications,employee identification numbers etc. Recently we migrated to Exchange 2010, nice but the Exchange Management console 2010 is not supported on 32bit versions […]

Disable hibernation on multiple Windows 2008 servers using Windows Powershell

By default hibernation is disabled on Windows 2008 server machines. However, a file called “hiberfil.sys” (equally sized to the amount of memory in the machine) is created in the root of the system volume. On a machine with 2GB of memory, this is not a big issue. However I discovered this on a VM with […]

Mass creation of HP WSEM WiFi guest accounts using SSH and PowerShell

I was asked to create 365 (1 year) of WiFi (daily) guest access accounts, and export them to CSV. Of course I didn’t want to create them by hand.. this is where PowerShell came in. I used the following PowerShell script to create random WiFi guest accounts:

Change pagefile settings on multiple servers using Powershell

Today I wanted to change the page file settings on some of our servers (about 80), doing that by hand would take ages. That’s why I came up with the following Powershell script, the script does the following: Loop through a list of Windows 2003 servers in our active directory, only Windows 2003 machines were […]

SCOM alert notification subscription delay sending for x minutes and don’t sent if alert is auto-resolved within that time

In my company we are using SCOM for monitoring our server environment. Off hours we also get notified about critical alerts using a SMS/GSM modem. Using default SCOM functionality we delay the sending of notifications by 5 minutes. This works fine for alerts with a “new” state. However if an alert is closed within the […]

vSphere snapshot overview script (with e-mail report)

I was looking for a way to e-mail an overview of all exisiting snapshots (on virtual machines) in our virtual environment. VMware provides an excellent powershell cmdlet pack (known as PowerCLI), you can download the latest version (as of today) here: I used PowerCLI to write a script that does the following: Loop through […]