Jump to content

Recommended Posts

Posted

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

  • 3 months later...
Posted
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.

Posted

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

Posted
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.

Posted
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 ?

Posted

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

Posted
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.

  • Thanks 1
Posted

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.

Posted
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

  • 7 months later...
Posted
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 :)
  • 2 weeks later...
Posted
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\Inventory\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.

  • 1 year later...
  • 1 year later...
Posted
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.
  • 2 months later...
  • 1 month later...
Posted

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

  • 2 weeks later...
Posted (edited)

Just found this, Sweet script!

 

I might write a PHP frontend for it to show the data.

 

EDIT: Ok that didn't take long :) Works well.

 

[ATTACH=CONFIG]20965[/ATTACH]

inventory2.png

Edited by zag
  • 2 years later...
Posted
This script will take a whole inventory of your machines and put it in a CSV file. Its VBS just add it to a stsrtup script.

 

It will also upload the dell service tag.

 

Coding is attached

Enjoy

 

z

 

Sir,

 

where i'm going to put this on my windows server 2012. in what exact location to putt his for me to run for the inventory purposes?

 

Thank you for the script.

Posted

I just came across this now - and it works great - thanks to all involved.

@einjelhart I put the script as a start up script as per the instructions in the file , when you click on the browse button within the policy Policies-->Scripts-->Startup-->Properties-->Add-->Browse, you can paste the script into that location, select it and hit open.

  • Thanks 1
Posted
I just came across this now - and it works great - thanks to all involved.

@einjelhart I put the script as a start up script as per the instructions in the file , when you click on the browse button within the policy Policies-->Scripts-->Startup-->Properties-->Add-->Browse, you can paste the script into that location, select it and hit open.

 

you meant i should paste the script on the startup script, i just seen the other comment to put the script on \\servername\netlogon. is this correct? can you please help. also no need to edit the script right?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...