Share via


Creating a New Store

Creating a New Store

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Create New Store sample application consists of a Microsoft® Visual Basic® Scripting Edition (VBScript) file and may be run from the command line. The following table contains the command-line arguments that may be used and their descriptions.

Argument Description
-n StoreName The name of the store to be created.
-cn ComputerName The name of the computer on which the store is to be created. The computer must be running Microsoft Exchange Server 2003.
-pf PublicFolder The name of the public folder to be created in the folder tree.
-sg StorageGroup (Optional) The name of the storage group in which the new store is to be created. If no storage group is specified, the store will be created in the default storage group.
-t [public|mailbox] (Optional) The type of store to be created, either "public" or "mailbox." If the type of store is not specified, a public store will be created by default.
-m [True|False] (Optional) "True" specifies that the store will be mounted upon creation; "False" specifies that the store will not be mounted upon creation. By default, the store will not be mounted upon creation.

To create a new public store

To create a new public store, open a command window and navigate to the directory where the createstore.vbs file is located. Type "createstore" followed by the StoreName, ComputerName, and PublicFolder arguments, and then press ENTER. The StorageGroup, StoreType, and Mount arguments are optional.

The following code creates a new public store named PubStoreName in a new public folder named PubFldrName in the storage group named StorageGroup. The new public store will be located on the Exchange server named ComputerName and will be mounted after it is created.

C:\>createstore -n PubStoreName -cn ComputerName -pf PubFldrName -sg StorageGroup -t public -m True

To create a new mail store

To create a new mailbox store, open a command window and navigate to the directory where the createstore.vbs file is located. Type "createstore" followed by the StoreName, ComputerName, and StoreType arguments, and then press ENTER. The StorageGroup and Mount arguments are optional.

The following code creates a new mailbox store named MailboxStoreName in the storage group named StorageGroup. The new mailbox store will be located on the Exchange server named ComputerName and will be mounted after it is created.

C:\>createstore -n MailboxStoreName -cn ComputerName -sg StorageGroup -t mailbox -m True

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.