Monthly Archives: November 2010


Script to scan for h/w serial number

I collegae of my asked a bunch off serials of servers. Instead of inspecting all the servers I used the following script :

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)
Set colBIOS = objWMIService.ExecQuery _
    (“Select * from Win32_BIOS”)
For each objBIOS in colBIOS
    Wscript.Echo “Manufacturer: ” & objBIOS.Manufacturer
    Wscript.Echo “Serial Number: ” & objBIOS.SerialNumber
Next

Replace . with computername or ip address to scan a remote computer/server.


Bad performance using Outlook 2003 with Exchange 2010 mailbox

 

If you are using Microsoft Office Outlook 2003 in online mode together with a mailbox that is located on a Microsoft Exchange Server 2010 server, you may notice the following symptoms:

  • Outgoing e-mail messages stay in the Outbox for up to 1 minute.
  • New e-mail messages do not arrive in the Inbox for up to 1 minute.
  • Items that are deleted from folders do not disappear from the folder for up to 1 minute.
  • Items that are moved from one folder to another folder take up to 1 minute to disappear from the original folder.

Generally, you notice that folder updates do not occur automatically in a timely manner.

http://support.microsoft.com/kb/2009942


Reservations are deleted incorrectly from a DHCP server that is running Windows Server 2008 R2

Consider the following scenarios:

  • Scenario 1
    • You have two DHCP servers that are running Windows Server 2008 R2.
    • You set up a split-scope configuration on both DHCP servers.
    • You make identical reservations on both DHCP servers.
    • A DHCP client that reserves an IP address broadcasts a DISCOVER packet and both DHCP servers respond to the DISCOVER packet by sending an OFFER packet.
    • The DHCP client receives a reserved IP address from one of the DHCP servers.

    In this scenario, reservations on the other DHCP server are deleted incorrectly. Therefore, the reserved IP addresses may not be assigned to DHCP clients that reserve the addresses.

  • Scenario 2
    • You have a DHCP server that is running Windows Server 2008 R2.
    • You create reservations for DHCP clients on this DHCP server.
    • The DHCP client releases the obtained IP address multiple times.

    In this scenario, reservations on the DHCP server are deleted incorrectly. Therefore, the reserved IP addresses may not be assigned to DHCP clients that reserve the addresses.

http://support.microsoft.com/kb/981776


Error : The specified DHCP client is not a reserved client.

While creating a reservation in a DHCP scope (Windows 2008 R2) I received the error mentioned.

After some investigation I discovered that Windows 2008 R2 doesn’t allow reservations that are not in the scope, although the subnetmask (for example 255.255.0.0)  is big enough. Changing the subnetmask isn’t an option, so you have to delete and re-create the scope.

You can export the settings with the following command :

netsh dhcp server ip-adres server scope X.X.X.X dump > c:\dump,txt

Then edit the subnet mask

and import the scope with the following command :

netsh exec c:\dump.txt

Using Windows 2003 and Windows 2008 (not R2) it is possible to add reservations within the subnetmask but out of the DHCP scope!


Exchange 2010 : Change number of concurrent mailbox moves

By default Exchange 2010 moves 5 mailboxes at the same time. But you can change that.  Go to %exchangeinstalldir%\V14\BIN and open with ultraedit, notepad or something like that the following file : MSExchangeMailboxReplication.exe.config

Look for the following (control-f :-)) : MaxActiveMovesPerTargetMDB =

Change the default number (2 or 5, depending which Servicepack) to a higher or lower number.

Restarting or something like that is not necessary.


Howto : Re-create Exchange 2003 IIS virtual Directories

  1. When it’s possible to save/export the configuration do so.
  2. Delete the virtual directories (exchange, public, oma etc.)
  3. Download Metabase explorer and remove the DS2MB key (first key on the top) in orde to force recreating the directories.  Download it here : MetabaseExplorer.renametozip
  4. Restart MS Exchange system attendant service and test OWA/OMA etc

You have to wait for about 15 minutes or just restart the server to speed things up. (I prefer the latest, sometimes some processes don’t restart perfectly)