Script now distinguishes between RDP and console logons.