Returns a value that indicates whether the list of Trusted Sites on a computer will be applied or overridden.
ret = obj.GetFullTrust(fulltrust)
An integer variable to catch the method's return value.
An instance of the TrustedSite class.
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.
A return value of 0 indicates success. Any other value indicates failure.
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.
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