Delete Profiles FsLogix

Juan Pablo Delgadillo Martinez 66 Reputation points
2023-08-04T19:14:52.0833333+00:00

Hello everyone, I hope you are well.

I am doing debugging, however, it is usually somewhat difficult for the scripts in Fslogix, since there are users who stopped using their avd desktop for more than 3 months and are taking up space that they do not use.

Is there any way to be able to debug these profiles that have not used their avd desktop for more than 3 months.

Excellent Friday

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,571 questions
FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
497 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 13,985 Reputation points MVP
    2023-08-04T21:43:13.71+00:00

    I assume there is a typo error in the question

    it is delete not debug

    and I will create my answer accordingly

    you can use PowerShell scripts to Delete FSLogix Profiles

    https://github.com/aaronparker/fslogix/tree/main/Profile-Cleanup

    
    $FSLogixProfilePath = "\\path\FsLogixProfiles"
    
    $DaysInactive = 90
    
    Get-ChildItem $FSLogixProfilePath -Recurse | 
        Where-Object { !$_.PSIsContainer && $_.LastWriteTime -lt (Get-Date).AddDays(-$DaysInactive) } | 
        ForEach-Object { Remove-Item $_.FullName -Force -Confirm:$false }
    
    

  2. Manthan Tikhile 0 Reputation points
    2024-05-07T06:11:19.6433333+00:00

    I am getting an error message

    Cannot find path because it does not exist.
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.