disable fast user switching

How to enable/disable fast user switching on Windows 10,8,7 and XP