Group: microsoft.public.scripting.vbscript
From: meridean
Date: Tuesday, October 23, 2007 4:31 AM
Subject: Problems creating an exchange mailbox and setting permissions

Hi All,

I hope someone can help.

I am having problems accessing the Security Descriptor when creating a
New User. It errors telling me an object is required with error 424.
I have this working on other infrastructures the same as it is in this
code and therefore can not understand why it is not working.
The bit of the code which is failing is the Function to Create The
Exchange Mailbox the rest is working fine.

Here is the code

---------------------------------------------------------------------------------------------------------------------------------------------------------------------


New User Creation Utility
APPLICATIONNAME="AccountCreationScript"
BORDER="thin"
CAPTION="yes"
ICON="SETUP.ICO"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SCROLL="NO"
SYSMENU="yes"
WINDOWSTATE="normal"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="yes">






C4




Welcome to the Account Creation ScriptSTRONG>
















Users Details
First Name:size="30">
Middlename:size="30">
Lastname:size="30">
Reference Number:id="txtRefnumber" size="30">
Requestor:size="30">
Please select the Account Type for this user account:td>


  

value="Create Account" onclick="btnRunScript_click">type="button" id="btnReset" value="Reset"
onclick="btnReset_Click">value="Close" onclick="window_close">




---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Many Thanks In Advance