'b' | select-String 'a' -Quiet


consider following
 
c:...\windowspowershell> 'a' | select-string 'a' -quiet
true
c:...\windowspowershell> 'b' | select-string 'a' -quiet
c:...\windowspowershell>
 
i expected second command return false.
 
 
 
 

while is counter intuitive, keep basic functionality of select-string. select-string returns *nothing* if there no matches. seems cods should updated not -quiet return false.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...