• Did not work for me.. I got the following error...

    RegQueryValueEx() returned error 2, 'The system cannot find the file specified.'

    Msg 22001, Level 1, State 1

    I am running SQL 2005 with 3 instances.