Export (0) Print
Expand All
Expand Minimize

GetFullTrust Method

Published: June 20, 2005

GetFullTrust Method

Returns a value that indicates whether the list of Trusted Sites on a computer will be applied or overridden.

ret = obj.GetFullTrust(fulltrust)

Parts

Part

Description

ret

An integer variable to catch the method's return value.

obj

An instance of the TrustedSite class.

fulltrust

A Boolean out parameter that returns the Trusted Sites setting. A non-zero value indicates that the Trusted Sites list is ignored, and that all sites are trusted. Zero indicates that the Trusted Sites list is enforced.

Return Values

A return value of 0 indicates success. Any other value indicates failure.

Remarks

Information on the status of the GetFullTrust request is returned immediately. However, the service requires time to process control commands. The return code from the method indicates that the request was only accepted by the service, not that the request was successfully carried out.

Example

myComputer = "localhost"

' Use a Locator object to connect to WMI.
Set locator = CreateObject("WbemScripting.SWbemLocator")
Set namespace = locator.ConnectServer(myComputer, "root/MSS")

' Create a new instance of the TrustedSite class.
Set objTrustedSiteClass = namespace.Get("TrustedSite")
ret = objTrustedSiteClass.GetFullTrust(fFullTrust)

' Display the out parameter value.
WScript.Echo fFullTrust

Member Of

TrustedSite class

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft