locked
Configure a Dial In Conferencing number using an existing contact object. RRS feed

  • Question

  • The GUI and cmdlet for creating new dial in conferencing numbers (New-CsDialInConferencingAccessNumber) both create the contact in the root domain, by default.  I need to create a contact in our child domain.

    The New-CsDialInConferencingAccessNumber cmdlet includes a -passthru switch:

    PassThru

    Optional

    Switch Parameter

    Enables you to pass a contact object through the pipeline that represents the new dial-in conferencing access number. By default, the New-CsDialInConferencingAccessNumber cmdlet does not pass objects through the pipeline.

    How do I specify the contact object? 

    Tuesday, December 21, 2010 1:03 AM

Answers

  • That won't help.

    By default the New-CsDialInConferencingAccessNumber does not generate any output that can be used when you pipe the command. By using the PassThru parameter, you can force the command to return the newly created contact object and use it afterwards.

    By example: New-CsDialInConferencingAccessNumber <parameters> -PassThru | New-ActionYouWantToPerformOnNewlyCreatedContactObject
    This will execute the New-ActionYouWantToPerformOnNewlyCreatedContactObject command on the contact object that the New-CsDialInConferencingAccessNumber created. Without the PassThru parameter, the first command doesn't return the contact object and new-action... fails.

    As you can see, this command does not do what you're looking for.


    Technical Specialist Microsoft OCS & UC Voice Specialisation - http://www.uwictpartner.be
    If you think my post is the answer to your question, please mark it as answer so future visitors can easily find it.
    • Proposed as answer by Dan6624 Thursday, December 23, 2010 6:14 PM
    • Unproposed as answer by Daniel Segner Thursday, December 23, 2010 6:18 PM
    • Marked as answer by Daniel Segner Thursday, December 23, 2010 6:18 PM
    Thursday, December 23, 2010 12:48 PM

All replies

  • That won't help.

    By default the New-CsDialInConferencingAccessNumber does not generate any output that can be used when you pipe the command. By using the PassThru parameter, you can force the command to return the newly created contact object and use it afterwards.

    By example: New-CsDialInConferencingAccessNumber <parameters> -PassThru | New-ActionYouWantToPerformOnNewlyCreatedContactObject
    This will execute the New-ActionYouWantToPerformOnNewlyCreatedContactObject command on the contact object that the New-CsDialInConferencingAccessNumber created. Without the PassThru parameter, the first command doesn't return the contact object and new-action... fails.

    As you can see, this command does not do what you're looking for.


    Technical Specialist Microsoft OCS & UC Voice Specialisation - http://www.uwictpartner.be
    If you think my post is the answer to your question, please mark it as answer so future visitors can easily find it.
    • Proposed as answer by Dan6624 Thursday, December 23, 2010 6:14 PM
    • Unproposed as answer by Daniel Segner Thursday, December 23, 2010 6:18 PM
    • Marked as answer by Daniel Segner Thursday, December 23, 2010 6:18 PM
    Thursday, December 23, 2010 12:48 PM
  • Do you know of any way to specify the domain where a new contact object will be created?
    Thursday, December 23, 2010 6:19 PM