Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 197835

Re: Script or function to accept pipeline?

$
0
0

I would make that a function.

In the param you specify which parameter accepts pipeline input.

 

param (    [CmdletBinding()]    [Parameter(Mandatory=$true,ValueFromPipeline=$true)]    [string]$Cluster)

Viewing all articles
Browse latest Browse all 197835

Trending Articles



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