TrustedSite Class
TrustedSite Class
Use the TrustedSite class to configure a list of URLs from which Microsoft Speech Server (MSS) is allowed to fetch resources, such as grammar files or Start pages.
Set siteClass = GetObject("winmgmts:root/MSS:TrustedSite")
Remarks
The information contained in the TrustedSite class is specific to an individual computer. In an all-in-one deployment, Telephony Application Services and Speech Engine Services reside on one computer; therefore, they share TrustedSite class information. The class supports enumeration, which allows administrators to treat the set of trusted URLs as a list, and easily add and remove instances.
Each instance of the TrustedSite class lists only a single hostname, so for each MSS installation there are as many instances of the class as there are trusted site URLs. By default, the list of Trusted Sites includes https://localhost.
Windows Management Instrumentation (WMI) Script Example
The following sample code demonstrates how to enumerate the list of Trusted Sites.
' Return an object containing the Trusted Sites. Set sites = GetObject("winmgmts:root/MSS").InstancesOf("TrustedSite") ' List each site to the screen. For Each site In sites WScript.Echo site.Hostname Next
Methods
Method |
Description |
---|---|
Returns a value that indicates whether the list of Trusted Sites on a computer will be applied or overridden. |
|
Sets a value that determines whether to apply the Trusted Sites list, or to override the list. |
Properties
Property |
Description |
---|---|
Specifies the URL of the resource to be granted trusted status. |