No one has responded to this discussion for at least a year, so this information may be out of date. If you're looking for information about this topic, please search for a more recent discussion or post a new question.

Powershell cmdlets for delegated administration.

This question is answered This question is answered

Hi,

Was wondering how a delegated admin would log on to the customer tenant. Would one first log in with 'usual' cmd'lets and then use some special ninja cmd'lets or is the procedure a little different?

 

Have been following this link and posted a question without getting a reply back: http://community.office365.com/en-us/f/148/p/22357/198727.aspx#198727

Verified Answer
  • Hello Saiful!

    It is possible to manage other tenants via PowerShell.

    First you have to connet with Connect-MsolService .

    Then you have to find your tenant, and fill up : $tenID=(get-msolpartnercontract -domain yourtenant.com).tenantId.guid

    Now you can acces your tenant: Get-MsolUser -tenantID $tenID

    or to set principalname: Set-MSOLUserPrincipalName ...

    The only trick is , that you have to use -tenantID $tenID in each command.

     

    Regards, Laszlo

    Cloudfarm

    6 out of 6 people found this post helpful.

All Replies
  • Hello Saiful A,

    Thank you for your post.

    As I understand, you want to configure delegation permission using powershell cmdlet on other customer tenant as an Office 365 partner.

    For the partner related problem, we offered a specific support channel for our partners. You may reach the support by following link.

    Support of Partner Network
    https://partner.microsoft.com/global/supportsecurity

    Office 365 Partner Network
    https://partner.microsoft.com/global/productssolutions

    Thank you for your understanding.
    Jack Sun

    0 out of 2 people found this post helpful.

  • Hello Saiful!

    It is possible to manage other tenants via PowerShell.

    First you have to connet with Connect-MsolService .

    Then you have to find your tenant, and fill up : $tenID=(get-msolpartnercontract -domain yourtenant.com).tenantId.guid

    Now you can acces your tenant: Get-MsolUser -tenantID $tenID

    or to set principalname: Set-MSOLUserPrincipalName ...

    The only trick is , that you have to use -tenantID $tenID in each command.

     

    Regards, Laszlo

    Cloudfarm

    6 out of 6 people found this post helpful.

  • For the first time I see the deep and valuable answer!

    thank you, Laszlo !

  • Laszlo, this was actually very helpful.  I guess its sort of surprising to see actual answers on here and not just people being told to post in another forum.  Thank you!

  • Thanks Laszlo! Exactly what I needed as well :-)

    Rgds from Denmark