Announcement

Collapse
No announcement yet.

Import Hyena variable %E% into netdom or custom tool?

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

  • Import Hyena variable %E% into netdom or custom tool?

    Anyone have an idea about how to use Hyena to pass the computer name variable %E% to the netdom.exe command? I use this to rename computers in the domain when needed but it would be nice to be able to pass the computer name from Hyena to the netdom command when doing so. The entire command is quite lengthy to have to type out each time you want to change the name of a computer.
    What about a GUI that show the existing name and the name you want to change to. Click OK and it passes these to the netdom commnand? This could be an extremely useful tool in Hyena if it could be integrated.

  • #2
    Re: Import Hyena variable %E% into netdom or custom tool?

    What is the syntax for the command you use when you do these renames?

    Comment


    • #3
      Re: Import Hyena variable %E% into netdom or custom tool?

      netdom renamecomputer /newname: /userD: /passwordd: /userO: /passwordo: /force /reboot:5

      Comment


      • #4
        Re: Import Hyena variable %E% into netdom or custom tool?

        You can create a custom tool with prompts, but you are limited to 3. So, something like:

        netdom renamecomputer %E% /newname:%P1:New Computer Name% /userD: /passwordd: /userO: /passwordo: /force /reboot:5

        If the user and password information are the same each time you can hard-code those in the tool.

        To run it you will right-click on a computer, and when it runs the %E% will be replace with the computer name you have selected and the %P1% will prompt you for the new computer name.

        Comment


        • #5
          Re: Import Hyena variable %E% into netdom or custom tool?

          Thank You....Thank You....Thank You!!!

          Did I say Thank You?

          Man...Systemtools keeps surprising me with what Hyena is able to do. I tell you what though...I need a class on how to use this great tool. I have been using it since version 4.7 and I'm still amazed!

          BTW...I works great!! I will try playing around with it a bit so I don't have to hardcode the password in clear text within the tool.. :-( Echhhh!
          Perhaps I'll add 2 more prompts for the passwords. Don't care if the account name is in there.

          Truely awesome...thought i was gonna have to right a VB tool.

          Comment


          • #6
            Re: Import Hyena variable %E% into netdom or custom tool?

            Hi there,

            Is there any chance I could get a copy of this please MSD_guy?

            Comment


            • #7
              Re: Import Hyena variable %E% into netdom or custom tool?

              What is it that you need? If it's the command line... here ya go.

              netdom renamecomputer %E% /newname:%P1:New Computer Name% /userD:domainname \username /passwordd:%P2: Username Password Please% /usero:domainname\username /passwordo assword /force /reboot:5

              You must have netdom installed in somewhere on your computer or network share and this location must be in your enviroment variable path

              Comment

              Working...
              X