_VDESKS — Returns the number of virtual desktops found.

Syntax:
%_VDESKS

This feature requires Windows 10 or later. If virtual desktops are not supported or any other error occurs, _VDESKS returns 0.