SetFullTrust Method

Published: June 20, 2005

SetFullTrust Method

Sets a value that determines whether to apply the Trusted Sites list, or to override the list.

ret = obj.SetFullTrust(boolean)





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


An instance of the TrustedSite class.


Use the keyword TRUE to override the list, or the keyword FALSE to apply the list. Overriding the list means all sites are trusted. Applying the list means that Trusted Sites must be on the list.

Return Values

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


Information on the status of the SetFullTrust 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")

' Apply the trusted sites list.
ret = objTrustedSiteClass.SetFullTrust(TRUE)

Member Of

TrustedSite class