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

    Fog Client - Snapins run after computer rename/domain join

    Scheduled Pinned Locked Moved
    Feature Request
    4
    8
    3.5k
    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.
    • N
      networkguy
      last edited by networkguy

      I seem to be having some issues where snapins don’t run or perform as expected. From what it appears it may be due to them running before the computer is renamed and joined to the network. Is there a way to delay them from running until after that has been completed? What I have done which seems to be a functional work around is running two snapins named appropriately so they run first that I have set to ‘Reboot after Install’ in the FOG GUI that shell out some needless commands.

      I am relying on FOG rather than sysprep to handle the naming and domain joining functionality at the moment.

      The latest work flow that I have been using is to setup the machine as needed in a VM with some base software, test, cleanup profiles, chkdsk, defrag, and then run the Prepare_for_fog.bat as administrator which makes some changes to the registry (I stripped out some stuff that was in there and needed for our Antivirus/Dell KACE/Helpdesk software), installs the FOG client, and then runs sysprep.

      The script could use some work, please don’t judge lack of variables/etc, for the most part it works well for me at the moment. 🙂

      Unattend.xml

      <?xml version="1.0" encoding="utf-8"?>
      <unattend xmlns="urn:schemas-microsoft-com:unattend">
          <settings pass="specialize">
              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
      	    <RegisteredOrganization>Microsoft</RegisteredOrganization>
                  <RegisteredOwner>AutoBVT</RegisteredOwner>
                  <TimeZone>Eastern Standard Time</TimeZone>
                  <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
                  <CopyProfile>false</CopyProfile>
                  <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                  <ShowWindowsLive>false</ShowWindowsLive>
                  <StartPanelOff>false</StartPanelOff>
      	    <ComputerName>*</ComputerName>
              </component>
              <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <RunSynchronous>
                      <RunSynchronousCommand wcm:action="add">
                          <Description>EnableAdmin</Description>
                          <Order>1</Order>
                          <Path>cmd /c net user Administrator /active:yes</Path>
                      </RunSynchronousCommand>
                      <RunSynchronousCommand wcm:action="add">
                          <Description>EnableAdmin_ploc</Description>
                          <Order>2</Order>
                          <Path>cmd /c net user Administrator_ploc /active:yes</Path>
                      </RunSynchronousCommand>
                      <RunSynchronousCommand wcm:action="add">
                          <Description>UnfilterAdministratorToken</Description>
                          <Order>3</Order>
                          <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
                      </RunSynchronousCommand>
                  </RunSynchronous>
              </component>
              <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <InputLocale>0409:00000409</InputLocale>
                  <SystemLocale>en-US</SystemLocale>
                  <UILanguage>en-US</UILanguage>
                  <UserLocale>en-US</UserLocale>
              </component>
              <component name="Microsoft-Windows-TapiSetup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <TapiConfigured>0</TapiConfigured>
                  <TapiUnattendLocation>
                      <AreaCode>""</AreaCode>
                      <CountryOrRegion>1</CountryOrRegion>
                      <LongDistanceAccess>9</LongDistanceAccess>
                      <OutsideAccess>9</OutsideAccess>
                      <PulseOrToneDialing>1</PulseOrToneDialing>
                      <DisableCallWaiting>""</DisableCallWaiting>
                      <InternationalCarrierCode>""</InternationalCarrierCode>
                      <LongDistanceCarrierCode>""</LongDistanceCarrierCode>
                      <Name>Default</Name>
                  </TapiUnattendLocation>
              </component>
              <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <DisableSR>1</DisableSR>
              </component>
          </settings>
          <settings pass="oobeSystem">
              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                  <UserAccounts>
                      <AdministratorPassword>
                          <Value>blahdablahblahblah</Value>
                          <PlainText>false</PlainText>
                      </AdministratorPassword>
                      <LocalAccounts>
                          <LocalAccount wcm:action="add">
                              <Description>Administrator</Description>
                              <DisplayName>Administrator</DisplayName>
                              <Group>Administrators</Group>
                              <Name>Administrator</Name>
                          </LocalAccount>
                      </LocalAccounts>
                  </UserAccounts>
                  <AutoLogon>
                      <Enabled>false</Enabled>
                      <Username>Administrator</Username>
                      <Domain></Domain>
                      <Password>
                          <Value>blahdablahblahblah</Value>
                          <PlainText>false</PlainText>
                      </Password>
                      <LogonCount>1</LogonCount>
                  </AutoLogon>
                  <OOBE>
                      <HideEULAPage>true</HideEULAPage>
                      <NetworkLocation>Work</NetworkLocation>
                      <ProtectYourPC>1</ProtectYourPC>
                      <SkipUserOOBE>true</SkipUserOOBE>
                  </OOBE>
                  <RegisteredOrganization>MyOrg</RegisteredOrganization>
                  <RegisteredOwner>MyDept</RegisteredOwner>
                  <TimeZone>Eastern Standard Time</TimeZone>
              </component>
              <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <InputLocale>en-US</InputLocale>
                  <SystemLocale>en-US</SystemLocale>
                  <UILanguage>en-US</UILanguage>
                  <UserLocale>en-US</UserLocale>
              </component>
          </settings>
          <cpi:offlineImage cpi:source="catalog://myserver/myshare$/operating systems/capture_win7x64/capture_win7x64_capture_win7x64ddrive.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
      </unattend>
      

      SetupComplete.cmd

      rd /s /q c:\minint
      rd /s /q c:\_SMSTaskSequence
      rd /s /q c:\fog_prepare
      del "C:\Windows\System32\Sysprep\Unattend.xml" /f /q
      del "C:\Windows\Panther\Unattend.xml" /f /q
      "C:\Windows\System32\net.exe" user tempaccount /delete
      "C:\Windows\System32\sc.exe" config "FogService" start= auto
      START C:\Drivers\SAD3-130825\DP_Install_Tool.cmd /CR
      

      Prepare_for_fog.bat

      @ECHO OFF
      echo.
      echo.
      echo Are you running this as an Administrator
      pause
      echo.
      echo Checking rearm count:
      cscript C:\Windows\SysWOW64\slmgr.vbs /dlv | find "Remaining Windows rearm count"
      echo.
      echo If the rearm count is 0 then this will not work.  Either try: slmgr /act 
      echo or you can reinstall Windows or remove the WPA registry hive.
      pause
      echo.
      echo Are you sure you want to do this
      pause
      echo.
      echo.
      echo Remove Interactive Login (this affects runonce sysprep settings if enabled.  Once back on the domain Group Policy will reconfigure this.)
      reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticecaption /f
      reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticetext /f
      
      echo.
      echo. Update Registry for Storage Controllers (sysprep may wipe this out?)
      :CHECKREG1
      reg query HKLM\SYSTEM\CurrentControlSet\Services\iaStor
      if %ERRORLEVEL% EQU 0 goto UPDATEREG1
      GOTO CHECKREG2
      :UPDATEREG1
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\iaStor" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\iaStor" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\iaStor" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG2
      reg query HKLM\SYSTEM\CurrentControlSet\Services\iaStorV
      if %ERRORLEVEL% EQU 0 goto UPDATEREG2
      GOTO CHECKREG3
      :UPDATEREG2
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG3
      reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS2
      if %ERRORLEVEL% EQU 0 goto UPDATEREG3
      GOTO CHECKREG4
      :UPDATEREG3
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG4
      reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS
      if %ERRORLEVEL% EQU 0 goto UPDATEREG4
      GOTO CHECKREG5
      :UPDATEREG4
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG5
      reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SCSI
      if %ERRORLEVEL% EQU 0 goto UPDATEREG5
      GOTO CHECKREG6
      :UPDATEREG5
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG6
      reg query HKLM\SYSTEM\CurrentControlSet\Services\msahci
      if %ERRORLEVEL% EQU 0 goto UPDATEREG6
      GOTO CHECKREG7
      :UPDATEREG6
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\msahci" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\msahci" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\msahci" /v Start /t REG_DWORD /d 0 /f
      
      :CHECKREG7
      reg query HKLM\SYSTEM\CurrentControlSet\Services\pciide
      if %ERRORLEVEL% EQU 0 goto UPDATEREG7
      GOTO DONEREG
      :UPDATEREG7
      reg add "HKLM\SYSTEM\CurrentControlSet\Services\pciide" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet001\Services\pciide" /v Start /t REG_DWORD /d 0 /f
      reg add "HKLM\SYSTEM\ControlSet002\Services\pciide" /v Start /t REG_DWORD /d 0 /f
      
      :DONEREG
      
      mkdir C:\fog_prepare
      net use x: "\\server\share$\64 Bit Sysprep\prep_fog12" "apasswordforauser" /user:mydomain\auser 
      PING 127.0.0.1 -n 1 -w 2000 >NUL
      x:
      copy /Y * C:\fog_prepare\
      PING 127.0.0.1 -n 1 -w 2000 >NUL
      c:
      net use x: /delete /yes
      mkdir C:\Drivers\
      net use x: "\\server\share$\64 Bit Sysprep\Drivers" "apasswordforauser" /user:mydomain\auser 
      PING 127.0.0.1 -n 1 -w 2000 >NUL
      x:
      xcopy /s/e/c/i/h/y x:\* C:\Drivers\
      PING 127.0.0.1 -n 1 -w 2000 >NUL
      c:
      net use x: /delete /yes
      net use \\server\share /delete /yes
      
      c:
      cd \fog_prepare
      
      echo Install FOG Client
      msiexec /i FOGService.msi /quiet USETRAY="0" HTTPS="0" WEBADDRESS="myfogserver" WEBROOT="/fog" ROOTLOG="1"
      
      echo.
      echo Stop the FOGService so it doesn't put us back on the domain bringing back the interactive logon policy which keeps screwing up the sysprep setupcomplete.cmd functionality.
      net stop "FogService"
      sc config "FogService" start= disabled
      
      echo.
      echo Copying SetupComplete.cmd to C:\Windows\Setup\Scripts\
      move /Y .\SetupComplete.cmd C:\Windows\Setup\Scripts\SetupComplete.cmd
      echo.
      echo Running Sysprep
      move /Y .\Unattend.xml C:\Windows\System32\Sysprep\Unattend.xml
      "C:\Windows\System32\Sysprep\Sysprep.exe" /oobe /generalize /quiet /shutdown /Unattend:C:\Windows\System32\Sysprep\Unattend.xml
      
      1 Reply Last reply Reply Quote 0
      • I
        ITSolutions Testers
        last edited by

        What version of FOG are you using? What version of windows are you deploying? If you are using FOG trunk are you using the new client?

        N 1 Reply Last reply Reply Quote 0
        • N
          networkguy @ITSolutions
          last edited by networkguy

          @ITSolutions

          The FOG server is git version 7659.
          The FOG client version is 0.10.6.
          I am deploying Windows 7 64bit.

          1 Reply Last reply Reply Quote 0
          • J
            Joe Schmitt Senior Developer
            last edited by

            @networkguy Here is the order in which the modules are run every time:

            • ClientUpdater
            • TaskReboot
            • HostnameChanger
            • SnapinClient
            • PrinterManager
            • GreenFOG
            • UserTracker

            As you can see, HostnameChanger always runs before snapins do.

            I seem to be having some issues where snapins don’t run or perform as expected

            I need more details? What kind of issues do you have?

            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.

            N 1 Reply Last reply Reply Quote 0
            • N
              networkguy @Joe Schmitt
              last edited by networkguy

              @Jbob

              If the hostname needs to be updated or the machine needs to be joined to the domain along with the accommodating reboot will the other modules continue to run until the computer is shutdown? If the other modules know to stop processing since a reboot is needed from a previous module, that may fix the issue I’m running into. Below is a fog.log from one of my deployments earlier today. The batch file to re-license Office 2013 with our KMS server and the powershell script to update the computer’s description didn’t work yesterday until I put in those first two you will see that require reboots.

              5/25/2016 11:29 AM Main Overriding exception handling
               5/25/2016 11:29 AM Main Bootstrapping Zazzles
               5/25/2016 11:29 AM Controller Initialize
               5/25/2016 11:29 AM Entry Creating obj
               5/25/2016 11:29 AM Controller Start
              
               5/25/2016 11:29 AM Service Starting service
               5/25/2016 11:29 AM Bus Became bus server
               5/25/2016 11:29 AM Bus {
                "self": true,
                "channel": "Status",
                "data": "{\r\n  \"action\": \"load\"\r\n}"
              }
               5/25/2016 11:29 AM Bus Emmiting message on channel: Status
              
              ------------------------------------------------------------------------------
              --------------------------------Authentication--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:29 AM Client-Info Version: 0.10.6
               5/25/2016 11:29 AM Client-Info OS:      Windows
               5/25/2016 11:29 AM Middleware::Authentication Waiting for authentication timeout to pass
               5/25/2016 11:29 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt
               5/25/2016 11:30 AM Data::RSA FOG Server CA cert found
               5/25/2016 11:30 AM Middleware::Authentication Cert OK
               5/25/2016 11:30 AM Middleware::Authentication ERROR: Could not get security token
               5/25/2016 11:30 AM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'.
               5/25/2016 11:30 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM Middleware::Authentication Authenticated
              
              
               5/25/2016 11:30 AM Bus Registering ParseBus in channel Power
               5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json
               5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json
              
               5/25/2016 11:30 AM Service Creating user agent cache
               5/25/2016 11:30 AM Middleware::Response Invalid time
               5/25/2016 11:30 AM Middleware::Response No Printers
              
              ------------------------------------------------------------------------------
              ---------------------------------ClientUpdater--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ----------------------------------TaskReboot----------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              --------------------------------HostnameChanger-------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM HostnameChanger Checking Hostname
               5/25/2016 11:30 AM HostnameChanger Removing host from active directory
               5/25/2016 11:30 AM HostnameChanger The machine is not currently joined to a domain, code =  2692
               5/25/2016 11:30 AM HostnameChanger Renaming host to MYPC-23
               5/25/2016 11:30 AM Power Creating shutdown request
               5/25/2016 11:30 AM Power Parameters: /r /c "FOG needs to rename your computer" /t 0
               5/25/2016 11:30 AM HostnameChanger Unknown Return Code:  53
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ---------------------------------SnapinClient---------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM SnapinClient Snapin Found:
               5/25/2016 11:30 AM SnapinClient     ID: 116
               5/25/2016 11:30 AM SnapinClient     RunWith: powershell.exe
               5/25/2016 11:30 AM SnapinClient     RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File
               5/25/2016 11:30 AM SnapinClient     Name: 1_run-before-domain-join
               5/25/2016 11:30 AM SnapinClient     File: Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:30 AM SnapinClient     Created: 2016-05-25 10:33:35
               5/25/2016 11:30 AM SnapinClient     Args: 
               5/25/2016 11:30 AM SnapinClient     Action: reboot
               5/25/2016 11:30 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=116
               5/25/2016 11:30 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:30 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Installing 1_run-before-domain-join\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-1_run-before-domain-join\"\r\n}"
              }
               5/25/2016 11:30 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:30 AM SnapinClient Starting snapin...
               5/25/2016 11:30 AM SnapinClient Snapin finished
               5/25/2016 11:30 AM SnapinClient Return Code: 0
               5/25/2016 11:30 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"1_run-before-domain-join Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-1_run-before-domain-join\"\r\n}"
              }
               5/25/2016 11:30 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=116&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:30 AM User ERROR: Unable to get logged in users
               5/25/2016 11:30 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
               5/25/2016 11:30 AM Power Creating shutdown request
               5/25/2016 11:30 AM Power Parameters: /r /c "Snapin requested restart" /t 0
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              --------------------------------PrinterManager--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response No Printers
               5/25/2016 11:30 AM Service ERROR: Unable to run module
               5/25/2016 11:30 AM Service ERROR: Object reference not set to an instance of an object.
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              -----------------------------------GreenFOG-----------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response No actions
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ----------------------------------UserTracker---------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:30 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:30 AM Client-Info Client OS:      Windows
               5/25/2016 11:30 AM Client-Info Server Version: 7659
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM User ERROR: Unable to get logged in users
               5/25/2016 11:30 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
              ------------------------------------------------------------------------------
              
               5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
               5/25/2016 11:30 AM Middleware::Response Success
               5/25/2016 11:30 AM Service Sleeping for 137 seconds
               5/25/2016 11:31 AM Main Overriding exception handling
               5/25/2016 11:31 AM Main Bootstrapping Zazzles
               5/25/2016 11:31 AM Controller Initialize
               5/25/2016 11:31 AM Entry Creating obj
               5/25/2016 11:31 AM Controller Start
              
               5/25/2016 11:31 AM Service Starting service
               5/25/2016 11:32 AM Bus Became bus server
               5/25/2016 11:32 AM Bus {
                "self": true,
                "channel": "Status",
                "data": "{\r\n  \"action\": \"load\"\r\n}"
              }
               5/25/2016 11:32 AM Bus Emmiting message on channel: Status
              
              ------------------------------------------------------------------------------
              --------------------------------Authentication--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Version: 0.10.6
               5/25/2016 11:32 AM Client-Info OS:      Windows
               5/25/2016 11:32 AM Middleware::Authentication Waiting for authentication timeout to pass
               5/25/2016 11:32 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt
               5/25/2016 11:32 AM Data::RSA FOG Server CA cert found
               5/25/2016 11:32 AM Middleware::Authentication Cert OK
               5/25/2016 11:32 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM Middleware::Authentication Authenticated
              
              
               5/25/2016 11:32 AM Bus Registering ParseBus in channel Power
               5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json
               5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json
              
               5/25/2016 11:32 AM Service Creating user agent cache
               5/25/2016 11:32 AM Middleware::Response Invalid time
               5/25/2016 11:32 AM Middleware::Response No Printers
              
              ------------------------------------------------------------------------------
              ---------------------------------ClientUpdater--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ----------------------------------TaskReboot----------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              --------------------------------HostnameChanger-------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM HostnameChanger Checking Hostname
               5/25/2016 11:32 AM HostnameChanger Hostname is correct
               5/25/2016 11:32 AM HostnameChanger Success, code =  0
               5/25/2016 11:32 AM Power Creating shutdown request
               5/25/2016 11:32 AM Power Parameters: /r /c "Host joined to Active Directory, restart required" /t 0
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ---------------------------------SnapinClient---------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM SnapinClient Snapin Found:
               5/25/2016 11:32 AM SnapinClient     ID: 117
               5/25/2016 11:32 AM SnapinClient     RunWith: powershell.exe
               5/25/2016 11:32 AM SnapinClient     RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File
               5/25/2016 11:32 AM SnapinClient     Name: 2_run-before-domain-join
               5/25/2016 11:32 AM SnapinClient     File: Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:32 AM SnapinClient     Created: 2016-05-25 10:33:35
               5/25/2016 11:32 AM SnapinClient     Args: 
               5/25/2016 11:32 AM SnapinClient     Action: reboot
               5/25/2016 11:32 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=117
               5/25/2016 11:32 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:32 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Installing 2_run-before-domain-join\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-2_run-before-domain-join\"\r\n}"
              }
               5/25/2016 11:32 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:32 AM SnapinClient Starting snapin...
               5/25/2016 11:32 AM SnapinClient Snapin finished
               5/25/2016 11:32 AM SnapinClient Return Code: 0
               5/25/2016 11:32 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"2_run-before-domain-join Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-2_run-before-domain-join\"\r\n}"
              }
               5/25/2016 11:32 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=117&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:32 AM User ERROR: Unable to get logged in users
               5/25/2016 11:32 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
               5/25/2016 11:32 AM Power Creating shutdown request
               5/25/2016 11:32 AM Power Parameters: /r /c "Snapin requested restart" /t 0
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              --------------------------------PrinterManager--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response No Printers
               5/25/2016 11:32 AM Service ERROR: Unable to run module
               5/25/2016 11:32 AM Service ERROR: Object reference not set to an instance of an object.
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              -----------------------------------GreenFOG-----------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response No actions
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ----------------------------------UserTracker---------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:32 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:32 AM Client-Info Client OS:      Windows
               5/25/2016 11:32 AM Client-Info Server Version: 7659
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM User ERROR: Unable to get logged in users
               5/25/2016 11:32 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B)
              ------------------------------------------------------------------------------
              
               5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
               5/25/2016 11:32 AM Middleware::Response Success
               5/25/2016 11:32 AM Service Sleeping for 67 seconds
               5/25/2016 11:34 AM Main Overriding exception handling
               5/25/2016 11:34 AM Main Bootstrapping Zazzles
               5/25/2016 11:34 AM Controller Initialize
               5/25/2016 11:34 AM Entry Creating obj
               5/25/2016 11:34 AM Controller Start
              
               5/25/2016 11:34 AM Service Starting service
               5/25/2016 11:34 AM Bus Became bus server
               5/25/2016 11:34 AM Bus {
                "self": true,
                "channel": "Status",
                "data": "{\r\n  \"action\": \"load\"\r\n}"
              }
               5/25/2016 11:34 AM Bus Emmiting message on channel: Status
              
              ------------------------------------------------------------------------------
              --------------------------------Authentication--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:34 AM Client-Info Version: 0.10.6
               5/25/2016 11:34 AM Client-Info OS:      Windows
               5/25/2016 11:34 AM Middleware::Authentication Waiting for authentication timeout to pass
               5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt
               5/25/2016 11:34 AM Data::RSA FOG Server CA cert found
               5/25/2016 11:34 AM Middleware::Authentication Cert OK
               5/25/2016 11:34 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
               5/25/2016 11:34 AM Middleware::Response Success
               5/25/2016 11:34 AM Middleware::Authentication Authenticated
              
              
               5/25/2016 11:34 AM Bus Registering ParseBus in channel Power
               5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:34 AM Middleware::Response Success
               5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json
               5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json
              
               5/25/2016 11:34 AM Service Creating user agent cache
               5/25/2016 11:34 AM Middleware::Response Invalid time
               5/25/2016 11:34 AM Middleware::Response No Printers
              
              ------------------------------------------------------------------------------
              ---------------------------------ClientUpdater--------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:34 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:34 AM Client-Info Client OS:      Windows
               5/25/2016 11:34 AM Client-Info Server Version: 7659
               5/25/2016 11:34 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ----------------------------------TaskReboot----------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:34 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:34 AM Client-Info Client OS:      Windows
               5/25/2016 11:34 AM Client-Info Server Version: 7659
               5/25/2016 11:34 AM Middleware::Response Success
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              --------------------------------HostnameChanger-------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:34 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:34 AM Client-Info Client OS:      Windows
               5/25/2016 11:34 AM Client-Info Server Version: 7659
               5/25/2016 11:34 AM Middleware::Response Success
               5/25/2016 11:34 AM HostnameChanger Checking Hostname
               5/25/2016 11:34 AM HostnameChanger Hostname is correct
               5/25/2016 11:34 AM HostnameChanger Host is already joined to target domain
              ------------------------------------------------------------------------------
              
              
              ------------------------------------------------------------------------------
              ---------------------------------SnapinClient---------------------------------
              ------------------------------------------------------------------------------
               5/25/2016 11:34 AM Client-Info Client Version: 0.10.6
               5/25/2016 11:34 AM Client-Info Client OS:      Windows
               5/25/2016 11:34 AM Client-Info Server Version: 7659
               5/25/2016 11:34 AM Middleware::Response Success
               5/25/2016 11:34 AM SnapinClient Snapin Found:
               5/25/2016 11:34 AM SnapinClient     ID: 118
               5/25/2016 11:34 AM SnapinClient     RunWith: 
               5/25/2016 11:34 AM SnapinClient     RunWithArgs: 
               5/25/2016 11:34 AM SnapinClient     Name: License Office 2013
               5/25/2016 11:34 AM SnapinClient     File: kms_office2013.bat
               5/25/2016 11:34 AM SnapinClient     Created: 2016-05-25 10:33:35
               5/25/2016 11:34 AM SnapinClient     Args: 
               5/25/2016 11:34 AM SnapinClient     Action: 
               5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=118
               5/25/2016 11:34 AM SnapinClient C:\Program Files (x86)\FOG\tmp\kms_office2013.bat
               5/25/2016 11:34 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Installing License Office 2013\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-License Office 2013\"\r\n}"
              }
               5/25/2016 11:34 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:34 AM SnapinClient Starting snapin...
               5/25/2016 11:34 AM SnapinClient Snapin finished
               5/25/2016 11:34 AM SnapinClient Return Code: 0
               5/25/2016 11:34 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"License Office 2013 Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-License Office 2013\"\r\n}"
              }
               5/25/2016 11:34 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=118&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
               5/25/2016 11:34 AM SnapinClient Snapin Found:
               5/25/2016 11:34 AM SnapinClient     ID: 119
               5/25/2016 11:34 AM SnapinClient     RunWith: powershell.exe
               5/25/2016 11:34 AM SnapinClient     RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File
               5/25/2016 11:34 AM SnapinClient     Name: Update Computer Description - MYPC (try2)
               5/25/2016 11:34 AM SnapinClient     File: Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:34 AM SnapinClient     Created: 2016-05-25 10:33:35
               5/25/2016 11:34 AM SnapinClient     Args: 
               5/25/2016 11:34 AM SnapinClient     Action: 
               5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=119
               5/25/2016 11:34 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1
               5/25/2016 11:34 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Installing Update Computer Description - MYPC (try2)\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-Update Computer Description - MYPC (try2)\"\r\n}"
              }
               5/25/2016 11:34 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:34 AM SnapinClient Starting snapin...
               5/25/2016 11:35 AM SnapinClient Snapin finished
               5/25/2016 11:35 AM SnapinClient Return Code: 0
               5/25/2016 11:35 AM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Update Computer Description - MYPC (try2) Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-Update Computer Description - MYPC (try2)\"\r\n}"
              }
               5/25/2016 11:35 AM Bus Emmiting message on channel: Notification
               5/25/2016 11:35 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=119&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
              ------------------------------------------------------------------------------
              
              
              1 Reply Last reply Reply Quote 0
              • J
                Joe Schmitt Senior Developer
                last edited by

                @networkguy This is a bug, I’ll look into 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.

                N 1 Reply Last reply Reply Quote 0
                • N
                  networkguy @Joe Schmitt
                  last edited by

                  @Jbob
                  This team/community is great! Thank you Jbob!

                  1 Reply Last reply Reply Quote 0
                  • T
                    tjgertge
                    last edited by

                    We’re having the same issue as well. Imaging Windows 10 machines. The snapins are trying to deploy before the hostname change / active directory join has taken place.

                    Fog server is SVN version 7909.
                    Client is 0.10.6

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

                    160

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project