Connecting to mof in command prompt for Report Configuration

  • Hi,

    Whenever I tried to connect to Program Files (x86) using Command prompt, it keeps saying it is not recognized. How can I overcome it? Actually I was trying to connect to mof file for configuration of reporting services. But I am having problem in command prompt and unable to proceed further. Your help is much appreciated. Thanks. (P.S: I am not really sure it is the appropriate place to ask about it , but it is somehow related to cmd prompt and I have no idea on how system works. Please feel free to direct me to proper forum to ask if I am asking in wrong place.)

  • What do you mean by trying to Connect to Program Files(x86)? Program Files is a directory, so you would simply browse to it. In Command prompt this would be 'cd "Program Files (x86)"'. MS makes it even easier to browse for long/complex paths by using the TAB key. If you type 'cd Pro' and then hit TAB, it'll change to 'cd "Program Files'" hit TAB again and it'll change to the x86 folder.

    This works for anything. If you were in a directory, and wanted to browse to a directory called "My Really long directory name - it's really long, and annoying" you could type "cd My" and hit tab and it would do the rest for you.

    P.s. Just in case, you'll need to ensure you're at the root of the drive your Program Files is in. This is likely C. typing 'cd \' will take you there. if it's on a different drive, you'll need to type '[Letter]:'. For example it it's on E, you'd type 'E:', then 'cd "program Files (x86)"'

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Hi Thom,

    Now I am getting another problem that the system cannot find the specified path, when I run the mofcomp

    C:\Program Files\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"

    Since the problem isn't solved, afraid there might be problem in path environment system variable, I even make sure and check that the correct paths are added in

    C:\WINDOWS\system32 and C:\WINDOWS\system32\wbem.

    Any idea how can I resolve this?

  • Try this:"C:\Program Files\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"

    John

  • Hi John,

    I tried with Program Files as you suggested. But it says it is not recognized as external or internal command.

  • In that case, I would guess either that sqlmgmproviderxpsp2up.mof doesn't exist in the location specified, or that the.mof extension is recognised as that of an executable file.

    John

  • I see....

    But I have already checked that file is in there.

  • Apologies, I missed an important word out of my last post:

    or that the.mof extension is not recognised as that of an executable file

    John

  • Just to check, previously you stated you were trying to access Program Files (x86), but your path is now Program Files. Is this correct?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • yes previously I tried with Program Files(x86) and just now I tried Program Files.

  • Try these commands, one at a time in the same order:c:

    cdcd "Program Files"

    cd "Microsoft SQL Server"

    cd 110

    cd Shared

    sqlmgmproviderxpsp2up.mof

    John

  • Hi John,

    The root of the problem is at the last part, sqlmgmproviderxpsp2up.mof . It keeps saying it is not recognized as internal or external command, operable program or batch. Apparently the mof file location is having issue. :pinch:

  • As I suspected, then, the.mof extension is not recognised as that of an executable file. You'll need to find a program to open the file with.

    John

  • Apparently mofcomp.exe (which is contained your system32) can compile these files. I would suggest a Google.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 1 through 15 (of 36 total)

You must be logged in to reply to this topic. Login to reply