Hmph.
I was kicked-off the PowerShell list for some reason.
Here is my response.
From: Michael B. Smith
Sent: Thursday, October 19, 2017 2:20 PM
To: ntsys...@lists.myitforum.com; powershell@lists.myitforum.com
Subject: RE: Powershell array question and formatting question
An array in Windows is
Ah - that makes sense. The formatting threw me off as I could not see any
property via get-member that looked like Destination.
Love the feedback from these posts, thank you Michael and all!!
Thank you,
Ray
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On
Beha
Thank you Devin and all who responded – this makes sense and I will be using
this to declare new arrays (albeit difficult to remember).
The last formatting part is not working because there’s nothing to be piped
apparently
PS C:\WINDOWS\system32> foreach ($comp in $array){Test-Connection $comp
Avoid using '+=' for anything. Every time you add something using that method,
it destroys and recreates the entire array. For small lists that not a big
deal, but for large lists it is a performance nightmare. I personally prefer
array lists for ease of manipulation, and the fact that I can
Hi Ray,
Welcome to the world of guessing! Where the powershell developers had to
guess which type of arrays to give you by default. In Powershell, there are
arrays that are static (fixed length), and real arrays like you know from
C#, etc. In powershell, $a = 1,2,3 will give you one of those stati