Command line option to check if another user is connected to the system?
Talvez o comando net session
?
Atualização:
I need to find out if sharing network is enabled on windows in general
Para ver o que é compartilhado por um computador específico
net view \computername
Por exemplo
C:\> net view \BUBBA
Shared resources at \BUBBA
bubba Miniserver
Share name Type Used as Comment
-----------------------------------------------
home Disk Home Directories
storage Disk Common storage
The command completed successfully.