Hi,
Is there any Powershell or script available to fetch group members from SCSM Groups.
Regards,
Daya Ram
Technology Tips and News
Hi,
Is there any Powershell or script available to fetch group members from SCSM Groups.
Regards,
Daya Ram
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.
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.
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.
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.
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.
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
You installed and imported the module SMlets before?
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>
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?
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.
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".