Jump to content

Recommended Posts

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.

z

 

Thanks for this but a question - if I don't have a startup script (least I don't think I have) how do I run it? Can I just save it as a .bat and double click? Sorry if this is a stupid question but I don't know a great deal about running scripts.

Posted
rename it to vbs extension and in group policy go to the startup scripts and add it in there ( not the login script )

 

What he said, you dont need to have one already just make it the startup script. Its a VBS script not batch.

Posted
rename it to vbs extension and in group policy go to the startup scripts and add it in there ( not the login script )

 

So when does it run at the start up of what exactly?

Posted
So when does it run at the start up of what exactly?

 

Before you to the logon script it will run asif a user runs it. You set it to run as a startup script in group policy.

  • Thanks 1
Posted

startup scripts are computer, not user defined - is that right?

So....I'm not quite sure exactly where to put this script. Which computer or doesnt it matter.

Sorry, that's probably a stupid question

Posted
startup scripts are computer, not user defined - is that right?

So....I'm not quite sure exactly where to put this script. Which computer or doesnt it matter.

Sorry, that's probably a stupid question

 

put it on your server.

usually \\servername\netlogon

Posted
You know what, i've been sat here thinking that myself. There is a path in the script itself which im guessing it creates itself...

 

The CSV will make itself but you need to tell it where to make it. That is in the script.

Posted
I found it was handy for BSF when they wanted to know details of the network...

 

You helped them?! :nono: Tell them to find out for themselves... :evil:

  • Thanks 1
Posted
I use one that is nery similar (just does not go in to quite as much detail). Save me stacks of time getting the basic PC info for an audit of PC's when I first started. Just use it every now and again when a new PC or two are added.
  • 1 month later...
Posted

Nice script :cool:

 

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?

  • Thanks 1
  • 1 month later...
Posted
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?

Posted (edited)

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.

 

MACAddressSet = MACAddressSet & " | " & objItem.MACAddress
NetworkAdaptSet = NetworkAdaptSet & " | " & objItem.Description

 

Should do the trick... maybe?

Edited by DrPerceptron
I lied :( but I fixed it?
Posted
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

  • 3 weeks later...
Posted

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

Posted
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

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

Posted

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?

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