diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index fe06460d..4cc8cf2b 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -45,6 +45,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#165](https://github.com/Icinga/icinga-powershell-framework/pull/165) Fixes fetching for Icinga Agent certificate for REST-Api daemon on upper/lower case hostname mismatch * [#166](https://github.com/Icinga/icinga-powershell-framework/pull/166) Fixes fetching of Icinga Agent MSI packages by correctly comparing versions to ensure we always use the latest version and fixes `release` usage for local/network drive sources * [#167](https://github.com/Icinga/icinga-powershell-framework/pull/167) Fixes error while writing EventLog entries with too large message size +* [#177](https://github.com/Icinga/icinga-powershell-framework/pull/177) Fixes Wmi permissions to allow domain accounts while not being locally known on the system ## 1.2.0 (2020-08-28) diff --git a/lib/wmi/Get-IcingaWmiSecurityData.psm1 b/lib/wmi/Get-IcingaWmiSecurityData.psm1 index b855f6c2..e1902d71 100644 --- a/lib/wmi/Get-IcingaWmiSecurityData.psm1 +++ b/lib/wmi/Get-IcingaWmiSecurityData.psm1 @@ -39,13 +39,6 @@ function Get-IcingaWmiSecurityData() $UserSID = Get-IcingaUserSID -User $User; $WmiAcl = $WmiSecurityData.Descriptor; - $WmiAccount = Get-IcingaWindowsInformation -ClassName Win32_Account -Filter ([string]::Format("Domain='{0}' and Name='{1}'", $UserData.Domain, $UserData.User)); - - if ($null -eq $WmiAccount) { - Write-IcingaConsoleError 'The specified user could not be found on the system: "{0}\{1}"' -Objects $UserData.Domain, $UserData.User; - return $null; - } - if ([string]::IsNullOrEmpty($UserSID)) { Write-IcingaConsoleError 'Unable to load the SID for user "{0}"' -Objects $User; return $null;