How to use a Select-Object to create your custom object array for you
Often when I am creating custom data, I usually:
run a query to get the data I want
iterate through that returned list and create new objects
add these objects to a separate array holder
return that.
You can merge this with something like:
Saves time and makes the code faster and more readable!
Credit for the above code is here.
PreviousHow to check the system up timeNextHow to query the Internet behind a NTLM Proxy on a corporate network
Last updated