Showing results for Array - Scripting Blog [archived]

Dec 2, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Remove an Item from an Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell remove an item from an array. How can I remove an item from an array?Use the ArrayList class, which has the Remove() method (instead of using System.Array,            which does not have this method):PS > $ArrayList = New-Object System.Collections.Ar...

Scripting Guy!Windows PowerShellPowerTip