In Windows Host Scripting, we used Loops, IF , Else, End.
I wonder if powershell has the equivalent of that or it uses the pipes '|' as the equivalent.
it sounds to me that Powershell uses the concept of SQL queries, "Select columnname where columnname=XX and .....etc.." but with different syntax.
for instance I need to retrieve AD users who belong to Accounting Dept that have password expiration date "10/20/2013"
Any help will be appreciated,