About 4,420,000 results
Open links in new tab
  1. PowerShell to extract specific column from csv and store in a variable

    Oct 8, 2015 · I want to extract the values column "key" and store in a variable. I tried this. Import-Csv .\keys.csv | select key | ft -hide. the output has a blank line at the top. How can I eliminate …

  2. Read a Csv file with powershell and capture corresponding data

    May 22, 2013 · Using PowerShell I would like to capture user input, compare the input to data in a comma delimited CSV file and write corresponding data to a variable. Example: A user is …

  3. How can I store data from a CSV file into local variables for a ...

    Apr 24, 2019 · I'm trying to read a csv file and store its data into variables that I will use for Powershell scripts. I managed to read the file by doing the following command: $csv = Import …

  4. How to Extract a Column From a CSV File and Store It in a Variable

    Mar 11, 2025 · In this article, we will explore how to extract a specific column from a CSV file and store it in a variable using PowerShell. By utilizing the Import-Csv cmdlet, we can convert a …

  5. Read From CSV in PowerShell: A Simple Guide

    To read data from a CSV file in PowerShell, you can use the `Import-Csv` cmdlet, which allows you to easily import the contents of the file into a PowerShell object for further manipulation.

  6. Import-Csv (Microsoft.PowerShell.Utility) - PowerShell

    The Import-Csv cmdlet creates table-like custom objects from the items in CSV files. Each column in the CSV file becomes a property of the custom object and the items in rows become the …

  7. PowerShell: Import CSV and Extract Specific Columns

    Mar 19, 2024 · Often you may want to use the Import-Csv cmdlet in PowerShell to import a CSV file and only extract specific columns. You can use the following syntax to do so: This …

  8. Powershell read from CSV set variables - Server Fault

    Aug 7, 2020 · I have a csv file with two columns "Path" and "Owner". I've created the below script and it can read from the CSV file, but when I attempt to assign the variables from the csv it …

  9. How to use Import-CSV in PowerShell - LazyAdmin

    Feb 8, 2022 · In this article, we are going to take a look at how to read a CSV file with PowerShell, using the Import-CSV function, and how to read each line with the foreach cmdlet.

  10. Import-CSV: Reading CSV Files with PowerShell - Windows OS Hub

    Mar 17, 2024 · You can use the Import-CSV PowerShell cmdlet to read the contents of a CSV file. Once you load the contents of the CSV file, you get a PowerShell object in which each column …

  11. Some results have been removed
Refresh