Export (0) Print
Expand All
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)

Parts

Part

Description

ret

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

obj

An instance of the TrustedSite class.

boolean

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.

Remarks

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.

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")

' 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
Show:
© 2014 Microsoft