11.07.2015 Views

Changes to Windows 2008 terminal Server ... - TechNet Blogs

Changes to Windows 2008 terminal Server ... - TechNet Blogs

Changes to Windows 2008 terminal Server ... - TechNet Blogs

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Managing Reports using WMI Providers:<strong>Windows</strong> <strong>Server</strong> <strong>2008</strong> also provides support for managing Per User usage reports using WMIproviders. Now, an administra<strong>to</strong>r can write a simple script <strong>to</strong> generate a usage report for agiven scope. Within the script, he can take further action based on the reports. For example, ifthe number of issued licenses exceeds the number of installed licenses, the script can send ane-mail <strong>to</strong> the administra<strong>to</strong>r.Reports generated using WMI are displayed in the TS Licensing Manager, and reports deletedusing WMI are also deleted from the TS Licensing Manager.The following WMI classes are used <strong>to</strong> generate reports.Win32_TSLicenseReport:<strong>Windows</strong> <strong>Server</strong> <strong>2008</strong> has a WMI class named "Win32_TSLicenseReport" for managing per userlicense reports.This WMI class provides three different interfaces <strong>to</strong> manage reports:i. GenerateReport: This interface is used for generating per user license usage reports. Reportscan be generated across three different scopes as discussed above. This is a static function.The syntax of the API isuint32 GenerateReport ( [in] uint32 ScopeType,[in] string ScopeValue,[out] string FileName);WhereScopeType: Defines the scope for which the report needs <strong>to</strong> be generated1 -> Domain2 -> Organizational Unit (OU)3 -> All trusted DomainsScopeValue: This is used only when ScopeType is "Organizational Unit (OU)",It should contain the name of the OU for which you want <strong>to</strong> generate the report in the format"OU=OUName"9 | P a g e

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!