How to get all unused group list in Group Expiration via PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-2626047%22%20slang%3D%22en-US%22%3EHow%20to%20get%20all%20unused%20group%20list%20in%20Group%20Expiration%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2626047%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20doing%20%3CSTRONG%3Egroup%20expiration%3C%2FSTRONG%3E%20at%20Azure%20portal%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ArohShukla_0-1628404094533.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301590i91B6370D1CB09E01%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ArohShukla_0-1628404094533.png%22%20alt%3D%22ArohShukla_0-1628404094533.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20want%20to%20share%20all%20%3CSTRONG%3Eunused%20groups%20as%20Excel%3C%2FSTRONG%3E%20to%20the%20client.%3CBR%20%2F%3EThrough%20%3CSTRONG%3E%3CEM%3EGet-AzureADMSGroupLifecyclePolicy%3C%2FEM%3E%3C%2FSTRONG%3E%2C%20how%20can%20get%20all%20selected%20that%20I%20have%20chosen%3F%20%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ArohShukla_1-1628404094537.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301589i5792CEA66902BF99%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ArohShukla_1-1628404094537.png%22%20alt%3D%22ArohShukla_1-1628404094537.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EPlease%20advice.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127032%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40ChristianBergstrom%3C%2FA%3E%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2626047%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2700568%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20all%20unused%20group%20list%20in%20Group%20Expiration%20via%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2700568%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43548%22%20target%3D%22_blank%22%3E%40Aroh%20Shukla%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20the%20community%20has%20not%20yet%20responded%20to%20your%20post%2C%20you%20might%20want%26nbsp%3Bto%20seek%20assistance%20with%20other%20resources%20that%20are%20staffed%20by%20authorized%20Microsoft%20agents%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAsk%20your%20IT%20manager%20to%20open%20a%20support%20case%20or%20call%20Microsoft%20using%20the%20support%20line%20you%20were%20given.%26nbsp%3B%20Other%20options%20for%20business%20subscription%20admins%20are%20listed%20here%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fbusiness-video%2Fget-help-support%3Fview%3Do365-worldwide%23%3A~%3Atext%3DOnline%2520support%25201%2520Go%2520to%2520the%2520admin%2520center%2Ccontact%2520method%252C%2520and%2520then%2520select%2520Contact%2520me.%2520%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20support%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.serviceshub.microsoft.com%2Fsupportforbusiness%2Fcreate%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.serviceshub.microsoft.com%2Fsupportforbusiness%2Fcreate%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EAdditional%20tech%20support%20is%20available%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esupport.microsoft.com%3C%2FA%3E%26nbsp%3Bor%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAnswers.microsoft.com%3C%2FA%3E.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi all.

 

I am doing group expiration at Azure portal as follows:

 

ArohShukla_0-1628404094533.png

I want to share all unused groups as Excel to the client.
Through Get-AzureADMSGroupLifecyclePolicy, how can get all selected that I have chosen?  

ArohShukla_1-1628404094537.png


Please advice. 

@Tony Redmond @Tony Redmond   @ChristianBergstrom  @Juan Carlos González Martín 

2 Replies

@Aroh Shukla 

Since the community has not yet responded to your post, you might want to seek assistance with other resources that are staffed by authorized Microsoft agents:

 

  • Ask your IT manager to open a support case or call Microsoft using the support line you were given.  Other options for business subscription admins are listed here:

Get support | Microsoft Docs

https://support.serviceshub.microsoft.com/supportforbusiness/create

Additional tech support is available at support.microsoft.com or Answers.microsoft.com.