{"id":1112,"date":"2021-04-15T11:06:23","date_gmt":"2021-04-15T16:06:23","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1112"},"modified":"2021-04-15T11:06:23","modified_gmt":"2021-04-15T16:06:23","slug":"validating-windows-creds","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2021\/04\/15\/validating-windows-creds\/","title":{"rendered":"Validating Windows Creds"},"content":{"rendered":"<p>I wanna make a really quick post here about this. Normally I generally right click a app on the taskbar, and then shift+right click the app icon, and in the context menu pick &#8220;run as a different user&#8221;. then I get a credentials box prompt asking me to enter the creds of the user and their password, and if successful open the app (generally cmd).<\/p>\n<p>This time I was testing some old credentials used for a particular service, but I wasn&#8217;t sure of the password, I also wasn&#8217;t sure exactly where this account was all used, so was hesitant to just go and change the accounts password.<\/p>\n<p>I did my usual trick as stated above and got the user was not allowed local logon for this machine, which was a good thing, some standard best practices for the account were implemented. This however still left me with the assumption the user\/password was correct, but not 100% sure.<\/p>\n<p>attempting the same thing with a random known bad password sure enough responded with wrong username\/password. Giving me pretty confident results the username and password I entered were correct.<\/p>\n<p>I found this <a href=\"https:\/\/serverfault.com\/questions\/410240\/is-there-a-windows-command-line-utility-to-verify-user-credentials\">serverfault post about the same question<\/a>, and I attempted the simple &#8220;net use&#8221; trick. Sure enough they also do the run as trick I stated in the first paragraph.<\/p>\n<pre>net use \\\\%userdnsdomain% \/user:%userdomain%\\%username% *<\/pre>\n<p>on my main machine I got an error of multiple connections not allowed, I attempted the fix posted by themadmax<\/p>\n<pre>net use \/delete \\\\unc\\path<\/pre>\n<p>which didn&#8217;t work probably cause this path I was testing against was a mapped drive for my local logged in user. I followed up by running the commands from an alternative machine I knew had access to the share and DC&#8217;s.<\/p>\n<p>Sure enough this worked, I am now confident the username and password are correct.<\/p>\n<p>Hope this helps someone!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanna make a really quick post here about this. Normally I generally right click a app on the taskbar, and then shift+right click the app icon, and in the context menu pick &#8220;run as a different user&#8221;. then I get a credentials box prompt asking me to enter the creds of the user and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2021\/04\/15\/validating-windows-creds\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Validating Windows Creds&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8,197],"tags":[343,342,344],"class_list":["post-1112","post","type-post","status-publish","format-standard","hentry","category-server-administration","category-windows","tag-password","tag-username","tag-validate"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1112"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1112\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1112\/revisions\/1113"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}