We are using MEMCM 2006 (HTTPS only) and activated the pre-release feature "Task Sequence as an app model deployment type install method" to deploy the Citrix XenDesktop Virtual Delivery Agent (VDA) 1909. Depending on the exit code this application's setup must be restarted after a reboot for a second time. Citrix recommends using a task sequence for deployment and I thought combining the reboot proof task sequence technique with the powerful detection rules of the application model would be great. Now the problem is that I can't make it work. Following a part of the smsts.log:
Successfully retrieved TS launch information. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Time zone: -60,0,-60,0,10,0,5,3,0,0,0,0,3,0,5,2,0,0,0,Mitteleuropäische Zeit,Mitteleuropäische Sommerzeit TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Successfully retrieved Current TimeZone information. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Retrieving DP Auth token from MP. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
SSL, using authenticator in request. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Successfully retrieved Distribution Point auth token from Management Point TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Downloading policy from https://MP.domain.net. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Preparing Policy Assignment Request. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Executing Policy Assignment Request. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
SSL, using authenticator in request. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Request client ID: GUID:XXXXXXXX-YYYY-YYYY-YYYY-ZZZZZZZZZZZZ TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Response client ID: GUID:XXXXXXXX-YYYY-YYYY-YYYY-ZZZZZZZZZZZZ TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Successfully read 131 policy assignments. TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Setting _TSTSDTInstallRequestId:{UUUUUUUU-VVVV-VVVV-VVVV-WWWWWWWWWWWW} TSAgent 20.10.2020 17:10:47 9820 (0x265C)
GetAssignment() returned NULL pointer TSAgent 20.10.2020 17:10:47 9820 (0x265C)
No task sequence policies are targeted to the provisioning device. Code 0x87d00215 TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Error initializing Task Sequence environment. Code 0x87d00215 TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Task sequence launcher deployment failed!. Code 0x87d00215 TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Active Request Handle. Error code 0x80070002 TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002 TSAgent 20.10.2020 17:10:47 9820 (0x265C)
Executing command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister with options (0, 0) TSAgent 20.10.2020 17:10:47 9820 (0x265C)
The error seems to be 0x87d00215 Item not found
Here is how I build the application so far:
- created a package with the source files
- distributed the package to the DPs
- created a task sequence with a Run Command Line step using the package and the install command
- configured a reboot and a second start of the command line depending on the _SMSTSLastActionRetCode variable
- created an application with TS deployment type and the application detection rules
- deployed the application to the target collection (device collection) as required
I realized that I cannot distribute the application (or the deployment type itself) to any DP because this deployment type has no source path.
The task sequence is not configured as high impact and I used no OSD steps.
There was a similar case but no real solution in the old forum.