Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The PublishingFilePath property specifies or retrieves the UNC path for the rights templates.
Syntax
RightsTemplatePolicy.PublishingFilePath
Property value
This property specifies or returns a string that contains the path.
Remarks
Before a template can be used, it must be distributed to the client computer. You can use a mechanism such as Group Policy to distribute templates throughout the organization from a shared folder. The shared folder path must be specified by using the Universal Naming Convention (UNC). The format is **\\ServerName\ShareName\Path\**FileName. Templates are also stored in the configuration database, and when a user requests a license, the server applies the template from the database.
Note
Templates can also be retrieved by using the AcquireTemplates web method in the AD RMS SDK.
Examples
DIM config_manager
DIM admin_role
' *******************************************************************
' Create and initialize a ConfigurationManager object.
SUB InitObject()
CALL WScript.Echo( "Create ConfigurationManager object...")
SET config_manager = CreateObject _
("Microsoft.RightsManagementServices.Admin.ConfigurationManager")
CheckError()
CALL WScript.Echo( "Initialize...")
admin_role=config_manager.Initialize(false,"localhost",80,"","","")
CheckError()
END SUB
' *******************************************************************
' Retrieve the template collection path object.
SUB GetTemplatePath()
DIM template_manager
SET template_manager = config_manager.RightsTemplatePolicy
CheckError()
CALL WScript.Echo( "The collection path is " _
& template_manager.PublishingFilePath)
END SUB
' *******************************************************************
' Error checking function.
FUNCTION CheckError()
CheckError = Err.number
IF Err.number <> 0 THEN
CALL WScript.Echo( vbTab & "*****Error Number: " _
& Err.number _
& " Desc:" _
& Err.Description _
& "*****")
WScript.StdErr.Write(Err.Description)
WScript.Quit( Err.number )
END IF
END FUNCTION
' *******************************************************************
' Generate a runtime error.
SUB RaiseError(errId, desc)
CALL Err.Raise( errId, "", desc )
CheckError()
END SUB
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Assembly |
|