Set ABP and Disable Powershell - For all newly created mailboxes

%3CLINGO-SUB%20id%3D%22lingo-sub-3002224%22%20slang%3D%22en-US%22%3ESet%20ABP%20and%20Disable%20Powershell%20-%20For%20all%20newly%20created%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3002224%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Team%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuick%20question%20here.%20I%20would%20like%20to%20set%20the%20default%20Address%20book%20policy%20(one%20we%20created)%20and%20disable%20powershell%20for%20all%20newly%20created%20mailboxes...%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20we%20could%20do%20the%20above%20with%20the%20Mailbox%20Plan%20and%20CAS%20Mailbox%20Plan%2C%20but%20apparently%20those%20options%20are%20not%20exposed%20via%20Cmdline.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20on%20how%20i%20can%20accomplish%20my%20goals%20here%3F%20To%20be%20clear%20i%20want%20any%20new%20mailboxes%20created%20to%20have%20a%20custom%20ADB%20set%20and%20to%20have%20powershell%20access%20disabled.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERobert%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3002224%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3002392%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20ABP%20and%20Disable%20Powershell%20-%20For%20all%20newly%20created%20mailboxes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3002392%22%20slang%3D%22en-US%22%3EJust%20use%20an%20onboarding%20script%20for%20the%20creation%20of%20the%20user%2Fmailbox%2C%20and%20add%20those%20requirements%20as%20steps%20therein.%3C%2FLINGO-BODY%3E
Contributor

Hey Team, 

 

Quick question here. I would like to set the default Address book policy (one we created) and disable powershell for all newly created mailboxes... 

 

I thought we could do the above with the Mailbox Plan and CAS Mailbox Plan, but apparently those options are not exposed via Cmdline. 

 

Any ideas on how i can accomplish my goals here? To be clear i want any new mailboxes created to have a custom ADB set and to have powershell access disabled. 

 

Thanks, 

 

Robert 

4 Replies
Just use an onboarding script for the creation of the user/mailbox, and add those requirements as steps therein.
Thanks Vasil. As always you give great answers. I am trying to avoid adding any more steps the onboarding process.

However were you ever able to do what i want to do with Office 365? Or am i just flat wrong? What about with Exchange On-Prem? I am just curious at this point.

Thanks,

Robert
As you mentioned above, those parameters cannot be set via mailbox plans, so your only option is to script it. On-premises, you can use the scripting agent for this, but it's the same logic anyway - add some cmdlets after provisioning the mailbox.
Thanks again. As always your advice was correct. I also opened a ticket with MIcrosoft Support (Premier/Unified) and they are still working on "understanding the question". So you are faster than they are.