Skip to content

Instantly share code, notes, and snippets.

@steelcm
Created May 30, 2012 13:25
Show Gist options
  • Select an option

  • Save steelcm/2836319 to your computer and use it in GitHub Desktop.

Select an option

Save steelcm/2836319 to your computer and use it in GitHub Desktop.

Revisions

  1. steelcm revised this gist May 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.ps1
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    PS C:\> Add-PSSnapin Quest.ActiveRoles.ADManagement

    # print group information for each group user is assigned to
    PS C:\> (get-qaduser 'FDA_TEST_User_2').memberOf | get-qadgroup
    PS C:\> (get-qaduser 'TEST_User_2').memberOf | get-qadgroup

    Name Type DN
    ---- ---- --
  2. steelcm created this gist May 30, 2012.
    10 changes: 10 additions & 0 deletions gistfile1.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # add required snapin packages
    PS C:\> Add-PSSnapin Quest.ActiveRoles.ADManagement

    # print group information for each group user is assigned to
    PS C:\> (get-qaduser 'FDA_TEST_User_2').memberOf | get-qadgroup

    Name Type DN
    ---- ---- --
    APPL_FDA_Test_Legal_RWX group CN=APPL_FDA_Test_Legal_RWX,OU...
    GPO_Deny_Logon_Local group CN=GPO_Deny_Logon_Local,OU=Gl...