Thursday, January 19, 2012

How to inspect spam logs in Exchange Server 2010

Open an Exchange Management Shell on Edge Transport Server and use Get-AgentLog command to examine the logs:
Get-AgentLog -StartDate "01/01/2012 0:00:00" -EndDate "02/01/2012 23:59:59" | ? {$_.IPAddress -eq "a.b.c.d"} | more
Get-AgentLog -StartDate "01/01/2012 0:00:00" -EndDate "02/01/2012 23:59:59" | ? {$_.SmtpResponse -like "*5.1.1*"} | more

Thursday, January 12, 2012

Configuring initial Exchange database

To setup Exchange with a custom initial mailbox database name and non-default locations of database and log files, you can use the following command line:
setup /mode:install /roles:c,h,m,t /mdbname:MDB01 /DbFilePath:E:\MDB01DB\MDB01.edb /LogFolderPath:D:\MDB01LOG
For more information please read this article.

Troubleshooting ESX virtual machine performance issues

Please read the following KB article from VMware.

Monday, December 12, 2011

Unable to create snapshots on Windows guest operating systems

Creating a snapshot (including the memory state) of a virtual machine on Windows fails
You see the error:
Cannot create a quiesced snapshot because the create snapshot operation exceeded the time limit for holding off I/O in the frozen virtual machine
The VMware Snapshot Provider service does not get installed when installing VMware Tools
Uninstalling and re-installing VMware Tools does not resolve this issue
This issue can occur on Windows 2003 and 2008 operating systems if the VMware Snapshot Provider does not get installed.
To work around this issue manually register the VMware Snapshot Provider:
Click Start > Run, type cmd, and click OK.
Enter these commands, in sequence:
regsvr32 "C:\Program Files\VMware\VMware Tools\Drivers\vss\VCBRequestor.dll"
regsvr32 "C:\Program Files\VMware\VMware Tools\Drivers\vss\VCBSnapshotProvider.dll"
"C:\Program Files\VMware\VMware Tools\COMREG.EXE" -register "C:\Program Files\VMware\VMware Tools\Drivers\vss\VCBSnapshotProvider.dll" "VMware Snapshot Provider" "vmvss" "VMware Snapshot Provider"

For more information read this article from VMware KB.

How to restore the default vCenter Server alarms

To restore the default vCenter Server alarms, you must remove all existing alarm definitions in vCenter Server and then set the value of alarm.version to 0.
To delete all the existing alarm definitions in the vCenter Server:
  •     Log in to the vCenter Server using the vSphere Client.
  •     Click the Hosts and Clusters view.
  •     Click the Alarms tab.
  •     Click Definitions.
  •     Note: All custom alarms must be manually recreated after they are removed. Ensure to note the custom alarms before removing.
  •     Select all alarms, right-click, and  click Remove.
To restore the default vCenter Server alarms, change the alarm version in vCenter Server:
  •     Connect to vCenter Server using the vSphere Client.
  •     Click Administration > vCenter Server Settings.
  •     Click Advanced Settings.
  •     Set alarm.version to 0.
  •     Set alarms.upgraded to false
  •     Restart the VMware VirtualCenter Server service.
For more information take a look at this VMware article.

How to reset domain admin password on a Windows Server 2008

  1. Boot onto DVD of Windows Server 2008
  2. Choose “Repair your computer”
  3. Launch cmd
  4. Go to c:\windows\system32
  5. Rename Utilman.exe to Utilman.exe.bak
  6. Copy cmd.exe to Utilman.exe
  7. Reboot on Windows
  8. Do the keyboard shortcut Windows + U when on the logon screen
  9. net user administrator Newpass123 inside the cmd
  10. log on with the domain admin account and this new pass
  11. change the password to remember it if needed
  12. Reboot on the DVD to put back the original Utilman.exe
For more info take a look at this link