Take a look at this: http://poshoholic.com/2009/07/08/essential-powershell-know-your-operator-and-enclosure-precedence/
Christopher Bodnar Enterprise Architect I, Corporate Office of Technology:Enterprise Architecture and Engineering Services Tel 610-807-6459 3900 Burgess Place, Bethlehem, PA 18017 christopher_bod...@glic.com The Guardian Life Insurance Company of America www.guardianlife.com From: Michael Leone <oozerd...@gmail.com> To: "NT System Admin Issues" <ntsysadmin@lyris.sunbelt-software.com> Date: 02/21/2013 12:29 PM Subject: Re: Powershell with Quest advice - show all disabled users, but only in a certain OU On Thu, Feb 21, 2013 at 12:17 PM, Christopher Bodnar <christopher_bod...@glic.com> wrote: > > Something like this might help: > > get-qaduser|where {$_.dn -match "Q2" -and $_.dn -match "Q3"} Yes, I can definitely make use of that - thanks! How would I do the reverse? i.e., dn must not match DISABLED? (to find any disabled accounts that are not in the DISABLED OU or it's sub-OUs) ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin ----------------------------------------- This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin
<<image/jpeg>>