Users must install Citrix Connection Manager to work from home.
Often, their default program to open .ICA files is set to a browser or nothing at all.
Some users don't know how to do this and still have issues with a very thorough step-by-step guide. Once the user has installed the CCM, it's located at C:\Program Files (x86)\Citrix\ICA Client\wfcrun32.exe.
Unable to find previous scripts that successfully complete this task.
The following uses
cmd.exe's internalassocandftypecommands to associate.icafiles with a self-created file type namedCitrixConnection, which means that such files will open with the executable specified as part of the file-type definition.cmd.execommands, they must be called viacmd /cfrom PowerShell.These commands require elevation to run, because they create machine-level (all-users) definitions.
Note the use of an (expandable) here-string (
@"<newline>...<newline>"@) so as to make use of embedded quoting easier.To later remove these definitions, run: