Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Need help with a broken ForEach

$
0
0

if (-not $sname) is never going to be True; $sname is a string you’ve defined. I assume you meant to do if (-not $svc) in that conditional.


Viewing all articles
Browse latest Browse all 13067

Trending Articles