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

    postdownload script

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    10
    768
    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.
    • G
      geekyjm
      last edited by

      Hi, I migrated my fog server to a new system and during the process I transferred the postdownload script from the old versioned system the the newer one. I’m running into some issue sysprep running and connecting the client to the domain after the download. Is there a new postdownload script I could download and try?

      Regards,

      Jim P.

      george1421G JJ FullmerJ 2 Replies Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @geekyjm
        last edited by

        @geekyjm said in postdownload script:

        Is there a new postdownload script I could download and try?

        First let me say that post download scripts have nothing to do with Windows or connecting to AD. Your issues are probably not the root cause.

        Lets assume you have the FOG client connect the target computer to AD (there are other ways to got about it, but most use the fog client) and you have just changed fog servers.

        My bet is that the fog client can no longer talk to the new FOG server, and hence not get the instructions to connect to AD.

        When the fog client is installed (like on the precaptured golden image), it tattoos itself to the fog server’s certificate. That certificate is unique to each install of FOG. My bet is that you didn’t copy over the certificate from the old fog server to the new fog server. So the clients are rejecting the new FOG server because the certificates don’t match.

        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!

        G 1 Reply Last reply Reply Quote 0
        • G
          geekyjm @george1421
          last edited by

          @george1421 Thanks, for your assistance. Question where is the certificate located? If I can find it I can then copy it to the new server. But is the certificate based on the server name? When creating the new server I named it something other than the original.

          Jim P.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @geekyjm
            last edited by

            @geekyjm If I remember correctly the certificate is in /opt/fog/ssl ( I think ) but it is in /opt/fog directory or below. be sure to rename the original certificate on the new fog server before you copy over the old certificate. Once copied over reboot the fog server computer.

            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!

            G 1 Reply Last reply Reply Quote 0
            • JJ FullmerJ
              JJ Fullmer Testers @geekyjm
              last edited by

              @geekyjm Are you using a postdownload script to dynamically update your unattend.xml file so sysprep will join the domain with the settings given by fog?
              Or are you using the fog service to join the domain during the oobe firstlogon phase, or after that?

              Have you tried the FogApi powershell module? It's pretty cool IMHO
              https://github.com/darksidemilk/FogApi
              https://fogapi.readthedocs.io/en/latest/
              https://www.powershellgallery.com/packages/FogApi
              https://forums.fogproject.org/topic/12026/powershell-api-module

              G 1 Reply Last reply Reply Quote 0
              • G
                geekyjm @george1421
                last edited by

                @george1421 I check my old server and there is no /opt/fog/ssl directory. When it was installed way back when no SSL cert was used. The site is only accessible from http://fog.

                Jim P.

                george1421G 1 Reply Last reply Reply Quote 0
                • G
                  geekyjm @JJ Fullmer
                  last edited by

                  @jj-fullmer It looks like the fog.postdownload script calls the fog.custominstall script which intern calls the fog updateunattend. My fog knowledge is very basic. I can include the scripts if it helps.

                  Jim P.

                  JJ FullmerJ 2 Replies Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @geekyjm
                    last edited by

                    @geekyjm

                    ref: https://forums.fogproject.org/post/120405

                    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!

                    1 Reply Last reply Reply Quote 0
                    • JJ FullmerJ
                      JJ Fullmer Testers @geekyjm
                      last edited by

                      @geekyjm Yes lets see what the script looks like. I have some theories on what’s going on.
                      What version of fog were you using and what version are you on now?

                      Have you tried the FogApi powershell module? It's pretty cool IMHO
                      https://github.com/darksidemilk/FogApi
                      https://fogapi.readthedocs.io/en/latest/
                      https://www.powershellgallery.com/packages/FogApi
                      https://forums.fogproject.org/topic/12026/powershell-api-module

                      1 Reply Last reply Reply Quote 0
                      • JJ FullmerJ
                        JJ Fullmer Testers @geekyjm
                        last edited by

                        @geekyjm If your old fog server was on a version pre-ssl then it may have been pretty dated. There was an older update_unattend script where you would have to put the domain join password in plain-text. Now you can use the $adpass variable that pulls from the foghost’s settings. Then the domain password isn’t passed in plaintext in any script files. So you may need to update how that password is stored on your hosts under ad settings (I believe there’s a global method in the fog settings GUI) and then try again.

                        I just started using the update_unattend postdownload script myself and was successful without having to have the password in plain text anywhere and the machines joined the domain.

                        As @george1421 mentioned there may be more going on here, as there may be some new steps needed for your fog install, but we can get this working the way you’re expecting again none the less.

                        Have you tried the FogApi powershell module? It's pretty cool IMHO
                        https://github.com/darksidemilk/FogApi
                        https://fogapi.readthedocs.io/en/latest/
                        https://www.powershellgallery.com/packages/FogApi
                        https://forums.fogproject.org/topic/12026/powershell-api-module

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

                        112

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project