Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.
share|improve this answer
    
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 Mar 8 '13 at 12:13
    
@tikend: see update. If you have other questions, please ask separately (and please take care with question titles). – RedGrittyBrick Mar 8 '13 at 14:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .