Need to perform multiple deployments with reboot in between
I am trying to upgrade Citrix Receiver 4.5 to 4.7. The problem is we are moving forward with using the Single Sign on option. Per Citrix, going from an instance that did not have that enabled, you have to run the cleanup utility and reboot and then install the new version with Single Sign on enabled. I am trying to figure out a way to make this into a deployment. My first attempt was making the original deployment run the clean up utility, then copy the installation and script for the new version of citrix to a local folder as well as a batch script in the startup folder that would run that script. The problem with this is the script will fail because our users do not have admin rights, so upon logon the script will run but error.
Is there anyway for KACE to run a deployment, reboot the pc, and upon logon (BUT NOT A LOGIN SCRIPT) run the next deployment for install. I found out the "After login" option does not allow the Single Signon to get enabled, the user MUST be already logged in. Any help will be appreciated.
Thank you.
4 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
lrroan1441
7 years ago
I finally got it working. I created a scheduled task that got imported during the removal of Citrix and before the reboot. I also dropped the CitrixInstall.txt file like Desktop Jockey suggested and created smart labels to automatically add devices to install Citrix after it finds the CitrixInstall.txt. The scheduled task runs the check in commands locally upon logon. So after the reboot, the user logs in, the scheduled task to check in the device starts, and after it checks in the PC adds itself to the Citrix Install label and pushes the install to the device.
Comments:
-
Sorry for the delayed response. I am glad you were able figure it out! - Desktop Jockey 7 years ago
1. In your initial script add this(We can clean it up later if it solves your issue):
Reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v KaceCheckin /d "C:\Programdata\Dell\Checkin.bat" /f
Echo "C:\Program Files (x86)\Dell\KACE\Runkbot.exe" 4 0 >> C:\Programdata\Dell\Checkin.bat
Echo More Steps Needed!! > C:\Programdata\Dell\CitrixInstall.txt
2. Create a custom Software inventory rule to look for the Citrixinstall.txt file
FileExists(C:\Programdata\Dell\CitrixInstall.txt)
3. Then create a smart label that looks for the Software entry:
Software Titles = Whatever you named it in step 2
4. Attach the smart label to the script you want to run after reboot.
Also! Make sure you delete C:\Programdata\Dell\CitrixInstall.txt in your second script - Desktop Jockey 7 years ago
You have put step 1 into your initial script, Ran it, then verified that the files/Reg entry Exist:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\KaceCheckin
C:\Programdata\Dell\Checkin.bat
C:\Programdata\Dell\CitrixInstall.txt
Does the CMD window pop up upon reboot?
Does the computer show up in your smart label or under Software inventory item? - Desktop Jockey 7 years ago