Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Remove Item from an Array in Power Shell

$
0
0

Hello Guys i have a simple but driving my crazy question:

in power shell i did the following

$a = 1,2,3,4

$a

1

2

3

4

 

now the question is: if i want to Remove number 3 for example from that array, how can i do that >?????

i tried

$a - 3 " didnt work"

any ideas?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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