none
Powershell script help RRS feed

  • Question

  • Can someone help with a Powershell script? Need to query the FIM portal database. Customer wants a list of all their distribution groups with output to a csv file. Attribute Display Name, Description, email address
    Wednesday, February 17, 2016 10:26 PM

All replies

  • Hi,

    what have you done already? We can help you to fix Problems or to advice you to make a script better...but the intial work is yours...Otherwise spend some money to one who knows how to do it.

    First steps for you:

    https://technet.microsoft.com/en-us/library/ff394140(v=ws.10).aspx

    Regards

    Eric


    Microsoft MVP Cloud and Datacenter Management
    Microsoft Partner Technical Solutions Professional (P-TSP)
    --
    www.ericberg.de
    @ericberg_de
    --
    MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure

    Wednesday, February 17, 2016 10:57 PM
  • Hi,

    beside the original Powershell Module and Scripts I would suggest to use the following one:

    https://lithnetrma.codeplex.com/

    The Lithnet Module is based on a new Client and is much easier to use and also mostly 10x faster.

    /Peter


    Peter Stapf - ExpertCircle GmbH - My blog: JustIDM.wordpress.com

    Thursday, February 18, 2016 11:37 AM
  • <#
    The Script is 10X time slower then litn
    However if you want to go with the below approch, tweak it according to your need, this will atleast give the idea how to do it..

    Hope it helps you..

    #>
    Add-PSSnapin FIMAutomation
    $a=Export-FIMConfig -Uri http://localhost:5725 -OnlyBaseResources -CustomConfig '/Group'

    foreach( $i in $a)
    {
     ($i.ResourceManagementObject.ResourceManagementAttributes | Where-Object `
     {$_.AttributeName -eq "DisplayName"}).value
    }

    #Anirban

    • Edited by AnirbanSingha Friday, February 19, 2016 3:21 PM Correction
    Friday, February 19, 2016 3:20 PM