Sys_isUserLoggedOn

SYNOPSIS

Checks if a user is logged on to the system.

SYNTAX

__AllParameterSets

Sys_isUserLoggedOn

ALIASES

This cmdlet has the following aliases,

DESCRIPTION

This function checks if a user is logged on to the system.

EXAMPLES

EXAMPLE 1

if (Sys_isUserLoggedOn) { Write-Host “User is logged on.” } else { Write-Host “User is not logged on.” }

PARAMETERS

INPUTS

OUTPUTS

NOTES