The HasWritePrivilege method succeeds if the current user has the privileges to update configuration settings.
IDL Definition
HRESULT HasWritePrivilege();
Return Values
A standard HRESULT value
Example
On Error Resume Next
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set BrokServers = ObjCreator.CreateObjAuth("MemAdmin.BrokServers.1")
BrokServers.HasWritePrivilege
' Check error number to see if it succeeded
if Err.Number <> 0 Then
wscript.echo "Error: Account does not have proper credentials"
End If