How do I determine the location of an item in my powershell array?
How do I determine the location of an item in my powershell array? If I use -contains, it will give me True or False. If I use -eq, it will give me the value of the item. But I need to know the location (which number in the array (how far down the array sequence) is that item located?).
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!