I have a dog-eared copy of the O'Reilly Mastering Regular Expressions manual. In it there is a quote, of unknown origin:
"You have a problem. You've decided to solve it using a regular expression. Now you have two problems." -----Original Message----- From: Jason Gurtz [mailto:[email protected]] Sent: Tuesday, August 10, 2010 2:45 PM To: MS-Exchange Admin Issues Subject: RE: Powershell List Applied Managed Folder Policy Two things: get $_ down cold and get better at regular expressions. The best way to learn is to practice me thinks. It may help to think of PS as deriving the best from Perl, SQL, and the Bash shell, wrapping it all up in .Net objects in a pipeline. ~JasonG > -----Original Message----- > From: Eric [mailto:[email protected]] > Sent: Tuesday, August 10, 2010 11:50 > To: MS-Exchange Admin Issues > Subject: Re: Powershell List Applied Managed Folder Policy > > That worked great! Still trying to take my beginner understanding of PS > to the next level. Any suggestions of sites or tools to expand the > foundations of PS to real world use would be great :) > > > On Tue, Aug 10, 2010 at 8:33 AM, Campbell, Rob > <[email protected]> wrote: > > > Get-mailbox -resultsize unlimited | select > displayname,managedfoldermailboxpolicy | sort displayname | export-csv > c:\somedir\mbx_policy.csv -notype > > > > From: Eric [mailto:[email protected]] > Sent: Tuesday, August 10, 2010 10:28 AM > To: MS-Exchange Admin Issues > Subject: Powershell List Applied Managed Folder Policy > > > > I am trying to create a powershell script/command to list all the > mailboxes in our organization and which managed folder policies are > applied. This is what I used to apply the policy but want to verify that > all the mailboxes were applied the policy. > > Get-User -organizationalUnit staff | Where-Object > {$_.RecipientType -eq "UserMailbox"} | Set-Mailbox - > ManagedFolderMailboxPolicy "Default Managed Custom Folders" > > Thanks! > > ****************************************************************** > ******************************** > Note: > The information contained in this message may be privileged and > confidential and > protected from disclosure. If the reader of this message is not > the intended > recipient, or an employee or agent responsible for delivering this > message to > the intended recipient, you are hereby notified that any > dissemination, > distribution or copying of this communication is strictly > prohibited. If you > have received this communication in error, please notify us > immediately by > replying to the message and deleting it from your computer. > ****************************************************************** > ******************************** > ************************************************************************************************** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. **************************************************************************************************
