title: Get Memberships Of User
body: <p>I have a very simple question but for some reason I can't seem to get my head around it. 
  I need a line of code that could be ran as a user from a client and lists all the "memeber of" groups from the AD (ONLY FOR THIS CURRENT USER). similar to </p>
  
  <pre><code>Get-ADGroupMember -identity "domain admins" -Recursive | foreach{ get-aduser $_} | select SamAccountName,objectclass,name
  </code></pre>
  
  <p>I would like the result to be listed.</p>
  
  <p>I either need a way to import the AD module on a client computer or another way to contact the DC and get the users current "memeber of" groups.</p>
  
  <p>/Niklas</p>