View Domain Net Shares via DOS
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17

Thread: View Domain Net Shares via DOS

  1. #1
    Registered User
    Join Date
    Jun 2001
    Location
    A Planet Called Earth
    Posts
    25

    Question View Domain Net Shares via DOS

    Within a domain, I want to walk up to any computer, open a DOS prompt on Windows 2000, and run a DOS command which will show me all the network shared directories of other computers within the same domain.

    What is the DOS command to display this listing?

    Thanks for your comment :-)

  2. #2
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Prompt ! no dos ... 'tis emmulated

    Net View do you ?
    Displays a list of computers in a specified workgroup or
    the shared resources available on a specified computer.
    NET VIEW [\\computer] [/YES]
    NET VIEW [/WORKGROUP:wgname] [/YES]

    computer Specifies the name of the computer whose shared resources you want to see listed.
    /WORKGROUP Specifies that you want to view the names of the computers in another workgroup that share resources.
    wgname Specifies the name of the workgroup whose computer names you want to view.
    /YES Carries out the NET VIEW command without first prompting you to provide information or confirm actions.

    To display a list of computers in your workgroup that share
    resources, type NET VIEW without options.
    Maybe this works in a domain too ? I dunno have a go !

  3. #3
    Registered User Gabriel's Avatar
    Join Date
    Aug 2000
    Location
    Tel Aviv Israel
    Posts
    2,161
    Quote Originally Posted by confus-ed
    Prompt ! no dos ... 'tis emmulated

    ...
    Not necessarily - There network Dirvers for DOS (Lanman...).

    and yest IMHO - NET view does works in DOS Lanman


    Cheers,
    Gabriel
    Real stupidity beats Artifical Intelligence
    Avatar courtesy of A D E P T

  4. #4
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by Gabriel
    Not necessarily - There network Dirvers for DOS (Lanman...).
    There's no flipping DOS on a w2k or xp box, unless you put it there seperately, how the hell can it be DOS if its writing on an NTFS partition ? Its emmulated - honest !

  5. #5
    Registered User
    Join Date
    Jun 2001
    Location
    A Planet Called Earth
    Posts
    25

    Thanks !

    My bad.....

    I know there is not true DOS prompt in 2000 or XP. I mispoke. There is a DOS emulation environment....

    Thanks for the reminder :-)

    Quote Originally Posted by confus-ed
    Prompt ! no dos ... 'tis emmulated

    Net View do you ?

    Maybe this works in a domain too ? I dunno have a go !

  6. #6
    Registered User
    Join Date
    Jun 2001
    Location
    A Planet Called Earth
    Posts
    25

    Still Need Answer to Question

    the Net View command has been explained, but not thoroughly.

    The above examples show the NET VIEW command for workgroups...
    I need to know how to view the shares of many computers in a DOMAIN...?????

    Quote Originally Posted by ntbluez
    My bad.....

    I know there is not true DOS prompt in 2000 or XP. I mispoke. There is a DOS emulation environment....

    Thanks for the reminder :-)

  7. #7
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by ntbluez
    the Net View command has been explained, but not thoroughly.

    The above examples show the NET VIEW command for workgroups...
    I need to know how to view the shares of many computers in a DOMAIN...?????
    Is it too hard to try ? I'm not in a domain to try it ... I did give you a 'start' ...

    Edit:

    That's probably harsh (but come on !...) .. maybe he actually tried?

    There's also NET VIEW /DOMAIN ... "To see a list of all shares in the domain:"

    Google found me the 'full instructions' in about 30 seconds ... Net view - explained @ tech net

    Displays a list of domains, computers, or resources that are being shared by the specified computer. Used without parameters, net view displays a list of computers in your current domain.
    Last edited by confus-ed; January 20th, 2004 at 07:47 AM.

  8. #8
    Tech-To-Tech Mod kato2274's Avatar
    Join Date
    Sep 2001
    Location
    Bentleyville, Pa
    Posts
    2,317
    Quote Originally Posted by confus-ed

    There's also NET VIEW /DOMAIN ... "To see a list of all shares in the domain:"
    hmm. . trying it on our domain. (net view /domain:domain_name) it's returning computer names not shares. the computer names are being returned as \\computername but when you drop it down a level from there. net view \\computername it shows the shares.
    Nonsense prevails, modesty fails
    Grace and virtue turn into stupidity - E. Costello

  9. #9
    Registered User CeeBee's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    2,494
    First of all, NET VIEW will not show hidden shares (shares ending in '$')... You'll have to use the management console for that... But for visible shares try this batch file:
    -----------------------
    net view /domain:Your_Domain>>machinelist.txt
    for /f %%i in (machinelist.txt) do net view %%i>>shares.txt
    del machinelist.txt
    -----------------------
    Quite primitive but it will work...
    Protected by Glock. Don't mess with me!

  10. #10
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by CeeBee
    .. You'll have to use the management console for that...
    I'm not a sytem admin, so this is how I'd find it all out, I'm mystified why we want this from prompt when we have a perfectly good way to do it ...

    Since I obviously know nothing 'really' about this, would someone care to hazard a guess, as to why you might ?

  11. #11
    Banned Ya_know's Avatar
    Join Date
    Jun 2001
    Posts
    10,692
    Quote Originally Posted by confus-ed
    I'm not a sytem admin, so this is how I'd find it all out, I'm mystified why we want this from prompt when we have a perfectly good way to do it ...

    Since I obviously know nothing 'really' about this, would someone care to hazard a guess, as to why you might ?
    I think you had crack in your korn flakes again. What is it pray tell that you are asking?

    Next time, just say, "why would you want to do it this way" next time...ok!?!

  12. #12
    Registered User CeeBee's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    2,494
    Quote Originally Posted by confus-ed
    I'm not a sytem admin, so this is how I'd find it all out, I'm mystified why we want this from prompt when we have a perfectly good way to do it ...
    Since I obviously know nothing 'really' about this, would someone care to hazard a guess, as to why you might ?
    For educational purposes??? For auditing? (although this is definitely NOT the way). Come on say what you think!!! Obviously you know that there are tools "out there" that can do by far more without even the need of logging on... think sniffers, arp poisoning, MAC spoofing just to begin with... And they are called network "auditing" and password "recovery" tools...
    Protected by Glock. Don't mess with me!

  13. #13
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by CeeBee
    ..Come on say what you think!!! ...
    I'd say all that Crack in my corny-flakes has me confus-ed again !

  14. #14
    Registered User
    Join Date
    Mar 2004
    Posts
    6
    I tried this in a domain to no avail!

    Quote Originally Posted by confus-ed
    Prompt ! no dos ... 'tis emmulated

    Net View do you ?

    Maybe this works in a domain too ? I dunno have a go !

  15. #15
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by TSSTSS
    I tried this in a domain to no avail!
    There's a link to technet in the thread go have another look at the instructions, I quoted a bit earlier which says it 'ought to' .. I think we were all bemused why 'legitametly' you might want to do this, generally like Cee-bee says earlier "use the management console for that" ..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •