Announcement

Collapse
No announcement yet.

set environment variables

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

  • set environment variables

    Hi,

    is there a way to set environment variables on remote computers using Hyena?

    Regards,
    Lutz

  • #2
    Re: set environment variables

    Best bet is probably using a logon script to modify/set these upon login.

    Comment


    • #3
      Re: set environment variables

      I just want to set or modify variables temporarily for testing. It is possible by using commandline tools like psexec, but it would be a nice feature for Hyena. As I can look at variables, why not set/modify them?

      Comment


      • #4
        Re: set environment variables

        Using a command line utility, or through a logon script as suggested would be your best option at this time.

        Hyena 5.0 has registry editing capabilities, and is in beta now, but if you need something now, the above would be best.

        Comment


        • #5
          Re: set environment variables

          Do you want to do this remotely?

          I mean, do you want to set the environment variables on a remote machine, from your machine?

          If so, your in the right ball park with psexec.exe.

          Create a tool in Hyena. For the command line, put this:

          cmd /c cls & psexec \\%E% cmd & pause

          This will cause a remote command prompt to open. Manually set your variable there.

          Or...

          Use the above in conjunction to create a batch to set the variables.

          Comment


          • #6
            Re: set environment variables

            I think that you can use a WMI script to set an environment variable. The reason that Hyena can't do it is because Microsoft does not support doing this remotely. PsExec (and WMI) run a remote process and then tell it what to do.

            We hope to support running WMI scripts in a future release.
            Kevin Stanush
            SystemTools Software Inc.

            Comment


            • #7
              Re: set environment variables

              Thx to all of you.

              I use psexec w/o Hyena batch as I need the variables just for testing purposes on single remote machines. I only thought it would be a nice feature to do it with Hyena > computer props > environment ... because I do (nearly) everything with Hyena...

              Regards, Lutz

              Comment


              • #8
                Re: set environment variables

                <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Hyena 5.0 has registry editing capabilities.[/B]</div></div>

                That's the solution of my problems!
                Talking abaout things may be very helpfull.

                Comment


                • #9
                  Re: set environment variables

                  One thing that I forgot to say is that Microsoft does not really support modifying env. variables remotely (maybe through WMI ?), but if you modify it directly in the registry, it will probably require a restart of the machine before it will 'see' the variable. And, there are system and user variables, too, but I'm not certain which are where.
                  Kevin Stanush
                  SystemTools Software Inc.

                  Comment


                  • #10
                    Re: set environment variables

                    <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by kstanush:
                    <span style="font-weight: bold">if you modify it directly in the registry, it will probably require a restart of the machine before it will 'see' the variable..</span></div></div>Right. <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body"><span style="font-weight: bold"> And, there are system and user variables, too, but I'm not certain which are where.</span></div></div>System: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\SessionManager\Environment.
                    User: HKEY_CURRENT_USER\Environment.

                    Comment


                    • #11
                      Re: set environment variables

                      That would be cheesy, I guess. But if you can script it in a tool already...

                      Comment

                      Working...
                      X