AddressEntries Not Working for Server-Side Script



  • 1. a stupid question on word.application
    Hi, I am trying to implement a vb script to converting old files automatically. I decided to use vbscript, but I am new to this scripting language. I can not call the method and pass to it the Format and ConfirmConversions properties. How is the correct syntax? On web I fin only the simplest call: objWord.Documents.Open(filename). I tried as: objWord.Documents.Open(filename, ConfirmConversions=False, Format=fmt), but this gave me errors of type object. Where I miss something? thanks Gianluca
  • 2. remote registry merge - plase help
    I have copied a script and reg file to the remote machine that merges a reg file to the registry. I use the following script to excute the merge.vbs script from my mahine. Set oShell =wscript.CreateObject("") strComputer = "stmts34223" Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=Impersonate}!\\" & _ strComputer & "\root\cimv2") oShell.Run ("psexec \\" & strcomputer & " cmd /k cd c:\outlook") the problem with the oShell.Run ("psexec \\" & strcomputer & " cmd /k cd c:\outlook") it that once it connects to the remote machine and gives my the c:\outlook prompt than I have to type in merge.vbs. if I use ("psexec \\" & strcomputer & " cmd /k cd c:\outlook\merge.vbs") - I get the following error The directory in invalid. Is there an easier way in vbsscript.
  • 3. List users connected via Remote Desktop & console?
    Hi! I would like to write down a script that will enumerate all users actually connected on all our servers via Remote Desktop (active, inactive, disconnected) and on their consoles, to find out where administrators forget to logoff, and this way avoid having problem with terminal licensing (2 connections allowed only) and console locked! Does somebody already wrote down something doing that? Thanks. Claude Lachapelle Systems Administrator, MCSE
  • 4. Get LDAP-"Path" from WinNT object
    Hello I Habe an Object, which represents the Current User: Set objUser = GetObject("WinNT://" & strNetBIOSDomain & "/" _ & strNTName & ",user") Whith this i can check if the user is in e specifict group. however, nested groups doesn't work like this. For nested Groups i've found a solution, but i need the LDAP-Path. Is there a way to easly get that? The objUser Object has some Attributes like .name or so but i dont find i documentation about this. Maybe there is .Path Proberty or so?

AddressEntries Not Working for Server-Side Script

Postby Don Fisher » Fri, 23 Jan 2004 00:44:17 GMT

I have an Agent Server-Side Script running to process new messages arriving
in a Public Folder. This includes accessing the Members for a Recipient that
is a Distribution Group located in the Global Address List.

This portion of code works just fine:

    Set oAddrEntry = oRecip.AddressEntry

But this line fails with error MAPI_E_NO_SUPPORT:

    Set oAddrEntries = oAddrEntry.Members

We weren't getting this error when we were using WinNT 4.0 Server and
Exchange 5.5. But we're now planning a switch to Windows 2000 Server
5.00.2195 SP2 and Exchange 2000 Ver 6 Build 5762.4 SP2 and the error occurs
on our test setup.

I believe that I've got the permissions set correctly. We've got the Event
Service running under the Administrator account, and the Administrator
permissions on the container that holds the Distribution Groups looks okay.

I'd appreciate any suggestions.


RE: AddressEntries Not Working for Server-Side Script

Postby michmo » Sat, 24 Jan 2004 04:19:14 GMT

Hi Don,

Thank you for posting to the Microsoft newsgroups. I am looking for a 
resource to help with your issue. We will post a reply as soon as we can.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft  highly recommends to all of our customers that they visit the 
steps listed to improve your computer security.

This posting is provided "AS IS", with no warranties, and confers no rights.


RE: AddressEntries Not Working for Server-Side Script

Postby michmo » Sat, 24 Jan 2004 12:05:46 GMT


For others who are following this post. We are working with Don offline. We 
will try to post the solution here when we are finished.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft  highly recommends to all of our customers that they visit the 
steps listed to improve your computer security.

This posting is provided "AS IS", with no warranties, and confers no rights.


Similar Threads:

1.Sharing variable in between server-side and client-side script

In a html page, somewhat like a dhtml page, with a number of input
boxes...Once a user enters a password, certain input boxes will be
enabled and disabled according...

Initally verifying the password can be done thru' the client-side
script, but since the password is stored in a database. I have to make
a connection to the sql server, but then the password for the
connection to the database can't be written in the html (due to
security reason), so I tried to call a dll by running a server-side
script, which will do the connection and verify the password for the
user (not the database connection)...

However, now comes to a problem...If I use the code below in my htm,
how can I refer to the input box or the list box in my form??? I have
tried Request.form and myform.lst1. Looks like both doesn't work...

<script language="VBScript" runat="server">
   Sub VerifyPwd()
	dim dllObj, ok
		set dllObj = CreateObject("myDll.myCls")
		ok = dllObj.CheckPassword(Request.form("txtPwd"))
		myform.lst1.disabled  = not ok
		myform.lst2.disabled  = not ok

   End Sub
Please help, or is there any other way I can accomplish this task?
Thanks in advance. Any help would be greatly appreciated.

2.script works on W2K Pro but not W2K member servers


I have a script which looks for local accounts which have the password
doesn't expire property set and removes it.  I don't want any local
accounts on the the boxes where a user never has to change their
password.  At any rate, the script pasted below works just find on
workstations loaded with W2K Professional but it fails on member
servers (not DCs) running W2K server.  It fails on line 18 (the
.SetInfo junk) with the filename, directory, or volume label syntax is
incorrect.  I'm really stumped on this one.  TIA for any assistance!

Here is the script:

1.  Dim userFlagsValue
2.  strMyComputer = "."
3.  intCounter = 0
6.  Set objLocalComputer = GetObject("WinNT://" & strMyComputer)
8.  objLocalComputer.Filter = Array("User")
10. For Each objLocalUser In objLocalComputer
11. usrFlagsValue = objLocalUser.Get("UserFlags")
13. ' Check to see if the bit for password never expire is set;
14. ' The Xor operator toggles any "on"s to "off"s
15. If (usrFlagsValue AND ADS_UF_DONT_EXPIRE_PASSWD) <> 0 Then
16.     usrFlagsValue = usrFlagsValue XOR ADS_UF_DONT_EXPIRE_PASSWD
17.     objLocalUser.Put "userFlags", usrFlagsValue
18.     objLocalUser.SetInfo
19.     intCounter = intCounter + 1
20. End If
22. objLocalUser.Put "PasswordExpired", 0
23. objLocalUser.SetInfo
24. Next
26. ' Done
27. WScript.Echo intCounter & " Local Passwords Changed To Expire"

3.Script works on one Win2000 server but not another

I'm trying to troubleshoot a vbs script that runs fine on some Win2000 
servers but not others.  If I manually run the script it runs fine, but if I 
let a tool called Big Brother run it, it doesn't return any data.  The Big 
Brother tool should be running it using the system account.  It previously 
returned data until I put a MonthName() requirement in.

All servers are Win2000 SP4 and patched up to Aug patches.  I've looked at 
wmimgmt.msc and tried to compare settings.  I think I see some security 
differences there but don't know if I'm even touching this.  In comparing a 
system that works to one that doesn't they are both using wsh 5.6.  They may 
be at different mdac levels if that matters.

The script reads a registry setting, separates out the date and compares it 
to todays date.  It then sends updates based on the results to the Big 
Brother tool.
I'm looking for some help in troubleshooting why it will run under my 
account and not the system and why it runs fine on 5 out of 8 systems.

4.Scripts Dose not work on new server

I have two Windows 2003 Servers.  One is a new build and the other is about 8 
months old.

I have written several scripts for the old server which control a Windows 
Media Server.

I have copied the scripts onto the new machine but they fail to function.  
It seems I am unable to access the 'Publishing Point' object within the 
Windows Media Server.  The script returns the number of publishing points on 
the server but when I try to access the name property, or any other 
publishing point property, I get the element not found error

Could anyone point me in a direction to start looking for the problem.  I 
imported the local security policy to the new server.  But this did not help

5.Oracle Package Procedure call works but generates a server side error

I have an Oracle Procedure within a package that I am calling from an
ASP web page. It works fine but the DBA is telling me that it is
generating an error on the back end. I believe it has to do with the
OUT parameter for the cursor since I do not actually create the
parameter in the call since it is returned as a record set. Data

Important to note that this works fine. I believe I got the code
correct from my research. Is there something I can do to make it
cleaner so the error does not occur on the server side?

Thank you!!!!


PLS-00306: wrong number or types of arguments in call to

Package Procedure declaration:
Type Return_Cursor is ref cursor;

Procedure GetWebpageRoles(personID IN number,
                          webpageID IN number,
                          roles OUT Return_Cursor);

Function GetWebPageRoles (lpageID)
  On Error Resume Next
  ' Declares
  Dim oCmd, oRstLoc, oParm, oDictionary

  ' Create objects
  Set oCmd = Server.CreateObject("ADODB.Command")
  Set oRstLoc = Server.CreateObject("ADODB.RecordSet")
  Set oParm = Server.CreateObject("ADODB.Parameter")
  Set oDictionary = CreateObject("Scripting.Dictionary")

  ' Setup command
  With oCmd
    Set .ActiveConnection = moConn
    .CommandType = 4
    .CommandText = "sa_general.GetWebpageRoles"

    Set oParm = .CreateParameter ("personID", 3, 1)
	oParm.Value = Session("PERSON_ID")
	.Parameters.Append oParm

    Set oParm = .CreateParameter ("webpageID", 3, 1)
	oParm.Value = lPageID
	.Parameters.Append oParm

  End With

  ' Retrieve roles
  Set oRstLoc = oCmd.Execute

  ' Populate dictionary
  Do Until oRstLoc.EOF
    oDictionary.Add LCase(oRstLoc("name")), oRstLoc("name").Value
  ' Return value
  Set GetWebpageRoles = oDictionary
End Function

6. How to call a client-side vbscript from server-side button

7. Read client side value from server side in VB.NEt

8. I want to call a function in server side from the client side

Return to vbscript


Who is online

Users browsing this forum: No registered users and 56 guest