I have a gridview in which computernames are listed, together with their ad info (OU location etc).
The contextmenu "copy" is copying computername. However, when I select multiple lines, I'd like to have all the computernames.
Can you advise howto do this?
This is the code I have right now:
Code: Select all
$copyNameToolStripMenuItem1_Click={
$Global:Computername = $datagridviewResults.CurrentRow.Cells[1].Value
Add-ClipBoard $ComputerName
}
J