Jump to content

Recommended Posts

Posted

Hi,

 

In Exchange Online Powershell is there some kind of limt on the number of pipes I can use?

 

For example if I do this

 

get-mailbox | Set-CasMailbox -OwaMailboxPolicy "Student OWA Policy" -ActiveSyncEnabled $false -PopEnabled $false -ImapEnabled $false -MAPIEnabled $false

 

That works fine and the desired is applied.

 

If I do this

 

get-mailbox | Set-Mailbox -AddressBookPolicy " Student Address Book Policy"

 

That also works fine and the desired is applied.

 

But If I run this

 

get-mailbox | Set-CasMailbox -OwaMailboxPolicy "Student OWA Policy" -ActiveSyncEnabled $false -PopEnabled $false -ImapEnabled $false -MAPIEnabled $false | Set-Mailbox -AddressBookPolicy " Student Address Book Policy"

 

I get no errors as if the command has completed but the address book policy ins't applied

 

Why is it ignoring anything after the second pipe please?

 

Thanks

Posted
Well 'get-mailbox' gets all the mailboxes, and passes that to 'set-casmailbox'. the output from 'set-casmailbox' is passed to 'set-mailbox'.
Posted

Run

 

get-mailbox | Set-CasMailbox -OwaMailboxPolicy "Student OWA Policy" -ActiveSyncEnabled $false -PopEnabled $false -ImapEnabled $false -MAPIEnabled $false

 

then

 

get-mailbox | Set-Mailbox -AddressBookPolicy " Student Address Book Policy"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...