Start Citrix WMI service

Citrix.PresentationServer.StartWMIService.Rule (Rule)

Attempts to start the Citrix WMI service on unlicensed Citrix servers to determine if the server has been assigned a license

Knowledge Base article:

Citrix ® Management Pack

Summary

This rule checks unlicensed computers running Citrix Presentation Server every hour to determine whether the Citrix Presentation Server Provider is properly licensed or not. Once a server is properly licensed, the registry is updated and the Management Pack regards it as a managed server after the next computer scan.

 
© 2002-2008 Citrix Systems, Inc. All rights reserved.

Element properties:

TargetCitrix.PresentationServer.UnlicensedServer
CategoryOperations
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
ScheduledEventDS DataSource System.Scheduler Citrix.PresentationServer.CitrixAdministratorAccount
WA WriteAction System.CommandExecuter Citrix.PresentationServer.CitrixAdministratorAccount

Source Code:

<Rule ID="Citrix.PresentationServer.StartWMIService.Rule" Enabled="true" Target="Citrix.PresentationServer.UnlicensedServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Operations</Category>
<DataSources>
<DataSource ID="ScheduledEventDS" RunAs="CtxLibrary!Citrix.PresentationServer.CitrixAdministratorAccount" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>3600</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" RunAs="CtxLibrary!Citrix.PresentationServer.CitrixAdministratorAccount" TypeID="System!System.CommandExecuter">
<ApplicationName>%systemroot%\system32\net.exe</ApplicationName>
<WorkingDirectory>%Temp%</WorkingDirectory>
<CommandLine>start CitrixWMIService</CommandLine>
<TimeoutSeconds>60</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</WriteActions>
</Rule>