368d6fafea
Code backup
15 lines
406 B
PowerShell
15 lines
406 B
PowerShell
$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
|
|
|