The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Command-Line Question

kayen7kayen7 Registered User regular
edited June 2007 in Games and Technology
Guys, I am having trouble finding the right code to display the list of network drivers connected to a specific machine hostname, using Windows Command-Line. I need to write a script for this function.

Anybody have any idea? I have a couple of different command line books and I can't find it.

Thanks for any help you can give.

This is my sig. There are many like it but this one is mine. Without my sig I am nothing. Without me, my sig is nothing.
kayen7 on

Posts

  • WeretacoWeretaco Cubicle Gangster Registered User regular
    edited June 2007
    well..

    ipconfig /all

    will display most of your network information

    Weretaco on
    Unofficial PA IRC chat: #paforums at irc.slashnet.org
  • kayen7kayen7 Registered User regular
    edited June 2007
    I don't need the network information. I need to have it list the network mapped drives, the paths to those drives, and the letters they are mapped with. Thanks though :)

    kayen7 on
    This is my sig. There are many like it but this one is mine. Without my sig I am nothing. Without me, my sig is nothing.
  • Senor_QuesoSenor_Queso Registered User regular
    edited June 2007
    What about the net use command? As in

    c:\net use
    NET USE
    [devicename | *] [\\computername\sharename[\volume] [password | *]]
    [/USER:[domainname\]username]
    [/USER:[dotted domain name\]username]
    [/USER:[username@dotted domain name]
    [/SMARTCARD]
    [/SAVECRED]
    [/PERSISTENT:{YES | NO}

    NET USE {devicename | *} [password | *] /HOME

    NET USE [/PERSISTENT:{YES | NO}]

    Maybe you can tie that in with the host name you are trying to get info from.

    Senor_Queso on
    Duck was a neutral party, so he brought the ultimatum to the cows.

    XBL: ElQuesoUno
    NNID: ElQuesoUno
  • Bob SappBob Sapp Registered User regular
    edited June 2007
    Try "net use" without the quotes.

    Bob Sapp on
    fizzatar.jpg
  • MordrackMordrack Registered User regular
    edited June 2007
    "net use" not working?
    edit: beaten like a rented mule.

    Mordrack on
    steam_sig.png
  • kayen7kayen7 Registered User regular
    edited June 2007
    I was looking at net use a bit before. Having a bit of trouble working it into a script that will run off of a list. Thanks for the suggestions.

    kayen7 on
    This is my sig. There are many like it but this one is mine. Without my sig I am nothing. Without me, my sig is nothing.
  • devoirdevoir Registered User regular
    edited June 2007
    What are you writing the script in? VBS would be the most appropriate IMO and you are able to grab basically any information that a command will give you, via system API calls.

    devoir on
  • kayen7kayen7 Registered User regular
    edited June 2007
    Just trying to write something that will have a simple output. Wanted to find a quick way to write it in cmd line.

    kayen7 on
    This is my sig. There are many like it but this one is mine. Without my sig I am nothing. Without me, my sig is nothing.
  • SnowconeSnowcone Registered User regular
    edited June 2007
    Download and "install" PsExec. PsExec allows you to run command line commands on remote machines. Store whatever script you are using to dump the drivers associated with each machine on your network and create a .vbs file that runs through a list of hostnames and uses PsExec to execute the driver script and store the results.

    http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

    Snowcone on
  • mausmalonemausmalone Registered User regular
    edited June 2007
    Snowcone wrote: »
    Download and "install" PsExec. PsExec allows you to run command line commands on remote machines. Store whatever script you are using to dump the drivers associated with each machine on your network and create a .vbs file that runs through a list of hostnames and uses PsExec to execute the driver script and store the results.

    http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

    This is sounding more and more like somebody looking for info on how to fuck over the network he's on and not someone looking for useful information ...

    mausmalone on
    266.jpg
  • NailbunnyPDNailbunnyPD Registered User regular
    edited June 2007
    Are you a domain admin? Add a couple lines to your startup script. Use net use command to get the info, and arrange for it to output to a text file. Here's an example of how I log users logging in and out of computers on my domain:
    echo %USERNAME%,%COMPUTERNAME%,%DATE%,%TIME%,LOGON >> \\server\Logs\InOutLog.txt
    

    NailbunnyPD on
    XBL: NailbunnyPD PSN: NailbunnyPD Origin: NailbunnyPD
    NintendoID: Nailbunny 3DS: 3909-8796-4685
    steam_sig-400.png
  • kayen7kayen7 Registered User regular
    edited June 2007
    Thanks for all of the information guys. I am not trying to mess up anything. It is simply for statistical purposes. I may be getting close to the answer. Another guy I work with is checking it out with me. If we get it to work the way we want, I will show you how.

    kayen7 on
    This is my sig. There are many like it but this one is mine. Without my sig I am nothing. Without me, my sig is nothing.
  • SnowconeSnowcone Registered User regular
    edited June 2007
    mausmalone wrote: »
    Snowcone wrote: »
    Download and "install" PsExec. PsExec allows you to run command line commands on remote machines. Store whatever script you are using to dump the drivers associated with each machine on your network and create a .vbs file that runs through a list of hostnames and uses PsExec to execute the driver script and store the results.

    http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

    This is sounding more and more like somebody looking for info on how to fuck over the network he's on and not someone looking for useful information ...


    I used to work for a managed hosting company and while many tools can be used maliciously, the value of something like this cannot be measured. I currently use Dameware NT Utils for all my remote control and remote information needs.

    Snowcone on
Sign In or Register to comment.