MS Exchange 2007 does not show some users with Manage Mobile Device

So I found that I had some users that were not showing “Manage Mobile Device” within the Exchange Management Console. So with a bit of browsing around on the Web I found the answer. Well, when I say the answer, it’s a method to switch the functionality back on for that user.

Fist you need to make sure that you can run ADSIEDIT.MSC  If not then you’ll need to download the Support Tools from Microsoft. They only seem to offer a 32-bit version but this did work on my 64-bit server so not to worry there. Here is the link to the download page, and make sure you download both files.

Windows Server 2003 Service Pack 2 32-bit Support Tools

Once you’ve downloaded and installed then run ADSIEDIT.MSC and it should open a window. Now look through the Tree in the Container USERS and find the user that has the problem. Right mouse click the user and click on properties. Scroll down the list and look for “msExchMobileMailboxFlags”.  Once found, select it and click EDIT and change the value to 1 if it’s not set. Then click okay.

You may have to restart the Exchange Management Console, but your user should now have the “Manage Mobile Device” listed against them now.



Vista Error 10107: A system call that should never fail has failed

So I had a user that booted up their Windows Vista system this morning and found that they could not get connected to the network. When I popped over I found that it was displaying an error message in a balloon from the system tray saying:

Failed to connect to a windows service.
Windows could not connect to the System Event Notification Service service. This problem prevents limited users from logging on to the system. As an administrative user, you can review the System Event Log for details about why the service didn’t respond.

Then when I looked at the Services on the machine a number had stopped working. When I tried restarting then I got the following error message: “Vista Error 10107: A system call that should never fail has failed”

At this point I looked around the Internet and found an answer. It would appear that its a Corrupt TCP/IP Winsock Catalog. The method for trying to fix this is:

  1. Start the PC in Safemode.
  2. Open and CMD prompt (press the Windows Key+R).
  3. In the CMD prompt type netsh winsock reset and press enter.
  4. Restart the computer.

This will reset the Winsock Catalog to either a clean slate or a previous configuration. It will remove all Winsock LSP (Layered Service Providers) previously installed, including any malfunctioning ones.

To check the LSP’s installed on your Vista system, use netsh winsock show catalog command.


Giving Vista & Win7 the ability to access Xserve

I had the need the other day to make a desktop running Windows XP connect to an Apple Server for a user.  I setup a user on the OSX Server and then tried to connect to this machine from my Laptop to make sure that the account was working before I went over and tried to show the user and looked silly when it didn’t work. I found that my Laptop running Windows 7 would not work. Okay so off to Google and see what I can find. It appears that Vista & Win7 both have a different set of rights that stop the ability to set a Mapped drive to the Apple Server, LAN Manager Authentication:  Vista & Win7 defaults to “Send NTLMv2 response only”.

Here is what is needed to make it work:

Run secpol.msc

Go to: Local Policies –> Security Options

Find “Network Security: LAN Manager authentication level”

Change Setting from “Send NTLMv2 response only” to “Send LM & NTLM – use NTLMv2 session security if negotiated”

Needless to say, I got a connection and proved it worked, so was able to head over to the user and show them how to MAP a drive.

Installing Windows 7 on my HP HDX X16-1005EA Premium Notebook PC

image So I bought this Notebook back in Feb-2009 with Vista on it. It’s been a great little machine. Not too small or either too big, since most Notebook/Laptop bags seem to have been designed for 17” machines.  Anyway I thought it was time to load Windows 7 on it. So I purchased a copy of Home Premium with the intention of loading the 64-bit version. Next I thought, let’s head to HP’s website and see what drivers, if any, they have for my Notebook and Windows 7. Well, HP and really on the ball. They’ve got a whole section with download’s for Windows 7 for my Notebook.

so about 1 hour passed and I had all my drivers and software updates needed from HP for my Notebook for Windows 7. Next I had to backup any files I had. This was easy as I already had an Iomega 250GB external HDD which I connect via USB 2.0.  At this point though I was not sure that Win7 would be able to read my Vista backups. So I just simply did Folder copies from my Notebook across to the USB drive.

Now I was ready to install Windows 7.  I inserted the Windows 7 DVD and booted up my Notebook. At the BIOS screen I made sure that I booted from the DVD Rom and not the HDD and started the installation.  Once into the configure screen I deleted the old partition and did a clean install onto the fresh disk. After about 50mins it was all installed and the system rebooted.

Once I had logged in and I then went about installing the HP drivers that I had previously downloaded. These went on without really too much of a fuss. The only thing that you have to remember is that some of the applications are going to need a reboot after they’ve been installed. I only had to reboot my Notebook about 3 or 4 times in total so not too bad. Everything works great, except the HP Assistant. I’ve still had issues making this work, but it’s not a big issue as I can check the HP website for updates manually.

My Windows Experience Index (WEI) scores are as follows:

ASP.NET 2.0 Oracle Connection

So I wanted to create a connection to my Oracle Database 10g using Visual Studio 2008 in Visual Basic. I was not sure how to go about this to start with as I’ve been teaching myself the .NET framework with some nice books ordered from Amazon.  My problem was that the books would detail nicely how to make connections to MS SQL, but tell you in a small paragraph that you can connect to other database’s such as Oracle or My SQL, just not how to actually do it.

So after a bit of searching on the Web, reading material from Oracle and trying to match up the methods that were used in my books for the MS SQL connection I finally got it working. This is what I did.

First I needed to download the ODP.NET provider from Oracle. Head to the Oracle site and download Oracle 11g ODAC with Oracle Developer Tools for Visual Studio.  Oracle always say that the client software needs to be at the same level or higher than the database, so using 11g Client on a 10g database is fine.  Once downloaded, you’ll need to unzip and run the Setup.exe which will launch the Universal Installer (which does need to be in Administrator mode if running on Vista).

Once installed go to All Programs, Oracle – OraClient11g_home1, Configuration and Migration Tools, and launch Net Configuration Assistant.  Now configure a Listener for your selected protocol (normally TCP and default Port number).  Of course if you have different values then make sure you key in the correct values before saving. Once complete exit from the program.

Now you should be able to start up Visual Studio 2008. Once loaded you create a new ASP.NET Website. Next you’ll need to add a Reference to the Oracle Provider. Click on Website from the menu and then Add Reference. Once the box has loaded, look under the .NET tab for Oracle.DataAccess, highlight and press OK.

Now for some code. First let me tell you about the table within Oracle that I did my testing on.  It’s a simple table called STORE with two columns:

10 Oxford
20 London
30 Leeds
40 Aberdeen
50 Manchester


Now I created a Web Form called readOrcTable.aspx with the following code:

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head id="head1" runat="server">
    <title>Show Store Details</title>
    <form id="form1" runat="server">
        Runat="server" />
        Runat="server" />


Next I created a VB Class called OracleSQL.vb with the following code:

Imports Microsoft.VisualBasic
Imports System
Imports System.Data
Imports Oracle.DataAccess.Client
Imports System.Collections.Generic

Public Class Stores1

    Private Shared ReadOnly _connectionString As String
    Private _Number As String
    Private _Name As String

    Public Property Number() As String
            Return _Number
        End Get
        Set(ByVal value As String)
            _Number = value
        End Set
    End Property

    Public Property Name() As String
            Return _Name
        End Get
        Set(ByVal value As String)
            _Name = value
        End Set
    End Property

    Public Function GetAll() As List(Of Stores1)
        Dim results As New List(Of Stores1)
        Dim con As New OracleConnection(_connectionString)
        Dim cmd As New OracleCommand("SELECT NO,NAME FROM STORE ORDER BY NO", con)

        Using con
            Dim reader As OracleDataReader = cmd.ExecuteReader()

            While reader.Read()
                Dim NewStore As New Stores1()
                NewStore.Number = CType(reader("NO"), String)
                NewStore.Name = CType(reader("NAME"), String)
            End While

        End Using

        Return results

    End Function

    Shared Sub New()
        _connectionString = "User Id=LoginID;Password=LoginPwd;Data Source=ORACLE;"
    End Sub

End Class

I’ve removed my User Id and Password, which you will have to swap for your own.  And that is all that there is too it.