[powershell] get list of logon/logoff of logged user or another on this computer

#get IPScope function GetScope{ Param([Parameter(Mandatory=$true)][string]$PC,[Parameter(Mandatory=$true)][string]$ip) if($ip){$ipV4 = $ip} else{$ipV4 = (Test-Connection -ComputerName $PC -Count 1 | Select IPV4Address).IPV4Address} $ipV40 = $ipV4.split(".")[1]...
#get IPScope function GetScope{ Param([Parameter(Mandatory=$true)][string]$PC,[Parameter(Mandatory=$true)][string]$ip) if($ip){$ipV4 = $ip} else{$ipV4 = (Test-Connection -ComputerName $PC -Count 1 | Select IPV4Address).IPV4Address} $ipV40 = $ipV4.split(".")[1]...