Extract Group Memebers in SCSM

Hi,

Is there any Powershell or script available to fetch group members from SCSM Groups.

Regards,

Daya Ram

September 8th, 2015 1:11pm

Hey Daya,

There is a community script by Travis Wright that has been around for awhile. You can download it here: https://gallery.technet.microsoft.com/Service-Manager-SCSM-User-ebcdfcd6

Note: You will need yo install SMLets, you can get those in the red text on the above link.

Good luck, any problems please let me know.

Cheers.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 6:20pm

If you want the members of SCSM groups (not AD groups or SCSM user roles) this should work (with SMlets installed):

Import-Module smlets

$SCSMgroup = "TestGrp"

$SCgroup = Get-SCGroup -DisplayName $SCSMgroup
$SCgroup.members|select DisplayName

Result looks like this:

Hope this helps.

September 8th, 2015 7:08pm

Hey Daya,

There is a community script by Travis Wright that has been around for awhile. You can download it here: https://gallery.technet.microsoft.com/Service-Manager-SCSM-User-ebcdfcd6

Note: You will need yo install SMLets, you can get those in the red text on the above link.

Good luck, any problems please let me know.

Cheers.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 10:18pm

Hey Daya,

There is a community script by Travis Wright that has been around for awhile. You can download it here: https://gallery.technet.microsoft.com/Service-Manager-SCSM-User-ebcdfcd6

Note: You will need yo install SMLets, you can get those in the red text on the above link.

Good luck, any problems please let me know.

Cheers.

September 8th, 2015 10:18pm

Hey Daya,

There is a community script by Travis Wright that has been around for awhile. You can download it here: https://gallery.technet.microsoft.com/Service-Manager-SCSM-User-ebcdfcd6

Note: You will need yo install SMLets, you can get those in the red text on the above link.

Good luck, any problems please let me know.

Cheers.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 10:18pm

Hi Andreas,

I tried the above commands but didn't get any output. Below are the powershell commands that I run.

PS C:\Windows\system32> $SCSMGroup = "Incident : Aegis_AMA_Development"
PS C:\Windows\system32> $SCGroup = Get-SCGroup -DisplayName $SCSMGroup
PS C:\Windows\system32> $SCGroup.members|select DisplayName
PS C:\Windows\system32>

Regards,

Daya

September 9th, 2015 6:08am

You installed and imported the module SMlets before?

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 6:15am

Installed and imported the SMLets but results are same. Please suggest.

PS C:\Users\dram01> Import-Module -Name SMLets
PS C:\Users\dram01> Import-Module -Name SMLets
PS C:\Users\dram01> $SCSMGroup = "Incident : Aegis_AMA_Development"
PS C:\Users\dram01>
PS C:\Users\dram01> $SCSMGroup = "Incident : Aegis_AMA_Development"
PS C:\Users\dram01> $SCGroup = Get-SCGroup -DisplayName $SCSMGroup
PS C:\Users\dram01> $SCGroup.members|select DisplayName
PS C:\Users\dram01>

September 9th, 2015 6:48am

What happens if you import the SMlets module and run the "Get-SCGroup" command without any parameter?

Are you running the commands in a PowerShell on the SCSM management server?

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 7:03am

Yes, I am running this on SCSM management server and get the list of all groups in my SCSM environment when I run Get-SCGroup.

September 9th, 2015 7:16am

Please run "Get-SCGroup|fl" (without quotes) and check if the displayname of your goup you want to see the members is "Incident : Aegis_AMA_Development".

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 4:13pm

Not the same one, I tried for some other groups and works like charm. Thanks for your support.
September 10th, 2015 6:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics