NotificationMessageQueue Property
NotificationMessageQueue Property
Gets and sets the path name of the queue where outbound notification requests are generated.
obj.NotificationMessageQueue = PathName
| Part | Description |
|---|---|
| obj | An instance of the TAS class. |
| url | A string expression that specifies the path name of the notification message queue. |
Qualifiers
| Qualifier | Value | Description |
|---|---|---|
| Registry | True | If True, this property value is read from the Registry. |
| Restart | False | If False, changes to this property take effect without requiring the service to restart. |
The following table shows the correct format to use when specifying a value for the NotificationMessageQueue property.
| Queue type | Local or remote | Value for NotificationMessageQueue |
|---|---|---|
| Private | Local | .\private$\queue_name |
| Private | Remote | FormatName:DIRECT=OS:machine_name\private$\queue_name |
| Public | Local | .\queue_name |
| Public | Remote | machine_name\queue_name |
Windows Management Instrumentation (WMI) Script Example
myComputer = "localhost"
' Use a Locator object to connect to WMI.
Set locator = CreateObject("WbemScripting.SWbemLocator")
Set namespace = locator.ConnectServer(myComputer, "root/MSS")
' Get the TAS instance.
Set ts = namespace.Get("TAS=@")
' Display the current value.
WScript.Echo ts.NotificationMessageQueue
' Change the property value.
ts.NotificationMessageQueue = "Machine_Name/Public_MessageQueue"
' Update the class instance in WMI.
ts.Put_
