looking for a quest AD commandlet to extend the viewable booking time on a room mailbox

siber1
siber1 used Ask the Experts™
on
can someone provide a POSH script to extend the viewable booking time on a room mailbox from 180 days to 1 year?
i have about 200 to run this command on.

many thanks!

s.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Adam BrownSenior Systems Admin
Top Expert 2010

Commented:
What version of Exchange are you using?

Author

Commented:
exchange 2010 sp1 with hotfix rollup.

thx
Senior Systems Admin
Top Expert 2010
Commented:
Alright. You wouldn't set it in Quest AD, you'd set it in the Exchange Management Shell with the attached command. You can change the mailboxes that you set calendar processing on by changing the value after -recipienttypedetails to one of the following.
RoomMailbox
EquipmentMailbox
LegacyMailbox
LinkedMailbox
UserMailbox
DiscoveryMailbox
SharedMailbox
get-mailbox -recipienttypedetails roommailbox | set-calendarprocessing -bookingwindowindays 365

Open in new window

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
thanks, how can i modify this to pull from a serverlist.txt file [so i can bulk update 200+]
Adam BrownSenior Systems Admin
Top Expert 2010

Commented:
If you are trying to update *all* the Room calendars, then the above cmdlet will do it for you. To do it with a file, you would want to make a CSV file with the list of mailbox names. Set the first line to be mailboxname

Then the following command will take care of it.
import-csv <path to CSV> | %{$mailbox = $_.mailboxname
set-calendarprocessing -identity $mailbox -bookingwindowindays 365}

Open in new window

Author

Commented:
thanks! ill test this in the lab shortly.

Author

Commented:
works perfect! thx again

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial