Possible Timer on hostname_changer
-
That did not work. Any additional suggestions would be awesome.
-
Is Kaspersky deployed via snapins?
-
[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.
-
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.
-
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.
-
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) -
[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” /fREG 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” /fREG ADD %KEY%\010 /VE /D “ScreenConnect” /f
REG ADD %KEY%\010 /V 1 /D “%systemdrive%\Post_Image\ScreenConnect\Elsinore.ScreenConnect.ClientSetup.msi /quiet” /fREG ADD %KEY%\015 /VE /D “DriverPacks” /f
REG ADD %KEY%\015 /V 1 /D “%systemdrive%\Post_Image\SAD3-130825\DP_Install_Tool.cmd -s” /fREG ADD %KEY%\020 /VE /D “Kaspersky” /f
REG ADD %KEY%\020 /V 1 /D “%systemdrive%\Post_Image\Kaspersky.exe /s” /fexit[/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 -
it looks like the SetupComplete Script would be the appropriate place for it
-
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.
-
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.