...hopefully some useful VMware related stuff

Article archive

09/10/2010 23:00

Script to list local and removable disk usage

This script uses the wmi object of win32_logicaldisk and outputs to a table that displays free space on both local and removable disks and percent free. The output is shown next and script below:     SCRIPT:   $diskarray = gwmi win32_logicaldisk | where {$_.Size -gt 0} $diskobject =...
30/08/2010 16:00

Allow Ping through firewall of Windows Server 2008 and Server 2008 R2

To allow a ping test to a Windows Server 2008 machine you need to open the firewall to allow it with this command:   netsh firewall set icmpsetting 8   To acheive the same thing but on Windows Server 2008 R2, use the following command:   netsh advfirewall firewall add rule name="ICMP...
18/08/2010 13:00

P2V of Windows Server 2008 - Cannot boot, winload.exe is missing or corrupt, Status: 0xc0000225

After doing a conversion of a Windows Server 2008 and powering on the new virtual machine, a black screen as shown below is displayed complaining that \windows\system32\winload.exe is missing or corrupt with a Status of 0xc0000225: To resolve this issue: Attach your Windows Server 2008...
18/08/2010 12:00

P2V of Windows NT4 SP6 Server requests files SP6I386.exe and KB885835

    During the P2V process of a Windows NT4 server which has Service Pack 6a installed as per the requirements, the VMware Converter application requests two files to be present and a location for these, see image below: The two files are: SP6I386.exe DOWNLOAD HERE ...
07/07/2010 12:00

Attributes list from dsquery on an AD 2003 domain

List of useful attributes you can get using a dsquery on an Active Directory 2003 domain:   Use the following command to list all attributes for the user: dsquery * "CN=Training2,OU=Training,OU=Division,DC=domain,DC=com" -scope base -attr *   Or pick the attribute you...
06/07/2010 21:00

Script to identify Inactive Active Directory User Accounts for an AD 2003 domain

Get all Active Directory users in the domain, pick out firstly User accounts which have never logged in and second get the last logged in time for each account which have logged in and report back any accounts which haven't logged in within the last 31 days. Couldn't find PowerShell cmdlets for...
21/06/2010 00:00

NetApp change Snapmirror replication throttling script

Wrote this script to get round an issue at a customers site with the Snapmirror replication taking too much of the bandwidth across a LES link. Because I wanted to enable and disable as well as report on the status of replication throttling I put all variants into the one script. There are 4 main...
19/06/2010 12:00

NetApp filer Aggregate space used by Volumes report

To avoid over-committing storage it is essential to know how much space you have assigned to volumes on your aggregates. If you just run an aggregate list, the amount of space shown as used and free doesn't equal the actual amount used. The script below creates a table showing Filer, the aggregate...
08/06/2010 22:00

NetApp Snapmirror Status - Email Report

PowerShell Script to Email a report of the status of Snapmirror Replication on your NetApp filers. The Script uses the PoSh OnTap Module downloadable from https://poshontap.codeplex.com/ which gives masses of NetApp PowerShell commands.   Download script HERE is also below the...
30/05/2010 12:00

Configure or Reset IBM 249824E Fibre Switch with IP and Zones

Using a serial cable to connect into the serial IOIOI port on the front of the unit, or telnet to the default IP address of 10.77.77.77 / 255.255.255.0. Open Putty in this case from COM port 5 serial with the default settings shown below and connect:   Press Enter and the login box will...

Search site