MsgrObject CreateUser Security
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
MsgrObject CreateUser Security

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> MSN Messenger
Author Message
Alexander Tarasul
Guest





Posted: Thu Oct 06, 2005 12:27 am    Post subject: MsgrObject CreateUser Security Reply with quote

Hello,
I'm running the script below.
It works fine in VB and in Word. However it's failing when running on WSH
(cscript test.vbs) with the error
C:\Development\IM_SIP\test1.vbs(10, 5) Microsoft VBScript runtime error:
Object required: 'msgr.CreateUser(...)'

There is no documentation about special security on WSH for this function.
Any ideas?

Thanks


Sub test()
Dim msgr
Dim pUser
Dim users
Dim service
Set msgr = CreateObject("Messenger.MsgrObject")
'MsgBox msgr.Services.Count
Set users = msgr.List(0)
Set service = msgr.Services.PrimaryService
Set pUser = msgr.CreateUser("user@ourcompany.com", service)
Call msgr.List(0).Add(pUser)
End Sub
Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> MSN Messenger All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB