$Server = "PC284.pal.local" $Sessions = (quser /server:$Server) -replace '\s{2,}', ',' | ConvertFrom-Csv $Utente = $Sessions.NOMEUTENTE $Sessione = $Sessions.NOMESESSIONE $Stato = $Sessions.STATO $Tempo = $Sessions."INATTIVITÀ ACCESSO" Write-Host "Host: "$Server Write-Host "Utente: "$Utente Write-Host "Sessione: "$Sessione Write-Host "Stato: "$Stato Write-Host "Tempo: "$Tempo