diff --git a/DomainManagement/DomainManagement.psd1 b/DomainManagement/DomainManagement.psd1 index be9a6f0..59b34b9 100644 --- a/DomainManagement/DomainManagement.psd1 +++ b/DomainManagement/DomainManagement.psd1 @@ -3,7 +3,7 @@ RootModule = 'DomainManagement.psm1' # Version number of this module. - ModuleVersion = '1.9.248' + ModuleVersion = '1.9.249' # ID used to uniquely identify this module GUID = '0a405382-ebc2-445b-8325-541535810193' diff --git a/DomainManagement/changelog.md b/DomainManagement/changelog.md index 6301f2c..ac4cb76 100644 --- a/DomainManagement/changelog.md +++ b/DomainManagement/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 1.9.249 (2026-02-12) + +- Fix: ServiceAccounts - fixed typo. + ## 1.9.248 (2026-02-12) - Upd: AccessRules - stopped removing "Protect from Accidental deletion" from containers diff --git a/DomainManagement/functions/serviceaccounts/Test-DMServiceAccount.ps1 b/DomainManagement/functions/serviceaccounts/Test-DMServiceAccount.ps1 index 56d6d06..a857b0c 100644 --- a/DomainManagement/functions/serviceaccounts/Test-DMServiceAccount.ps1 +++ b/DomainManagement/functions/serviceaccounts/Test-DMServiceAccount.ps1 @@ -173,7 +173,7 @@ #region PrincipalsAllowedToRetrieveManagedPassword # Use SamAccountName rather than DistinguishedName as accounts may not yet have been moved to their correct container so DN might fail - $currentPrincipals = ($adObject.PrincipalsAllowedToRetrieveManagedPassword | Get-ADObject @parameters -Properties SamAccountName -ErrorAction SilentlzContinue -ErrorVariable failed).SamAccountName + $currentPrincipals = ($adObject.PrincipalsAllowedToRetrieveManagedPassword | Get-ADObject @parameters -Properties SamAccountName -ErrorAction SilentlyContinue -ErrorVariable failed).SamAccountName foreach ($fail in $failed) { Write-PSFMessage -Level Warning -String 'Test-DMServiceAccount.Error.PrincipalNotFound' -StringValues $adObject.SamAccountName, $fail.TargetObject -Target $adObject }