Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Updating a row in a datatable

$
0
0

Hi all,

I have an in-memory datatable that is populated by importing a CSV file. It has the columns DisplayName, Alias, Windowsemailaddress and Status. I want to find a row with a certain alias, eg. DanWalker and update its status to 2.

I can select the row like this: $table.Select("alias='danwalker'") but I cannot work out how to update that row.

I can only find examples of SQL and I am not using SQL!

Please help.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>