{"id":10653,"date":"2024-01-13T12:35:41","date_gmt":"2024-01-13T17:35:41","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10653"},"modified":"2024-01-17T12:39:40","modified_gmt":"2024-01-17T17:39:40","slug":"mass-active-directory-password-changes","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10653","title":{"rendered":"PowerShell: Mass Active Directory Password Changes"},"content":{"rendered":"<p>We have a bunch of accounts that function as extra mailboxes &#8212; all conveniently housed in on OU. The following PowerShell command sets the password for <em>all<\/em> of the accounts in one go. Not terribly useful for &#8220;real world&#8221; use &#8230; but useful for testing (and probably something I&#8217;ll end up using again)<\/p>\n<p>$OUpath = &#8216;ou=Mail Aliases,dc=example,dc=com&#8217;<br \/>\n$strNewPassword = &#8220;What3v3rYu0W@nt1tT0B3&#8221;<\/p>\n<p>Get-ADUser -Filter * -SearchBase $OUpath | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $strNewPassword -Force)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have a bunch of accounts that function as extra mailboxes &#8212; all conveniently housed in on OU. The following PowerShell command sets the password for all of the accounts in one go. Not terribly useful for &#8220;real world&#8221; use &#8230; but useful for testing (and probably something I&#8217;ll end up using again) $OUpath = &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[68,1970,622],"class_list":["post-10653","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-active-directory","tag-active-directory-password-reset","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10653"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10653\/revisions"}],"predecessor-version":[{"id":10655,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10653\/revisions\/10655"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}