Import CSV content into variables (ForEach-Object error)

Welcome Forums General PowerShell Q&A Import CSV content into variables (ForEach-Object error)

Viewing 1 reply thread
  • Author
    Posts
    • #274296
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hello everybody, first topic here!

      I’ve a CSV file and want to import all the datas into variables.

      Here is my code :

      But I got :

      applet de commande ForEach-Object à la position 2 du pipeline de la commande
      Fournissez des valeurs pour les paramètres suivants :
      Process[0] :

      Am I doing something wrong ?

      Thanks!

    • #274305
      Senior Moderator
      Topics: 9
      Replies: 1449
      Points: 5,429
      Helping Hand
      Rank: Community MVP

      Keep the opening bracket in the first line. Foreach-Object doesn’t work like conditional statements.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.