O registo de eventos não pode funcionar corretamente exceto se forem atribuídas as permissões de ficheiro adequadas aos ficheiros de registo. Pode ter de fazer o seguinte:
Atribuir permissões aos ficheiros de registo de auditoria para que o serviço possa escrever neles.
Atribuir permissões de escrita ao utilizador para a pasta onde o ficheiro de registo de auditoria é criado.
Para efetuar estes procedimentos, tem de ser um membro do grupo Administradores ou tem de ter a autorização delegada adequada.
Para alterar as permissões de ficheiros e pastas:
No servidor DHCP, clique em Iniciar, aponte para Todos os programas, aponte para Acessórios e depois clique no Explorador do Windows.
Navegue na árvore de diretório para %windir%\System32\Dhcp, clicar com o botão direito do rato na pasta, clique em Propriedades e depois clique no separador Segurança.
Efetue um destes passos conforme necessário:
Para definir as permissões para um grupo ou utilizador que não apareça na caixa de grupo ou nomes de utilizador, clique em Adicionar, escreva o nome do grupo ou utilizador e depois clique em OK.
Para alterar ou remover permissões de um grupo ou utilizador existente, clique no nome do grupo ou utilizador.
Para autorizar ou negar uma permissão, na caixa Permissões para um Utilizador ou Grupo, selecione a caixa de verificação Permitir ou Negar.
Para remover um grupo ou utilizador da caixa de Grupo ou nomes de utilizador, clique em Remover.
Notas
Apenas pode definir permissões para ficheiros e pastas em unidades formatadas para utilizar o NTFS.
Para alterar as permissões, tem de ser o proprietário ou ter recebido permissão do proprietário para o fazer.
Os Grupos ou utilizadores a quem é concedido o Controlo Total de uma pasta podem eliminar ficheiros e subpastas nessa pasta, independentemente das permissões que protegem os ficheiros e subpastas.
Se as caixas de verificação em Permissões para um Utilizador ou Grupo estiverem sombreadas ou se o botão Remover não estiver disponível, o ficheiro ou a pasta possui permissões herdadas da pasta principal.
Por predefinição, ao adicionar um novo utilizador ou grupo, este utilizador ou grupo terá permissões para Ler, Ler e Executar e Listar o Conteúdo das Pastas.
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>