This message was deleted.
# microsoft-fslogix
s
This message was deleted.
a
You can try following powershell command on the server where the fslogix disks are stored: Get-SmbOpenFile | Where-Object {$_.Path -like "[PathToVDHXFiles]*"} In the output you will see the IP address of the server accessing the vhdx file
n
This is what I used to use:
Copy code
Get-SmbOpenFile -cimsession 'Server' | Where -Property ShareRelativePath -Match ".VHDX" | Select ClientUserName, Path, ClientComputerName | Sort -Property ClientUserName
c
I found this https://www.tunecom.be/how-to-retrieve-lingering-fslogix-profiles-on-windows-virtual-desktop-mounted-from-an-azure-file-share/ which is perfect but its for WVD/Azure files 😞 i really need to upgrade Fslogix apps service and use the fslogix cleanupinvalidsessions reg key which should fix it
Cheers Nick /Alex compmgmt open files/sessions is very similar method i use atm to those scripts to find out which server has the lock on the files. I was hoping someone had a tool/script were you could enter the affected username and it scanned all the citrix boxes for the inavlid fslogix session reg keys / mounted vhdx's and then could delete the reg keys /unmount the vhdx's automatically if it found a invalid session (No citrix session but Reg key and containers mounted)
j
@Guy Leech has a nice script here that you could likely build on top of https://github.com/guyrleech/Microsoft/blob/master/Show%20FSlogix%20volumes.ps1
r
One good thing, In the last couple of releases can't remember what version. Inside the profile path there is a meta data file showing which machine has it open. Not that it helps you now.
s
also, if your using Moyle's shrink script there are some known issues where you need to unmount things.
g
The good news is that I have a script that looks at the binary .metadata files on the share(s) and gets the details of where the disk is mounted. The bad news is that the script has gone AWOL so I'll try and get this fixed ASAP https://www.controlup.com/script-library-posts/find-fslogix-mounts-from-share/
The script is back in the building so please download and test