Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 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.
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.