For those struggeling with Citrix Files client suddenly not showing any drives in Windows Explorer.
I recently updated my client, and to my surprise, the agent starts, but no mapped drives are showing up. I also have had a few users randomly getting this issue at older versions of the client than the current. Reinstalling the client, clearing regisry for Citrix Files, resetting the app etc makes no difference.
Checking the changelog for the client on Citrix website one can find the following information:
Citrix docs for Content Collaboration
“Known issues in 4.6
- Citrix Files for Windows fails to mount on Windows 10. A recent Windows update (version 1809) introduced issues with drive mounting. For more information and workarounds on mapped drives and Windows 10 1809, see Windows Support.”
Going to the Windows support page informs you about an ongoing issue with network drives for Windows 10 1809 – Citrix Files is doing Network drive mapping, so that should do the trick.
The Windows Support site gives you 2 workarounds in the form of scripts. I would recommend the Scheduled task solution, unless you want a command prompt window hanging around your screen for a while at every logon – I will post a copy of the workaround here:
Create a script file named MapDrives.ps1
The file should be run at a regular but not at an elevated command prompt because it should be run at the same privilege as Windows Explorer:
$i=3 while($True){ $error.clear() $MappedDrives = Get-SmbMapping |where -property Status -Value Unavailable -EQ | select LocalPath,RemotePath foreach( $MappedDrive in $MappedDrives) { try { New-SmbMapping -LocalPath $MappedDrive.LocalPath -RemotePath $MappedDrive.RemotePath -Persistent $True } catch { Write-Host "There was an error mapping $MappedDrive.RemotePath to $MappedDrive.LocalPath" } } $i = $i - 1 if($error.Count -eq 0 -Or $i -eq 0) {break} Start-Sleep -Seconds 30 }
Create a scheduled task
- Copy the script file MapDrives.ps1 to the following location:
%SystemDrive%\Scripts\
- In Task Scheduler, select Action > Create Task.
- On the General tab in the Create Task dialog box, type a name (such as Map Network Drives) and description for the task.
- Select Change User or Group, select a local user or group (such as LocalComputer\Users) and then select OK.
- On the Triggers tab, select New, and then select At log on for the Begin the task field.
- On the Actions tab, select New, and then select Start a program for the Action field.
- Type Powershell.exe for the Program/script field.
- In the Add arguments (optional) field, type the following:
-windowsstyle hidden -command .\MapDrives.ps1 >> %TEMP%\StartupLog.txt 2>&1
- In the Start in (optional) field, type the location (%SystemDrive%\Scripts\) of the script file.
- On the Conditions tab, select the Start only if the following network connection is available option, select Any connection, and then select OK.
- Copy the script file MapDrives.ps1 to the following location:
- Log off, and then log back on to the device to run the scheduled task.
Consultant manager & SME @ iteam, localized in Kristiansund, Norway.
Focused on EUC, security, mobility, virtualization, management and a modern workplace. Highly specialized around RDS/Citrix/EUC/Mobility.