Greg Altman

IT Leader, Writer, Speaker

Menu
  • Home
  • Speaking
  • About Me
  • Reviews
Menu

Powershell Tuesday Quick Tip #1

Posted on March 6, 2018 by Greg Altman

Let’s see how many Tuesdays I can do this!  The goal: a quick oneliner or at most 2-3 lines of code to do something timesaving and useful. For the Powershell gurus some may be simplistic but I can vouch that these all WORK as of spring of 2018. Which is more than you can say for some of the stuff that comes up for a Bing/Google (Bing-gle) search.

So today’s is something that came up today. I needed to change the mailbox/calendar settings on Rooms for meeting reservations in Outlook.

PROBLEM: By default, a Room mailbox only publishes meetings as “Busy” for any but the organizer.  So when other people really need that room, they don’t even know who to contact about maybe changing times around.

SOLUTION:
[code lang=’powershell’]
Get-Mailbox -Filter {(RecipientTypeDetails -eq “RoomMailbox”)}|
ForEach-Object {Set-CalendarProcessing “$_” -AddOrganizerToSubject $True -DeleteComments $False -DeleteSubject $False}[/code]

Of course you have to be connected to Office 365 in your Powershell session first. Instructions on that are detailed here: Microsoft Docs 

See ya next week!

Share this:

  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

Category: PowerShell

Categories

  • Ad-hoc and Random
  • Blog
  • Career
  • Cloud
  • Events
  • PowerShell
  • Reviews
  • Server Stuff
  • Troubleshooting
  • Uncategorized

© 2025 Greg Altman | Powered by Minimalist Blog WordPress Theme
%d