{"id":29,"date":"2021-11-09T08:12:02","date_gmt":"2021-11-09T08:12:02","guid":{"rendered":"https:\/\/blog.packetism.com\/?p=29"},"modified":"2021-11-18T07:37:53","modified_gmt":"2021-11-18T07:37:53","slug":"search-active-directory-for-user-information","status":"publish","type":"post","link":"https:\/\/blog.packetism.com\/index.php\/2021\/11\/09\/search-active-directory-for-user-information\/","title":{"rendered":"Search Active Directory For User Information"},"content":{"rendered":"\n<h2>Command<\/h2>\n\n\n\n<p class=\"has-normal-font-size\"><code>Get-ADUser -Identity<\/code> <code>franklogan<\/code> <code>-Properties *<\/code><\/p>\n\n\n\n<p class=\"has-normal-font-size\">First you need to install the active directory module. Below are two ways go add AD to PowerShell.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img src=\"https:\/\/packetism.com\/wp-content\/uploads\/2021\/10\/ADD-install.png\" alt=\"\" class=\"wp-image-1278\"\/><figcaption>Adding PowerShell module <\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">or<\/p>\n\n\n\n<p class=\"has-normal-font-size\"><code>Add-WindowsFeature RSAT-AD-PowerShell<\/code><\/p>\n\n\n\n<p class=\"has-normal-font-size\">Once the RSAT tools are installed we are ready to use powershell to interact with AD<\/p>\n\n\n\n<p class=\"has-normal-font-size\"><\/p>\n\n\n\n<h2>Command Breakdown<\/h2>\n\n\n\n<p class=\"has-normal-font-size\"><code>Get-ADUser<\/code> access user accounts listed within your give domain.<br><code>-identity <\/code>specifies the object searched within AD<br><code>-properties *<\/code> is a wildcard that specifies return all information associated with the user.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1562389304241392\"\n     crossorigin=\"anonymous\"><\/script>\n<ins class=\"adsbygoogle\"\n     style=\"display:block; text-align:center;\"\n     data-ad-layout=\"in-article\"\n     data-ad-format=\"fluid\"\n     data-ad-client=\"ca-pub-1562389304241392\"\n     data-ad-slot=\"6612909221\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Command Get-ADUser -Identity franklogan -Properties * First you need to install the active directory module&#8230;.<\/p>\n","protected":false},"author":2,"featured_media":64,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":""},"categories":[5],"tags":[],"featured_image_urls":{"full":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-scaled.jpg",2560,1700,false],"thumbnail":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-150x150.jpg",150,150,true],"medium":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-300x199.jpg",300,199,true],"medium_large":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-768x510.jpg",640,425,true],"large":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-1024x680.jpg",640,425,true],"1536x1536":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-1536x1020.jpg",1536,1020,true],"2048x2048":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-2048x1360.jpg",2048,1360,true],"newsup-slider-full":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-1280x720.jpg",1280,720,true],"newsup-featured":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-1024x680.jpg",1024,680,true],"newsup-medium":["https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-720x380.jpg",720,380,true]},"author_info":{"display_name":"Packetism","author_link":"https:\/\/blog.packetism.com\/index.php\/author\/packetism\/"},"category_info":"<a href=\"https:\/\/blog.packetism.com\/index.php\/category\/how-to-powershell\/\" rel=\"category tag\">How To | PowerShell<\/a>","tag_info":"How To | PowerShell","comment_count":"0","jetpack_featured_media_url":"https:\/\/blog.packetism.com\/wp-content\/uploads\/2021\/11\/pexels-luis-gomes-546819-scaled.jpg","_links":{"self":[{"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/posts\/29"}],"collection":[{"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":2,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions\/127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/media\/64"}],"wp:attachment":[{"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.packetism.com\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}