Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

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

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