locked
Powershell (Exchange shell) list all users Add-ins RRS feed

  • Question

  • Hey, 

    Im trying to get each users add-in from the Exchange Managment Shell but im stuck, the script only runs my admin account and not any other account from the .csv file

    Wanted Output:

    User1
    ADD-IN 1
    ADD-IN 1

    User2
    ADD-IN 1
    ADD-IN 2
    ADD-IN 3

    User3
    ADD-IN 1
    ADD-IN 2

    Script:

    $users = Import-Csv -Encoding UTF7 -Path C:\temp\useruser.csv
    foreach($user in $users)
    {
    Get-App -Mailbox ($user.user) | select displayname,mailboxownerid
    }

    Output:

    Bing Maps          DOMAIN/XXX/Users/Special/admin
    My Templates       DOMAIN/XXX/Users/Special/admin
    Suggested Meetings DOMAIN/XXX/Users/Special/admin
    Unsubscribe        DOMAIN/XXX/Users/Special/admin
    Action Items       DOMAIN/XXX/Users/Special/admin
    Bing Maps          DOMAIN/XXX/Users/Special/admin
    My Templates       DOMAIN/XXX/Users/Special/admin
    Suggested Meetings DOMAIN/XXX/Users/Special/admin
    Unsubscribe        DOMAIN/XXX/Users/Special/admin
    Action Items       DOMAIN/XXX/Users/Special/admin
    Bing Maps          DOMAIN/XXX/Users/Special/admin
    My Templates       DOMAIN/XXX/Users/Special/admin
    Suggested Meetings DOMAIN/XXX/Users/Special/admin
    Unsubscribe        DOMAIN/XXX/Users/Special/admin
    Action Items       DOMAIN/XXX/Users/Special/admin
    Bing Maps          DOMAIN/XXX/Users/Special/admin
    My Templates       DOMAIN/XXX/Users/Special/admin
    Suggested Meetings DOMAIN/XXX/Users/Special/admin
    Unsubscribe        DOMAIN/XXX/Users/Special/admin
    Action Items       DOMAIN/XXX/Users/Special/admin



    • Edited by Matejmmm Thursday, August 8, 2019 2:08 PM
    Thursday, August 8, 2019 2:05 PM

Answers

  • Import-Csv C:\temp\useruser.csv |
        ForEach-Object{
    $user = $_.user Get-App -Mailbox $_.user | Select-Object @{n='User';e={$user}}, displayname } | Format-Table -GroupBy User


    \_(ツ)_/



    Thursday, August 8, 2019 2:43 PM

All replies

  • Import-Csv C:\temp\useruser.csv |
        ForEach-Object{
    $user = $_.user Get-App -Mailbox $_.user | Select-Object @{n='User';e={$user}}, displayname } | Format-Table -GroupBy User


    \_(ツ)_/



    Thursday, August 8, 2019 2:43 PM
  • Dident work..

    Output:

         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings
         Unsubscribe
         Action Items
         Bing Maps
         My Templates
         Suggested Meetings

    Friday, August 9, 2019 6:33 AM
  • Sorry. I fixed it so copy again.


    \_(ツ)_/

    Friday, August 9, 2019 6:42 AM
  • Thanks!
    Friday, August 9, 2019 6:54 AM
  • The script only load the default add-ins, not any addins that are added by the users.

       User: example

    User    DisplayName
    ----    -----------
    example Bing Maps
    example My Templates
    example Suggested Meetings
    example Unsubscribe
    example Action Items

    The addins user "example" have

    DisplayName              Enabled AppVersion
    -----------              ------- ----------
    Evernote                 True    1.8.1
    TeamViewer - servicecamp True    2.0.0.4
    Dropbox                  True    1.0.1.0
    Bing Maps                True    1.1
    My Templates             True    1.0
    Suggested Meetings       True    1.1
    Unsubscribe              True    1.0
    Action Items             True    1.0

    Friday, August 9, 2019 7:21 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Friday, September 6, 2019 12:47 PM