Protokol událostí nemůže fungovat správně, dokud nebudou souborům protokolu přiřazena řádná oprávnění souboru. Může být potřeba provést následující postup:
Přiřaďte oprávnění souborům protokolu auditu, aby do nich služba mohla zapisovat.
Přiřaďte složce, ve které se vytváří soubor protokolu auditu, oprávnění zápisu uživatele.
K provedení těchto postupů musíte být členem skupiny Administrators nebo vám musí být delegováno příslušné pověření.
Postup změny oprávnění pro soubory a složky:
Na serveru DHCP klikněte na nabídku Start, vyberte položku Všechny programy, Příslušenství a klikněte na zástupce Průzkumník Windows.
Přejděte v adresářové struktuře ke složce %windir%\System32\Dhcp, klikněte na ni pravým tlačítkem, klikněte na tlačítko Vlastnosti a poté na kartu Zabezpečení.
Vyplňte dle potřeby jedno z následujících:
Pokud chcete nastavit oprávnění skupině nebo uživateli, kteří se nenacházejí v poli Název skupiny nebo jméno uživatele, klikněte na tlačítko Přidat, zadejte název skupiny nebo jméno uživatele a klikněte na tlačítko OK.
Pokud chcete změnit nebo odebrat oprávnění stávající skupině nebo uživateli, klikněte na název této skupiny nebo jméno uživatele.
Pokud chcete povolit nebo zakázat oprávnění, v poli Oprávnění pro uživatele nebo skupinu a zaškrtněte políčko Povolit nebo Odepřít.
Pokud chcete odebrat skupinu nebo uživatele z pole Název skupiny nebo jméno uživatele, klikněte na tlačítko Odebrat.
Poznámky
Oprávnění pro soubor nebo složku lze nastavit pouze na jednotkách naformátovaných v souborovém systému NTFS.
Pro změnu oprávnění musíte být vlastníkem nebo k tomu mít udělené oprávnění od vlastníka.
Skupiny nebo uživatelé, kterým je poskytnuto úplné řízení, mohou odstraňovat soubory a podsložky v dané složce, bez ohledu na oprávnění, která tyto soubory a podsložky chrání.
Pokud jsou zaškrtávací políčka v poli Oprávnění pro uživatele nebo skupinu neaktivní nebo tlačítko Odebrat není k dispozici, soubor nebo složka má zděděná oprávnění po nadřazené složce.
Při přidávání nového uživatele nebo skupiny bude mít ve výchozím stavu tento uživatel nebo skupiny práva Čtení, Čtení a spouštění a Zobrazování obsahu složky.
Target | Microsoft.Windows.DHCPServer.Library.IPv4Runtime | ||
Parent Monitor | System.Health.SecurityState | ||
Category | StateCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.SingleEventLogManualReset2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Microsoft.Windows.DHCPServer.Library.ActionAccount |
<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.IPv4Runtime.UnitMonitor.Auditing.3" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.IPv4Runtime" ParentMonitorID="Health!System.Health.SecurityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.IPv4Runtime.UnitMonitor.Auditing.3_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-DHCP-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DHCPServer</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1028</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>