July 4th, 2009 | RSS Content Feed | RSS Comment Feed | 2,176,130 words posted since July 10, 1997 | Archives

Which person do you find to be the most trustworthy?

View Results

Loading ... Loading ...


 


 
  • Hi Hi Hi, this is really funny pictures. You pleas... »
  • The reason for posting it is because he has chosen... »
  • My apologies. Yes I did read your note however, th... »
  • Now who is running with the sheeple with his consp... »
  • Just as I suspected. You don't care about the trut... »

  • "My favorite war criminal"


    "Interesting Schtuff even if sometimes out to lunch."


    "You have a style of writing I just can't do."


    "You, of course, rawk."


    "What an awesome blog."


    "You're a nice filter."

    All original content is
    copyright © 1997-2009,
    Michael T. Barrett,
    The One And Only Slobokan.
    Serving The Schtuff Since 1997!
    All other material and brand or product names are copyright and/or registered trademarks of their respective holders.

    Creative Commons License
    This work is licensed under a Creative Commons License.


     

     

    Georgia Bloggers


     
    E-Mail sent to any slobokan.com address, or the feedback address listed at the top of the page, may be considered for publication unless the recipient is expressly notified otherwise.
    Posted on Dec 30th, 2005 @ 02:40 under Programming

    Having recently discovered and installed Hamachi, I realized I needed it to run as a service on several machines. When machines reboot, for one reason or another, I need Hamachi to start with the machine, irregardless if someone is there to login to the machine. I decided to see if anyone else had accomplished this task, and found that several people had in fact done exactly that, but I could not find all of the instructions from beginning to end, in one easy location.

    I now have Hamachi running on two Windows XP machines, and one Windows 2000 Server machine, as a service. It automatically starts when the machine boots. The following is a list of the steps I took to get there, and they may (or may not) help you do the same thing. These steps include editting the Windows Registry, and unless you know what you are doing, I don’t recommend doing it. I offer no guarantee this will work for you, but it won’t hurt to try will it?

    STEP ONE:

    • Download this zip file from tacktech.com, which contains the files you will need to use in the following instructions.
    • Unzip these files into the “c:\reskit” folder.
    [Source: Security Now]

    STEP TWO

    • At an MS-DOS command prompt, type “c:\reskit\INSTSRV.EXE HamachiService c:\reskit\SRVANY.EXE” (without the quotes). You will see a message that the service was successfully added.
    • Run Registry Editor and locate the “HKLM\SYSTEM\CurrentControlSet\Services\HamachiService” entry.
    • Add a new KEY with the name “Parameters”.
    • Select the new Parameters key, then add a new VALUE with the name “Application”.
    • Modify the new Application value, and edit the STRING data with “c:\Program Files\Hamachi\hamachi.exe -srvany” (without the quotes).
    • If you installed Hamachi to another folder other than c:\Program Files, you will need to adjust that line accordingly.
    • Click OK and then exit the Registry Editor.
    [Source: Microsoft]

    STEP THREE

    • Open the Services applet (via Control Panel / Administrative Tools) or by running ’services.msc”.
    • Scroll down to “HamachiService” and double-click it.
    • Make sure STARTUP TYPE is “Automatic” then click on the LOG ON tab.
    • Under LOG ON AS, select “Local System Account” and make sure the “Allow service to interact with desktop” is CHECKED.
    • Click APPLY and OK to close the window.

    STEP FOUR (optional)

    • If you would like the new HamachiService to use your existing Hamachi identity information open an MS-DOS command prompt.
    • Type “reg copy “HKCU\Software\Applied Networking” “HKEY_USERS\.DEFAULT\Software\Applied Networking” /s” (without the outer quotes). You will see a message that the operation was completed successfully.

    STEP FIVE

    • Reboot the computer. (Do not close Hamachi, let Windows shut it down while it is still online. Hamachi remembers it’s previous state, so, if you reboot the machine while Hamachi is connected, the service will start with Hamachi connected.)

    I hope this brief tutorial helps you get Hamachi running as a service on your machine.

    NOTE: As I finished double checking this post, I found two posts in the Hamachi support forums, here and here, which also cover running Hamachi as a service.

    Sphere: Related Content

    9 Comments
    1. Check your Preferences Check your Hamachi preferences and see if you turned on the “Disable vulnerable Windows services…” option…

      Comment by del1798 on Dec 3rd, 2006 @ 02:06


    2. I just loaded hamachi and ins I just loaded hamachi and installed it as a service. I believe that I followed all of the needed steps.

      Now, I’ve noticed that the print spooler stops. If I manually start it, after a few seconds it stops again. :(

      Ideas?

      Yes, it was working fine before I made the registry changes.

      System: XP Pro SP2
      RAM: 1024 Gb

      AdvanceThanks,
      Jeff

      Comment by Jeff on Dec 3rd, 2006 @ 02:06


    3. I guess Hamachi is running as I guess Hamachi is running as a service now because I succesful followed all the steps..
      But I still having problems with the windows policies.
      Can anybody tell me how to set restrictions now for different Hamachi users ???
      User1 can access two shared folders calles “public” and “private”
      User2 should only have access to the folder called “public”

      Comment by Raymond on Dec 3rd, 2006 @ 02:06


    4. additional note to #2:rnnn Wi additional note to #2:
      nn WinXP Pro the registry entries of default user are stored under KHEY_USERS.DEFAULT (my case)

      Comment by Yaroukh on Dec 3rd, 2006 @ 02:06


    5. [...] I even have Hamachi run [...] I even have Hamachi running as a service on all my machines. No Comments » [...]

      Comment by The Alligator Pit - Archives » Hamachi on Dec 3rd, 2006 @ 02:06


    6. Installed Hamachi as service Installed Hamachi as service on xp pro using Joel Matthias’ msi file–very fast and it seems to work perfectly, though Hamachi’s server still appears to be down. Thank you very much, Joel! You are a true mensch! [can't help but ask, there isn't a key logger or anything in there, is there?]

      Comment by AyUaxe on Dec 3rd, 2006 @ 02:06


    7. Hi,rnrnI have taken the instr Hi,

      I have taken the instructions outlined in this entry and created a Windows Installer package (.MSI) that automatically installs Hamachi as a service. I also added a couple of extra steps that should make the process even simpler (killing Hamachi before the install, making sure Hamachi auto connects and starting the Hamachi service at the end of the installation).

      This file can be obtained from here

      Let me know what you think! I was considering posting this on the Hamachi support forum. What do you think?

      Joel

      Comment by Joel Matthias on Dec 3rd, 2006 @ 02:06


    8. Hi Melvin, rnrnI had to get m Hi Melvin,

      I had to get my hands on a test machine, but here are the instructions for copying your identity to a windows 2000 server or windows 2003 server machine.

      Using REGEDIT, navigate to :

      “HKCUSoftwareApplied Networking”

      Click REGISTRY then EXPORT REGISTRY FILE.

      Save the file. Then open it in notepad.

      Change the two lines near the top from :

      HKEY_CURRENT_USER

      to

      “HKEY_USERSDEFAULT” (without the quotes)

      Save the file. Then double click it to apply it to the system registry.

      When you restart your machine, Hamachi should grab the current identity.

      One problem I did have, was the autoconnect was not setting, so I changed the AutoConnect value in that section to 1.

      Hope it helps.

      Comment by Slobokan on Dec 3rd, 2006 @ 02:06


    9. reg copy “HKCUSoftwareApp reg copy “HKCUSoftwareApplied Networking” “HKEY_USERS.DEFAULTSoftwareApplied Networking” /s

      Fails with:

      Error: invalid syntax

      This is on a server 2003 machine. I also tried it without any quotes as the help example shows, but this also fails.

      Any ideas?

      Comment by Melvin Fahnestock on Dec 3rd, 2006 @ 02:06


    RSS feed for comments on this post.

    Sorry, the comment form is closed at this time.




    Aria Interactive

    Buttercup 149

    Buttercup Mercantile


    Click the stars to read my reviews.


    James Scott Bell

    Polly D. Boyette

    Jessica Hatchigan

    Dee Henderson

    Ray Pritchard

    Jonathan Rogers

    Jonathan Rogers

    Timothy Smith

    Kevin T. Favero

    Samuel J. Alibrando

    Johannah Bluedorn

    Tim Bete

    Herbert & Jill Meyer

    Jerry B. Jenkins

    William O. Levi

    Magazine

    Randall K. Harp

    Nathaniel & Hans Bluedorn

    Kevin E. Schmiesing

    Terry C. Barber

    W. Dale Cramer

    Nancy Pearcey