Got to quit trying.

I have a number of scheduled tasks. One of those tasks queries a remote AD domain and pulls the members of a security group. These accounts would be considered the LinkedMasterAccounts for mailboxes homed on my server. I want to quickly find the mailbox for each of these remote IDs and disable/enable the activesync functionality.

The fastest command would be something like:

 
get-mailbox -filter {LINKEDMASTERACCOUNT -eq (remote ID)}

Unfortunately, this doesn't appear to be possible. The command looks for specific information that may not be able to reliably pull it.

I'll keep trying, but..

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <blockquote> <center> <hr> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal6>, <html>, <java>, <javascript>, <php>, <posh>.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.