I have a user with a PDF file on the desktop of their Windows 10 Azure VDI that they are unable to delete.
When they try, they get an Access Denied error. But the file properties are missing the Security tab. So, it is not possible to take ownership of the file. It is the only file in the folder that is missing the security tab. All other files in the same folder have a Security tab and a change of ownership completes successfully. The file is not set to Read Only either.
A recursed Get-ChildItem on the folder holding the file returns a list with the offending PDF in it, and the file is also visible in File Explorer.
But the following command returns "Cannot find path".
Get-ChildItem -Path '\\DeviceName\c$\Users\username\Desktop' -Filter "*.pdf" -Recurse | Get-AcL
A less specific version returns a list of files that does not include the PDF in question and the same "Cannot find path" error as the command above.
Get-ChildItem -LiteralPath 'DeviceName\c$\Users\username\Desktop' -Recurse | Get-AcL
Does anyone have any ideas on how to deal with this rogue file without wiping her VDI profile?