Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

PowerShell function return value

$
0
0

Function MyFunction
{
Param([string] $ComputerName)
 
$x1=get-process | Select ProcessName,Handles | FL
  
   return $x1
  
}

write-output $x1.ProcessName

It doesn't return anything why?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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