Archive for the ‘Powershell’ Category

Use Windows Powershell to determine the Windows Edition

There are many Powershell scripts to determine the operating system version, but determining is the edition is a bit harder. You might need this information for certain applications. The information about the version is encoded in the OperatingSystemSKU property of the Win32_OperatingSystem class of the WMI (Windows Management Instrumentation) The following table shows the currently available […]

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 […]