Guide me: Powershell

Hi Guys,

Just to let you know I've never used powershell before and I'm trying to learn it.

I've been tasked with creating a script that:

1) imports data from a CSV file and gives it headers
2) pulls all rows of data in which Column B contains *java*
3) Creates a WMI Enum Class Called "LBE_JavaVer"
4) Creates properties in the Class which have the same names as the CSV Headers (which I defined in powershell)
5) Inserts selected data's values into the correct WMI Class property.

The first issue I'm having (before I even attempt the WMI stuff) is importing the CSV data.

The script will be run on 4000+ machines and I need to pull the file from Appdata\Local. The $env:LOCALAPPDATA variable isn't working for me. What should I use here?



  • Edited by Joncy92 Friday, September 11, 2015 2:33 PM
September 11th, 2015 2:24pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics