MsgrObject CreateUser Security


Go Back   Computer Help Articles > Windows XP Messenger
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 07:47 AM
Alexander Tarasul
 
Posts: n/a
Default MsgrObject CreateUser Security

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is everyone doing about this security flaw til 1/10/06 dblues Windows XP General 11 01-06-2006 02:06 AM
Re: Downloaded files don't install Alias Windows Update 13 01-05-2006 05:05 PM
Windoes update failure Dennis Windows XP Perform Maintain 2 01-05-2006 06:02 AM
Installing Security updates for Windows XP fail techhelper1010 Windows XP Perform Maintain 0 01-05-2006 05:58 AM
Long delay before Drives & Files appear in My Computer & Address Bar shizzlenizzlator@gmail.com Windows XP Help and Support 3 01-05-2006 02:44 AM


All times are GMT. The time now is 12:31 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

MsgrObject CreateUser Security