Intune – Deploy Citrix Package

email me

Deploy the Citrix Workspace App using Intune.

 

Steps

Step 1 – Create C:\intune\Citrix folder.

 

Step 2 – Download Citrix setup to C:\intune\Citrix folder.

 

Step 3 – Create Intune.cmd in Citrix folder containing the following code:

cd "%~dp0"

CitrixWorkspaceApp.exe /forceinstall /silent STORE0="Store;https://mycitrix.umc.edu/Citrix/ummcWeb/discovery;Store"

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\Dazzle" /v AllowAddStore /t REG_SZ /d A /f /reg:64

:: add any other commands here

 

Step 4 – Create CitrixWorkspaceApp.intunewin file using the IntuneWinAppUtil.exe tool:

IntuneWinAppUtil.exe -c C:\intune\Citrix -s CitrixWorkspaceApp.exe -o C:\intune


Output

Validating parameters
Validated parameters with 71 milliseconds
Compressing the souce folder ‘C:\intune\Citrix’ to ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin’
Calculated size for folder ‘C:\intune\Citrix’ is 135358287 with 2 milliseconds
Compressed folder ‘C:\intune\Citrix’ successfully with 10782 milliseconds
Checking file type
Checked file type with 7 milliseconds
Encrypting file ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin’
‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin’ has been encrypted successfully with 1049 milliseconds
Computing SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\1f6bd862-d312-413c-8260-a3a4e55fb61b
Computed SHA256 hash for ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\1f6bd862-d312-413c-8260-a3a4e55fb61b’ with 2553 milliseconds
Computing SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin
Computed SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin with 2668 milliseconds
Copying encrypted file from ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\1f6bd862-d312-413c-8260-a3a4e55fb61b’ to ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin’
File ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Contents\CitrixWorkspaceApp.intunewin’ got updated successfully with 622 milliseconds
Generating detection XML file ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage\Metadata\Detection.xml’
Generated detection XML file with 256 milliseconds
Compressing folder ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage’ to ‘C:\intune\CitrixWorkspaceApp.intunewin’
Calculated size for folder ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage’ is 135087474 with 1 milliseconds
Compressed folder ‘C:\Users\Homelab\AppData\Local\Temp\b069c44b-fd37-4729-9728-f504ebaeb095\IntuneWinPackage’ successfully with 1498 milliseconds
Removing temporary files
Removed temporary files with 28 milliseconds
File ‘C:\intune\CitrixWorkspaceApp.intunewin’ has been generated successfully

[=================================================]   100%
Done!!!

 

Step 5 – Azure Portal > Microsoft Intune > Client Apps > Apps > Add > Windows app (Win32)

Navigate to CitrixWorkspaceApp.intunewin:

Fill in App information:

Fill in Program Config:
Install: Intune.cmd
Uninstall: “C:\ProgramData\Citrix\Citrix Workspace 1911\TrolleyExpress.exe” /uninstall /cleanup

Fill in basic Requirements:

Fill in Detection Rule Config:
Path: C:\ProgramData\Citrix\Citrix Workspace 1911
File: TrolleyExpress.exe
Method: File or Folder exists

 

Step 6 – Click Add button.

 

Step 7 – Assign a group to the application and Save:

 

Step 8 – Force a sync or reboot client computer.

 

Notes

 

Intune Standalone – Win32 app management

Add a Windows line-of-business app to Microsoft Intune

Microsoft Intune Documentation

 

Custom Publisher

reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CitrixOnlinePluginPackWeb” /v Publisher /d “Intune” /t REG_SZ /f /REG:32

 


Direct Download

$appURL = "https://downloadplugins.citrix.com/Windows/CitrixWorkspaceApp.exe"
$appTemp = "$env:SystemRoot\Temp\CitrixWorkspaceApp.exe"
$appOptions = '/AutoUpdateCheck=Auto /AutoUpdateStream=Current /DeferUpdateCount=3 /AURolloutPriority=Slow /NoReboot /Silent EnableCEIP=False'
Start-BitsTransfer -Source $appURL -Destination $appTemp -Priority High -TransferPolicy Always -ErrorAction Continue
Start-Process -FilePath $appTemp -ArgumentList $appOptions

 

Other Findings


App Deployment Details

HKLM\SOFTWARE\Microsoft\IntuneManagementExtension\Win32Apps\


Intune Win32 Apps Downloads

C:\Windows\IMECache


App Bin Download

C:\Program Files (x86)\Microsoft Intune Management Extension\Content\Incoming


Intune LoB Apps Downloads

C:\Windows\System32\config\systemprofile\AppData\Local\mdm


Intunewin File Decoder

https://github.com/okieselbach/Intune/tree/master/IntuneWinAppUtilDecoder

PowerShell Scripts

Use PowerShell scripts on Windows 10 devices in Intune

 

tags: Citrix Intune automation, Intune packaging, Intune scripting, MrNetTek