Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell and -contains

$
0
0

Hi, 

I have a little problem with powershell and "contains"

In this situation works well and return "true"

$test = "where is the word"
($test).Contains("word")

but in this other return always "false" 

$test = Get-Process
($test).Contains("winlogon")

Why? 

Thanks


Andrea Gallazzi
windowserver.it - blog: andreagx.blogspot.com
This posting is provided AS IS with no warranties, and confers no rights.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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