Functions/Get-UserProfiles.ps1
function Get-UserProfiles { [CmdletBinding()] param ( ) $Profiles = Get-CimInstance Win32_UserProfile $Profiles = $Profiles | Where-Object { $_.LastUseTime -and $_.Special -eq $false } $Profiles | Select-Object LocalPath, LastUseTime, SID, Loaded, HealthStatus } |