+ Post New Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 47
Scripts Thread, Inventory Your network in Coding and Web Development; Ok, I understand the array idea but I have about 150 workstations over 2 sites of a mixed variety that ...
  1. #31

    Join Date
    Oct 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Ok, I understand the array idea but I have about 150 workstations over 2 sites of a mixed variety that I want to generate an inventory on but do not want to wait until they have all been logged in to use a start-up script. There is also the issue of getting the clients IT department to implement such a change, could take weeks and life is too short for that.
    I would like to pass the code the input from say a text list of workstations so that the programme just iterates through the list and that then means I can run it at my convenience.
    Regards,

    Doug

  2. #32

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,948
    Thank Post
    886
    Thanked 1,697 Times in 1,475 Posts
    Blog Entries
    12
    Rep Power
    447
    There is also the issue of getting the clients IT department to implement such a change, could take weeks and life is too short for that.
    Really why? As soon as we put ours in group policy it just works

    All our machines turn on automatically in the morning so took next to no time to do ours.

  3. #33

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,759
    Thank Post
    3,269
    Thanked 1,052 Times in 973 Posts
    Rep Power
    365
    Quote Originally Posted by FN-GM View Post
    Really why? As soon as we put ours in group policy it just works

    All our machines turn on automatically in the morning so took next to no time to do ours.
    I was thinking that if you assign the script to relevant OU's then it should just ascertain the info without enumerating machines , right ?

  4. #34

    Join Date
    Mar 2009
    Posts
    25
    Thank Post
    2
    Thanked 2 Times in 1 Post
    Rep Power
    0
    Hi,

    Thanks for the script, it seems to be just what I need, however I'm having a few teething problems, I've added it as a startup script and it doesn't appear to run. If I run the script manually it works fine, just not when it's set as a startup script. We currently have 2 other scripts running at startup and they are working fine.

    Any ideas?

    Matt

  5. #35

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,948
    Thank Post
    886
    Thanked 1,697 Times in 1,475 Posts
    Blog Entries
    12
    Rep Power
    447
    Quote Originally Posted by matte53 View Post
    Hi,

    Thanks for the script, it seems to be just what I need, however I'm having a few teething problems, I've added it as a startup script and it doesn't appear to run. If I run the script manually it works fine, just not when it's set as a startup script. We currently have 2 other scripts running at startup and they are working fine.

    Any ideas?

    Matt
    What permissions have you set on the folder where the script and the CSV file live? You will need to set it so domain computers can read and write to the folder where the CSV file lives.

  6. Thanks to FN-GM from:

    matte53 (13th October 2009)

  7. #36

    Join Date
    Mar 2009
    Posts
    25
    Thank Post
    2
    Thanked 2 Times in 1 Post
    Rep Power
    0
    That's sorted it, thanks!

  8. #37
    mullet_man's Avatar
    Join Date
    Oct 2005
    Location
    Oldham
    Posts
    726
    Thank Post
    34
    Thanked 46 Times in 45 Posts
    Rep Power
    26
    Cheers, just added this as a startup script, will it run as shutdown script ok?

    Pretty sure our laptops don't always run startup scripts due not getting an IP address at startup, so running as a shutdown script would work fine.

    Stevo.

  9. #38

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,948
    Thank Post
    886
    Thanked 1,697 Times in 1,475 Posts
    Blog Entries
    12
    Rep Power
    447
    Quote Originally Posted by mullet_man View Post
    Cheers, just added this as a startup script, will it run as shutdown script ok?

    Pretty sure our laptops don't always run startup scripts due not getting an IP address at startup, so running as a shutdown script would work fine.

    Stevo.
    dont know actually, try it

  10. #39
    Killer_Bot's Avatar
    Join Date
    Dec 2009
    Location
    Great Britain
    Posts
    73
    Thank Post
    5
    Thanked 13 Times in 12 Posts
    Rep Power
    12
    Thanks for the script FN-GM, is there any way to add the module type to the script? I've ran the script off and it pulls alot of information off but not the one piece I really could do with, i.e. is it DDR, DDR-2 or DDR-3? I have no scripting knowledge and can't seem to find any way to add it myself. Would appreciate any advice you may have

  11. #40

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,897
    Thank Post
    351
    Thanked 1,289 Times in 881 Posts
    Blog Entries
    4
    Rep Power
    1128
    Quote Originally Posted by witch View Post
    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?
    Hi,

    I think the point you are looking for clarification on is this:

    filepath = "\\Servername.ChildDomain.ParentDomain.Local\Inven tory\inventorylog.csv"
    If your network does not have a Parent Domain/Child Domain structure you would probably use:

    filepath = "\\Servername.Local\Inventory\inventorylog.csv "
    I have shared the 'Inventory' folder at the server and given Domain Computers permissions to the folder.

    HTH.

  12. #41

    Join Date
    Oct 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Anyone know how to make it pull the current user?

  13. #42

    Join Date
    May 2013
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I was just going to ask the same question. I was trying to play with the code but it wasn't working for me to add the username to the script.

  14. #43

    Join Date
    Aug 2013
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Is it possible to add last logged on user or current user to this script? This would greatly help ! : ) thanks

  15. #44
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,286
    Thank Post
    80
    Thanked 45 Times in 31 Posts
    Rep Power
    31
    I may be being dumb, but what happens when the script runs and the PC already has an entry in the CSV?
    Does it not pull the information or does it overwrite the information or does it append another set of information?

    Cheers

  16. #45

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,948
    Thank Post
    886
    Thanked 1,697 Times in 1,475 Posts
    Blog Entries
    12
    Rep Power
    447
    If its already in the CSV it will skip it, it wont change any information.

SHARE:
+ Post New Thread
Page 3 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
  •