Answer by Brendan Harris for What does the "@" symbol do in PowerShell?
I hope this helps to understand it a bit better.You can store "values" within a key and return that value to do something.In this case I have just provided @{a="";b="";c="";} and if not in the options...
View ArticleAnswer by Michael Sorens for What does the "@" symbol do in PowerShell?
While the above responses provide most of the answer it is useful--even this late to the question--to provide the full answer, to wit:Array sub-expression (see about_arrays)Forces the value to be an...
View ArticleAnswer by Jeffrey Snover - MSFT for What does the "@" symbol do in PowerShell?
In PowerShell V2, @ is also the Splat operator.PS> # First use it to create a hashtable of parameters:PS> $params = @{path = "c:\temp"; Recurse= $true}PS> # Then use it to SPLAT the parameters...
View ArticleAnswer by Mike Shepard for What does the "@" symbol do in PowerShell?
You can also wrap the output of a cmdlet (or pipeline) in @() to ensure that what you get back is an array rather than a single item.For instance, dir usually returns a list, but depending on the...
View ArticleAnswer by Don Jones for What does the "@" symbol do in PowerShell?
PowerShell will actually treat any comma-separated list as an array:"server1","server2"So the @ is optional in those cases. However, for associative arrays, the @ is...
View ArticleAnswer by Cadoo for What does the "@" symbol do in PowerShell?
The Splatting OperatorTo create an array, we create a variable and assign the array. Arrays are noted by the "@" symbol. Let's take the discussion above and use an array to connect to multiple remote...
View ArticleWhat does the "@" symbol do in PowerShell?
I've seen the @ symbol used in PowerShell to initialise arrays.What exactly does the @ symbol denote and where can I read more about it?
View Article
More Pages to Explore .....