Idletime

The idletime command returns the inactive time of the current user. This command can be helpful when you want to perform some tasks by taking RDP of the host and want to make sure that the user is away from their computer.