{"id":5442,"date":"2020-04-13T17:00:00","date_gmt":"2020-04-13T15:00:00","guid":{"rendered":"https:\/\/www.razumny.no\/?p=5442"},"modified":"2020-04-29T14:13:15","modified_gmt":"2020-04-29T12:13:15","slug":"look-up-ad-user-password-expiration-date","status":"publish","type":"post","link":"https:\/\/www.razumny.no\/?p=5442","title":{"rendered":"Look up AD User Password expiration date"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A little while ago, I had a user call in and ask when their password would expire. Luckily, this information is readily accessible if you know where &#8211; and how &#8211; to look. Here&#8217;s how:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open a command prompt<\/li><li>Enter the command <code>net user %USERNAME% \/domain<\/code><\/li><li>Read the information from the results:<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"259\" src=\"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-14.png?resize=523%2C259&#038;ssl=1\" alt=\"Screenshot of the result of the command net use %USERNAME% \/domain\" class=\"wp-image-5444\" title=\"Screenshot of the result of the command net use %USERNAME% \/domain\" srcset=\"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-14.png?w=523&amp;ssl=1 523w, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-14.png?resize=300%2C149&amp;ssl=1 300w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to returning information about the password, the command will also return information about what workstations the user can log on to, whether they have restricted logon hours, and their local and global group memberships.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A little while ago, I had a user call in and ask when their password would expire. Luckily, this information is readily accessible if you know where &#8211; and how &#8211; to look. Here&#8217;s how: Open a command prompt Enter the command net user %USERNAME% \/domain Read the information from the results: In addition to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[615,380,528],"tags":[1094,299,1241],"class_list":["post-5442","post","type-post","status-publish","format-standard","hentry","category-how-to-2","category-tech-support","category-tools","tag-cmd","tag-command-line","tag-net-user"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2ukSU-1pM","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6803,"url":"https:\/\/www.razumny.no\/?p=6803","url_meta":{"origin":5442,"position":0},"title":"Find WLAN password from the command line","author":"Aleksander Nordgarden-R\u00f8dner","date":"30\/05\/2022","format":false,"excerpt":"If I've been there once, I've been there a thousand times; I've connected to a wireless network with my computer, but want to connect with my phone, too. The only problem is that I don't know what the WLAN password is. Luckily, you can find the password to networks you've\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3346,"url":"https:\/\/www.razumny.no\/?p=3346","url_meta":{"origin":5442,"position":1},"title":"Change password in a remote desktop session","author":"Aleksander Nordgarden-R\u00f8dner","date":"16\/11\/2015","format":false,"excerpt":"Most Windows users will be familiar with using Ctrl+Alt+Del to\u00a0change their password on a local computer, and that works well for that purpose.\u00a0However, that command\u00a0is not forwarded to a computer to which you are connected remotely, as it triggers locally. So how, then, can we prompt a change of our\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2672,"url":"https:\/\/www.razumny.no\/?p=2672","url_meta":{"origin":5442,"position":2},"title":"Disconnect non-mapped drive","author":"Aleksander Nordgarden-R\u00f8dner","date":"12\/01\/2015","format":false,"excerpt":"From time to time, I have been\u00a0unable to connect to the UNC path of a network share. The error message I\u00a0get is: This usually happens when I am remotely connected to another user's computer. The message is straight-forward enough;\u00a0so, too, is the solution. You\u00a0simply need to disconnect from the share.\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"The network folder specified is currently mapped using a different user name and password","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/error.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":79,"url":"https:\/\/www.razumny.no\/?p=79","url_meta":{"origin":5442,"position":3},"title":"Disabling Caps Lock &#8211; Ubuntu","author":"Aleksander Nordgarden-R\u00f8dner","date":"05\/09\/2008","format":false,"excerpt":"Whenever I get a new keyboard for my desktop computers, the first thing I do is remove the Caps Lock key. It's a useful key to be sure, but I dislike it. It's much better in my mind to use the Shift key. As a result, I have been looking\u2026","rel":"","context":"In &quot;Hack&quot;","block_context":{"text":"Hack","link":"https:\/\/www.razumny.no\/?cat=21"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7141,"url":"https:\/\/www.razumny.no\/?p=7141","url_meta":{"origin":5442,"position":4},"title":"Mac: Lock your computer","author":"Aleksander Nordgarden-R\u00f8dner","date":"24\/04\/2023","format":false,"excerpt":"There are a number of security best practices out there. The most basic include password-protecting your devices and limiting administrative privileges. Password protection is only effective when your device is locked. While I've mostly been a Windows user at work, at home I tend to prefer a Mac. I recently\u2026","rel":"","context":"In &quot;How To&quot;","block_context":{"text":"How To","link":"https:\/\/www.razumny.no\/?cat=615"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-137.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-137.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/image-137.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2542,"url":"https:\/\/www.razumny.no\/?p=2542","url_meta":{"origin":5442,"position":5},"title":"Oracle Linux: Insufficient memory to auto-enable kdump","author":"Aleksander Nordgarden-R\u00f8dner","date":"21\/07\/2014","format":false,"excerpt":"Remember how I said \"you\u00a0should be\u00a0all set\", last week? Turns out, I was only partially right. After\u00a0creating a local user account, Linux also configures kdump, the kernel crash dumping mechanism. When attempting to do so, it returned this error message: As problems go, this one is fairly minor. Kdump does\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.razumny.no\/?cat=108"},"img":{"alt_text":"Insufficient memory to auto-enable dump. Use system-config-kdump to configure manually","src":"https:\/\/i0.wp.com\/www.razumny.no\/wp-content\/uploads\/Screenshot-2014-06-29-21.36.25-300x113.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5442"}],"version-history":[{"count":2,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5442\/revisions"}],"predecessor-version":[{"id":5504,"href":"https:\/\/www.razumny.no\/index.php?rest_route=\/wp\/v2\/posts\/5442\/revisions\/5504"}],"wp:attachment":[{"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.razumny.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}