jer wrote:
Quote:
> I wrote a script to assign a mailbox policy to users created in the last
> 24 hours:
>
> $today=get-date
> $yesterday=$today.AddDays(-1d)
> get-mailbox -resultsize unlimited | Where-Object {$_.WhenCreated -gt
> "$yesterday"} | Set-Mailbox -ManagedFolderMailboxPolicy "Empty deleted
> items folder once a week"
Hopefully this links works properly if you click it:
http://groups.google.com/group/micro...=gst&q=autoit#
If not, look for this thread from August 24th: "suppressing confirmation
prompt".
Basically, there's a "-ManagedFolderMailboxPolicyAllowed" parameter
available.
Marco
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
http://marcoshaw.blogspot.com