Announcement

Collapse
No announcement yet.

Launch Computer Management MSC from Hyena on listed computer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Launch Computer Management MSC from Hyena on listed computer

    I was wondering if anyone used a custom tool that opened the compmgmt.msc to allow for remote management of a computer, if you right clicked on a computer in Hyena. I know many of the features to manage a computer remotely are in Hyena but I want to be able to do remote disk management.

    Thanks

  • #2
    Re: Launch Computer Management MSC from Hyena on listed computer

    Its:

    compmgmt.msc /computer:%E%

    (or whatever Hyena variable you want to put in there)
    Kevin Stanush
    SystemTools Software Inc.

    Comment


    • #3
      Re: Launch Computer Management MSC from Hyena on listed computer

      This does not work for me. I get the following message

      Unable to execute command line:
      compmgmt.msc /computer: ris6-260-xpsp1 %1 is not a valid Win32 application. When I run the tool I am right clicking on the computer name in the right side display window and selecting the tool.

      Comment


      • #4
        Re: Launch Computer Management MSC from Hyena on listed computer

        Make sure that you can get it to work outside of Hyena (ie from a command prompt) before trying it with a custom tool.

        First, you may need a path to the .msc file, and then if you can't just run the .msc file its probably due to the .msc file extension not be associated with MMC.

        You can either form the association using Explorer, or just:

        c:\windows\system32\mmc.exe compmgmt.msc /computer:%E%

        ...or something like that.
        Kevin Stanush
        SystemTools Software Inc.

        Comment


        • #5
          Re: Launch Computer Management MSC from Hyena on listed computer

          I dont get it??
          I can run this from a Command prompt

          compmgmt.msc /computer:ris6-260-xpsp1

          and it opens the computer management.msc for the remote computer. Just like it should. If I try the same from Hyena...it doesnt work. I have checked to make sure that .msc's are associated with mmc.exe and they are.
          I have tried changing the path in hyena to look like this

          C:\windows\system32\mmc.exe compmgmt.msc /computer:%E%

          but it give me an error as before.

          I need to make this work. Anything else I should check?

          Comment


          • #6
            Re: Launch Computer Management MSC from Hyena on listed computer

            Try using this:

            mmc.exe c:\i386\compmgmt.msc /computer:%E%

            If your compmgmt.msc is located in a different directory, you can change that accordingly.

            Comment


            • #7
              Re: Launch Computer Management MSC from Hyena on listed computer

              This is what works for me.

              mmc.exe c:\windows\system32\compmgmt.msc /computer:%E%

              I post this solution for others who may be need this as well.

              Thanks for all your help

              Comment


              • #8
                Re: Launch Computer Management MSC from Hyena on listed computer

                May I make a suggestion? Not everyone has a Windows directory. I am sharing a config.ini file with 4 other lan administrators. I enter this in the run box or cmd window and it works. But the command line in Hyena gives me an error, saying mmc can not open the file.
                mmc.exe %windir%\system32\compmgmt.msc /computer:%E%

                I replaced the %E% with a computer in the command line though
                I tired the original and got the same error as above. It seems that Hyena's command line interface is different somehow? just a thought. For now I can make 2 tools in the settings. I just thought I could make it work for both systems.

                [This message has been edited by Trammel (edited 03-23-2004).]

                Comment


                • #9
                  Re: Launch Computer Management MSC from Hyena on listed computer

                  I don't think that you can use %windir% in a command line. You can if you use Windows, as it replaces that symbol, but Hyena does not, and when it tells Windows to run it, Windows probably just uses it just like you entered it. You can however, just set up a tool to run a batch file, ie:

                  x:\tools\runmmc.bat %E%

                  Then, in your batch file, you can probably use %windir%
                  Kevin Stanush
                  SystemTools Software Inc.

                  Comment


                  • #10
                    Re: Launch Computer Management MSC from Hyena on listed computer

                    You can also try:<div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body"><div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>cmd.exe /c compmgmt.msc /computer:%E%</pre></div></div></div></div>

                    Comment


                    • #11
                      Re: Launch Computer Management MSC from Hyena on listed computer

                      i had to replace %E% with %computer% myself and %windir% did work for me !

                      so:

                      [General]
                      SoftwareType=compmgmt
                      Enabled=1
                      MenuName=compmgmt
                      AutoExecute=1

                      [View]
                      ViewerCommand=mmc.exe %windir%\system32\compmgmt.msc /computer:%computer%
                      AutoTerminateAfterViewing=1

                      [Install]

                      Comment

                      Working...
                      X