Command line option to check if another user is connected to the system

1

I know how to find it out by GUI, but I need to check this in cmd in batch script. Basically I need to find out if connection on PC is shared to some other users.

tikend

Posted 2013-03-07T13:34:08.203

Reputation: 265

Answers

1

Command line option to check if another user is connected to the system?

Perhaps the net session command?


Update:

I need to find out if sharing network is enabled on windows in general

To view what is shared by a specific computer

net view \\computername

For example

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.

RedGrittyBrick

Posted 2013-03-07T13:34:08.203

Reputation: 70 632

I guess it would work if someone was connected at the time, but what if no one is connected? I need to find out if sharing network is enabled on windows in general. – tikend – 2013-03-08T12:13:46.037

@tikend: see update. If you have other questions, please ask separately (and please take care with question titles). – RedGrittyBrick – 2013-03-08T14:39:54.897