locked
Cmdlet extension agents question RRS feed

  • Question

  • Hi all,

    I'm looking for a way to incorporate the -AllowLargeItems switch via
    the scripting agent into every New-MoveRequest.

    I know it can be done via the ScriptingAgentConfig.xml I'm just not too familiar
    with that kind of scripting.

    Any help would be greatly appreciated.

    Thanks! :-)
    Monday, March 30, 2015 8:51 AM

Answers

  • Hi,

    Basis on my knowledge and research, the cmdlet extension agents can helps perform tasks automatically based on other commands running, it also for OAB Resource Management, Provisioning Policy, Mailbox Resources Management, RUS, and even a Query Base DN agent. More details about Understanding Cmdlet Extension Agents, for your reference: https://technet.microsoft.com/en-us/library/dd335067(v=exchg.141).aspx
    Also, refer to Cmdlet Extension Agents Sction with an scenario about disable ActiveSync when new mailbox: https://technet.microsoft.com/en-us/magazine/jj159083.aspx

    Thanks


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Allen Wang
    TechNet Community Support

    • Proposed as answer by Allen_WangJF Tuesday, April 7, 2015 1:25 AM
    • Marked as answer by Allen_WangJF Tuesday, April 7, 2015 1:51 AM
    Tuesday, March 31, 2015 7:44 AM
  • Hi,

    Every time an Exchange cmdlet is run, the cmdlet calls the Scripting Agent cmdlet extension agent, then the cmdlet tries to call any APIs(ProvisionDefaultProperties, UpdateAffectedIConfigurable, Validate, OnComplete) defined in the script.
    More details please refer to: https://technet.microsoft.com/en-us/library/dd297951(v=exchg.141).aspx

    Besides, you can open <installation path>\V14\Bin\CmdletExtensionAgents folder, rename ScriptingAgentConfig.xml.sample to ScriptingAgentConfig.xml.
    This sample configuration file contain sample scripts that you can use to help you understand how to add scripts to the configuration file.

    However, this question may be related to script of Exchange server. I recommend you to contact Scripting for Exchange Server Team so that you can get more professional suggestion, please refer to:
    https://technet.microsoft.com/en-us/scriptcenter/dd742246.aspx?f=255&MSPPError=-2147217396

    Thanks


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Allen Wang
    TechNet Community Support

    • Proposed as answer by Allen_WangJF Tuesday, April 7, 2015 1:25 AM
    • Marked as answer by Allen_WangJF Tuesday, April 7, 2015 1:51 AM
    Thursday, April 2, 2015 1:43 AM

All replies

  • I'd be leery about changing this on a system by system basis, since you never know when you may use the command no a system you haven't made the update on.  Why not just write a script that includes this parameter when you want to create new move requests?
    Monday, March 30, 2015 2:15 PM
  • Hi,

    Basis on my knowledge and research, the cmdlet extension agents can helps perform tasks automatically based on other commands running, it also for OAB Resource Management, Provisioning Policy, Mailbox Resources Management, RUS, and even a Query Base DN agent. More details about Understanding Cmdlet Extension Agents, for your reference: https://technet.microsoft.com/en-us/library/dd335067(v=exchg.141).aspx
    Also, refer to Cmdlet Extension Agents Sction with an scenario about disable ActiveSync when new mailbox: https://technet.microsoft.com/en-us/magazine/jj159083.aspx

    Thanks


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Allen Wang
    TechNet Community Support

    • Proposed as answer by Allen_WangJF Tuesday, April 7, 2015 1:25 AM
    • Marked as answer by Allen_WangJF Tuesday, April 7, 2015 1:51 AM
    Tuesday, March 31, 2015 7:44 AM
  • Hi Will,

    Thanks for your reply. I understand what you are saying but this is not a mission critical feature, should a move request start and fail because of an item larger then our limits so be it. It's just that we are moving so many mailboxes 24/7 it would be a nice to have feature. There is also the fact we have a large IT organization in which about 95% use the EMC to initiate moves and won't be using the EMS to move mailboxes.

    Tuesday, March 31, 2015 10:34 AM
  • Hi Allen,

    Thanks for your reply. I should have included that I have used TechNet articles and other Exchange related websites to see if there were examples out there. Like I said, I understand the mechanics of the scripting agent and how it works I just need a small bit personalized scripting to make it work :-)

    Tuesday, March 31, 2015 10:38 AM
  • Hi,

    Every time an Exchange cmdlet is run, the cmdlet calls the Scripting Agent cmdlet extension agent, then the cmdlet tries to call any APIs(ProvisionDefaultProperties, UpdateAffectedIConfigurable, Validate, OnComplete) defined in the script.
    More details please refer to: https://technet.microsoft.com/en-us/library/dd297951(v=exchg.141).aspx

    Besides, you can open <installation path>\V14\Bin\CmdletExtensionAgents folder, rename ScriptingAgentConfig.xml.sample to ScriptingAgentConfig.xml.
    This sample configuration file contain sample scripts that you can use to help you understand how to add scripts to the configuration file.

    However, this question may be related to script of Exchange server. I recommend you to contact Scripting for Exchange Server Team so that you can get more professional suggestion, please refer to:
    https://technet.microsoft.com/en-us/scriptcenter/dd742246.aspx?f=255&MSPPError=-2147217396

    Thanks


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Allen Wang
    TechNet Community Support

    • Proposed as answer by Allen_WangJF Tuesday, April 7, 2015 1:25 AM
    • Marked as answer by Allen_WangJF Tuesday, April 7, 2015 1:51 AM
    Thursday, April 2, 2015 1:43 AM