• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Possible Timer on hostname_changer

Scheduled Pinned Locked Moved
FOG Problems
4
13
3.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SeqSupportEdkey
    last edited by Dec 18, 2014, 4:04 PM

    Is it possible to modify how long before the hostname_changer restarts the unit? For some reason after getting FOG working correctly in renaming our computers and joining them to the domain it now refuses to install Kaspersky in our second run. The issue is related to FOG restarting the machine before the silent install of Kaspersky is completely finished. We are running FOG .32.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Dec 18, 2014, 4:16 PM

      Do you have a script running to do the install?

      Maybe start that script with:

      net stop “FOG Service”

      and end the script with:

      net start “FOG Service”

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • S
        SeqSupportEdkey
        last edited by Dec 18, 2014, 4:27 PM

        [quote=“Tom Elliott, post: 40124, member: 7271”]Do you have a script running to do the install?

        Maybe start that script with:

        net stop “FOG Service”

        and end the script with:

        net start “FOG Service”[/quote]

        We use a cmd file that adds registry values in runonce, I will have to try that and see if that works. I will get back to you and let you know. Thanks for the suggestion.

        1 Reply Last reply Reply Quote 0
        • S
          SeqSupportEdkey
          last edited by Dec 18, 2014, 7:09 PM

          That did not work. Any additional suggestions would be awesome.

          1 Reply Last reply Reply Quote 0
          • J
            Joe Schmitt Senior Developer
            last edited by Dec 18, 2014, 8:01 PM

            Is Kaspersky deployed via snapins?

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            1 Reply Last reply Reply Quote 0
            • S
              SeqSupportEdkey
              last edited by Dec 18, 2014, 8:11 PM

              [quote=“Jbob, post: 40154, member: 21733”]Is Kaspersky deployed via snapins?[/quote]
              No the installer is already contained in the image. The .cmd file inputs registry values into RunOnceEx. Image gets sypreped and uploaded then when the image gets deployed the second run .cmd file is activated by a script.

              Would it be easier to do it via a snap-in?

              EDIT: I have now modified the secondrun script to stop the FOG service completely then restart the unit after Kaspersky has been installed.

              1 Reply Last reply Reply Quote 0
              • J
                Joe Schmitt Senior Developer
                last edited by Dec 18, 2014, 8:14 PM

                Alright, well the way the old client is structured not much can be done. However, one possible solution is to disable the fog-service auto-start on the image. Then in your script where you install Kaspersky enable the auto-start of “FOG Service” after installation, and manually start it.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                1 Reply Last reply Reply Quote 0
                • S
                  SeqSupportEdkey
                  last edited by Dec 18, 2014, 8:16 PM

                  See thats the problem is I want to completely automate the process. Our networking/server guy is out for the week. We will be upgrading to 1.2.0 to help resolve some of these issues with automation.

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe Schmitt Senior Developer
                    last edited by Dec 18, 2014, 8:19 PM

                    Sorry for not being clear, the way I suggested is automatic. You just need to update your image so the service “FOG-SERVICE” does not start automatically. Then edit your script where you install Kaspersky so it looks like:

                    [CODE]
                    #Install Kaspersky Code
                    sc config “FOG Service” start= delayed-auto
                    net start “FOG Service”
                    [/CODE]
                    (The space between = and delayed-auto is required)

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    1 Reply Last reply Reply Quote 0
                    • S
                      SeqSupportEdkey
                      last edited by Dec 18, 2014, 8:35 PM

                      [QUOTE]SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

                      REG ADD %KEY% /V TITLE /D “Finishing Post Image” /f

                      REG ADD %KEY%\001 /VE /D “OCS Agent” /f
                      REG ADD %KEY%\001 /V 1 /D “%systemdrive%\Post_Image\ocs\ocspackage-generic.exe” /f

                      REG ADD %KEY%\005 /VE /D “Alertus” /f
                      REG ADD %KEY%\005 /v 1 /D “%systemdrive%\Post_Image\alertus\alertus-desktopalert-3.0.12.165.msi /quiet” /f

                      REG ADD %KEY%\010 /VE /D “ScreenConnect” /f
                      REG ADD %KEY%\010 /V 1 /D “%systemdrive%\Post_Image\ScreenConnect\Elsinore.ScreenConnect.ClientSetup.msi /quiet” /f

                      REG ADD %KEY%\015 /VE /D “DriverPacks” /f
                      REG ADD %KEY%\015 /V 1 /D “%systemdrive%\Post_Image\SAD3-130825\DP_Install_Tool.cmd -s” /f

                      REG ADD %KEY%\020 /VE /D “Kaspersky” /f
                      REG ADD %KEY%\020 /V 1 /D “%systemdrive%\Post_Image\Kaspersky.exe /s” /f

                      exit[/QUOTE]

                      This is what it currently looks like. How would I go about adding it into there. I am using Secondrun in order to install my software. Do I need to put the delayed-auto command into the SetupComplete Script in the scripts folder?

                      My SetupComplete script contains

                      del /q /f c:\windows\system32\sysprep\Unattend.xml
                      del /q /f c:\windows\panther\Unattend.xml
                      START C:\Post_Image\Secondrun.cmd

                      1 Reply Last reply Reply Quote 0
                      • J
                        Junkhacker Developer
                        last edited by Dec 18, 2014, 9:11 PM

                        it looks like the SetupComplete Script would be the appropriate place for it

                        signature:
                        Junkhacker
                        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                        1 Reply Last reply Reply Quote 0
                        • S
                          SeqSupportEdkey
                          last edited by Dec 18, 2014, 9:30 PM

                          Alright I put the delay command in the SetupComplete script, then created a .cmd file with the net start “FOG Service” in it which was then added as a reg value in run once. Phew… We will see if that works. Been trying so many different things over the past few days.

                          1 Reply Last reply Reply Quote 0
                          • S
                            SeqSupportEdkey
                            last edited by Dec 18, 2014, 10:55 PM

                            Still did not work. What is odd is that the image was working just fine until I set up fog correctly for renaming the computer and joining it to the domain. Kaspersky is not even attempting to install. It just skips right over it and goes straight into windows. I am at a loss. Need a day to think.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            1 / 1
                            • First post
                              11/13
                              Last post

                            165

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project