Tag Archives: 5

Xendesktop 5 – Log off disconnected users after a certain time

Example: If you want to log off user after 120 minutes of disconnect time. You can set this up though Powershell

ASNP Citrix.*

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectAction "shutdown"