Posted on 2022-06-162022-07-26 powershell – delete user profile Get-CimInstance -Class Win32_UserProfile | Where-Object { $_.LocalPath.split('\')[-1] -eq 'UserXYZ' } | Remove-CimInstance Share this:Print