Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Create a Strongly Typed Array in PowerShell

$
0
0

Summary: Learn how to create a strongly typed array.

 

Hey, Scripting Guy! Question I want to create a strongly typed array of system.diagnostics.processes and store it in a variable called $a. How can I do this?

Hey, Scripting Guy! Answer Use a command such as:

[diagnostics.process[]]$a=get-process


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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