1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script for documenting Servers and Workstations

Discussion in 'Scripting & Programming' started by Phil, Dec 8, 2003.

  1. Phil
    Honorary Member

    Phil Gigabyte Poster

    1,680
    7
    87
    Take a look at this script from win32 Scripting, the guy who wrote it has done some serious work. Don't copy the script on the page as it isn't all there, download the package, extract the zip then rin the vbs file and prepare to be impressed :)

    It gathers a lot of information about the server you specify via wmi and the writes it allout as a web page.
     
    Certifications: MCSE:M & S MCSA:M CCNA CNA
    WIP: 2003 Upgrade, CCNA Upgrade
  2. SimonV

    SimonV Petabyte Poster Administrator

    6,616
    149
    228
    Not that is a nice piece if script. Nice one Phil. :thumbleft

    Si
     
    Certifications: MOS Master 2003, CompTIA A+, MCSA:M, MCSE
    WIP: Keeping CF Alive...
  3. flex22

    flex22 Gigabyte Poster

    1,679
    0
    69
    Drat :!: :x :x :x :x :x
    Accidentally came out of the chat :x

    Was about to ask.It's given me an option of what to open this script with.

    Probably obvious, but thought I'd ask.
     
  4. Cartman

    Cartman Byte Poster

    210
    0
    9
    Echo's that - I fell for that one too. Looked nice though.
     
  5. Phil
    Honorary Member

    Phil Gigabyte Poster

    1,680
    7
    87
    What OS are you trying to run it on ?
     
    Certifications: MCSE:M & S MCSA:M CCNA CNA
    WIP: 2003 Upgrade, CCNA Upgrade
  6. flex22

    flex22 Gigabyte Poster

    1,679
    0
    69
    Windows 2000 Server.
     
  7. Phil
    Honorary Member

    Phil Gigabyte Poster

    1,680
    7
    87
    try dropping to a command prompt, navigating to the directory it's in and type

    cscript SystemDocumenterv3.2.3.vbs <enter>
     
    Certifications: MCSE:M & S MCSA:M CCNA CNA
    WIP: 2003 Upgrade, CCNA Upgrade
  8. flex22

    flex22 Gigabyte Poster

    1,679
    0
    69
    It's gives me the version information, of WHS, VERSION 5.6

    Then it says Input Error: Can not find script file

    :soz rubbish at this.
     
  9. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    There's a reason why I'm not attracted to programming.
     
    Certifications: A+ and Network+
  10. Phil
    Honorary Member

    Phil Gigabyte Poster

    1,680
    7
    87
    Seems to be only myself and si who aren't having problems :eh I tried it on my 2k server with no probs and from the command line with cscript, v.odd
     
    Certifications: MCSE:M & S MCSA:M CCNA CNA
    WIP: 2003 Upgrade, CCNA Upgrade
  11. SimonV

    SimonV Petabyte Poster Administrator

    6,616
    149
    228
    It worked on XP for me, not tried it on 2Kserver yet till I get to work but will let you know.

    Si
    :D
     
    Certifications: MOS Master 2003, CompTIA A+, MCSA:M, MCSE
    WIP: Keeping CF Alive...
  12. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    3
    82
    Very Very Nice, I ran it on my workstation (Win 2000 Pro) at work and it returned the results no problem, excellent piece of scripting.
     
    Certifications: A+, 70-210, 70-290, 70-291
    WIP: 70-294
  13. AJ

    AJ Administrator Administrator

    6,771
    102
    221
    :iagree

    Just ran this on our network. It's still running but looks great, esp as were looking at this new licencing agreement with M$. Needed to know what machines and what was loaded onto the network.

    Great one Phil. Have a beer on me!! :morebeer

    Andrew
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Looking at doing ..................
  14. AJ

    AJ Administrator Administrator

    6,771
    102
    221
    Still running

    :-o

    Andrew
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Looking at doing ..................
  15. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    3
    82
    Wy did it take so long for it to run ???, only took aound 30 seconds or less per machine when i ran it this morning.
     
    Certifications: A+, 70-210, 70-290, 70-291
    WIP: 70-294
  16. AJ

    AJ Administrator Administrator

    6,771
    102
    221
    Big domain I guess. Got it looking at all 500 or so machines. Stopped it in the end and shall run it overnight. :D

    Andrew
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Looking at doing ..................
  17. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    3
    82
    how did you get it to look at all the machines, I can only get it to check the one that I tell it to when the script starts
     
    Certifications: A+, 70-210, 70-290, 70-291
    WIP: 70-294
  18. AJ

    AJ Administrator Administrator

    6,771
    102
    221
    Nelix

    when you run the script, it asks you for the company name and then for the LDAP address of the machine. If you leave it blank, I think it will only read your machine. I'm sure that if I'm wrong there someone will correct me. However in that text box, if you put in the User Principle Name of where the computers that you want read then it should do the job.

    User Principle Name basically describes where in the domain a particular OU is in the domain tree. For example if Microsoft have an OU called sales at the top level of its domain the UPN would be

    OU=Sales,DC=Micrsoft,DC=Com

    Think that's right.

    HTH

    Andrew
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Looking at doing ..................
  19. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    3
    82
    I have figured out how to get it to search out the DC's and server on the network but when I select the radio button for 'DC's and Servers' then click ok, I get This message. In task manager the script is still running but the box with the progress bar in it just says please be patient.....Is this normal???
     
    Certifications: A+, 70-210, 70-290, 70-291
    WIP: 70-294
  20. AJ

    AJ Administrator Administrator

    6,771
    102
    221
    Yea, I got that as well, but thought to myself, sod it forget it. Clicked on OK and let it chunter to itself.

    Never did let it finsh. It was still running after 16 hours so stopped it. Now made a new ou in the domain just for this purpose. Doing 10 pc's at a time so the interegation doesn't go on for too long.

    HTH

    Andrew
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Looking at doing ..................

Share This Page

Loading...