+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 47
Scripts Thread, Inventory Your network in Coding and Web Development; Likewise.. it's fun (in that sad techy sense) to seeing the comma stripping it didn't take me very long to ...
  1. #16

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Likewise.. it's fun (in that sad techy sense) to seeing the comma stripping it didn't take me very long to notice I urgently needed to add to mine.

  2. #17

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    18
    Nice script

    Although it only pulls out the active network card/mac... anyone got a mod suggestion to this script or another script which could help with pulling details for all network cards on the clients?

  3. Thanks to NeoPlosive from:

    PEO (15th April 2009)

  4. #18

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    18
    Quote Originally Posted by NeoPlosive View Post
    Although it only pulls out the active network card/mac... anyone got a mod suggestion to this script or another script which could help with pulling details for all network cards on the clients?
    Anyone?

  5. #19
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    41
    Removing the IF statement surrounding line 91/92 should give you the info you want... you could tweak the condition to filter out the MiniPort stuff though.

    Or not actually... You'll get info, but it'll overwrite the previous bit of info, you'd need to update the value assignment to include the previous value of the variable and include something to tell where one ends and the next begins.

    Code:
    MACAddressSet = MACAddressSet & " | " & objItem.MACAddress
    NetworkAdaptSet = NetworkAdaptSet & " | " & objItem.Description
    Should do the trick... maybe?
    Last edited by DrPerceptron; 24th May 2009 at 09:50 PM. Reason: I lied :( but I fixed it?

  6. #20

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,909
    Thank Post
    3,435
    Thanked 1,084 Times in 1,000 Posts
    Rep Power
    370
    Quote Originally Posted by NeoPlosive View Post
    Anyone?
    normally in a vbscript in the querry if using wmi there is a line that has something like

    Where IpEnabled=True

    If you get rid of that it should return all the mac addresses however I can't read / see the script on my iPhone so not sure how it's been coded

  7. #21

    Join Date
    Dec 2008
    Posts
    197
    Thank Post
    7
    Thanked 32 Times in 18 Posts
    Rep Power
    18
    I've developed up a working solution in order to enable the inventorying of all network adapters.

    More here: Inventory all Network Adapters

  8. #22

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,243
    Thank Post
    1,461
    Thanked 2,524 Times in 1,757 Posts
    Rep Power
    756
    Sorry to be a pain but can someone tell me how to set where the csv file is saved?
    I thought I'd sorted it out but it doesn't work!

    I want it saved to my server (called, 'server'!!) in the admin info folder then the inventory folder.
    Ta

  9. #23

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,234
    Thank Post
    894
    Thanked 1,780 Times in 1,534 Posts
    Blog Entries
    12
    Rep Power
    462
    Quote Originally Posted by witch View Post
    Sorry to be a pain but can someone tell me how to set where the csv file is saved?
    I thought I'd sorted it out but it doesn't work!

    I want it saved to my server (called, 'server'!!) in the admin info folder then the inventory folder.
    Ta
    You need to set the path in the script

  10. #24

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,243
    Thank Post
    1,461
    Thanked 2,524 Times in 1,757 Posts
    Rep Power
    756
    Quote Originally Posted by FN-GM View Post
    You need to set the path in the script
    Yes, I know and that is what I did - or at least I thought I had, but it didn't work which is why I am asking - given the info I have provided, what would you write in the script?

  11. #25
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    41
    from what I can gather, you need to create a csv file in there since the script doesn't appear to create one.

    Does it work or error or anything if you run it from your desktop etc?

  12. #26

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,243
    Thank Post
    1,461
    Thanked 2,524 Times in 1,757 Posts
    Rep Power
    756
    no, I get nothing anywhere so I don't know what is going on
    It may not even be running

  13. #27

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,234
    Thank Post
    894
    Thanked 1,780 Times in 1,534 Posts
    Blog Entries
    12
    Rep Power
    462
    what permissions are set the share and the folder?

    Is there any spaces in the path?

    Run the script manually and see if it makes one

  14. #28

    Join Date
    Oct 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Nice tool, is there any way to replace the computer string with a list of computer names?
    Regards, Doug

  15. #29

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,234
    Thank Post
    894
    Thanked 1,780 Times in 1,534 Posts
    Blog Entries
    12
    Rep Power
    462
    Quote Originally Posted by ddrcrook View Post
    Nice tool, is there any way to replace the computer string with a list of computer names?
    Regards, Doug
    I dont understand.

    You can always open your CSV file then cut and paste the computer name column into a spreadsheet.

  16. #30
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    41
    Code:
    arrComputers = Array("Computer1","Computer2","Computer3")
    For Each strComputer In arrComputers
    Somewhere around the top (line 84?) and then end with a
    Code:
    Next
    around line 320 should do it.

    Connecting to WMI on a Remote Computer (Windows)

    I may be mistaken but ou could just deploy using group policy as a startup script and you wouldn't have to worry about names, whether the PC is on currently etc.

SHARE:
+ Post New Thread
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. network inventory ?
    By mac_shinobi in forum Network and Classroom Management
    Replies: 13
    Last Post: 28th January 2009, 09:38 AM
  2. OCS Inventory
    By apeo in forum Windows
    Replies: 0
    Last Post: 1st November 2007, 01:28 PM
  3. Inventory
    By mmoseley in forum Network and Classroom Management
    Replies: 15
    Last Post: 20th June 2007, 12:31 PM
  4. Replies: 18
    Last Post: 27th June 2006, 10:34 PM
  5. Network Inventory
    By nick in forum Wireless Networks
    Replies: 8
    Last Post: 23rd September 2005, 09:23 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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