Commerce Server Resource CmdLets
Commerce Server Resources are the various subsystems that you can add to a Commerce Site, such as catalog, inventory, orders, marketing, and profiles. You can pick and choose which resources you add, and add more resources at a later date.
You can add resources to an existing site by running the following commands:
To create all of the resorces, run the following command:
By default, these CmdLets will create the associated resource databases on the same database server as the MSCS_Admin database, using default naming conventions. You can override all of these defaults. For example:
You can remove a resource from a site by running the following commands:
By default, the remove commands will not delete the associated database. You can delete the associated database at the same time by adding the DeleteDatabases parameter:
Because profiles on a Commerce Server site are a link to a Global Resource, Remove-CSProfilesResource also gives you the option to delete the associated Global Resource.
If you need to find out what Commerce Server resources are associated with a Commerce Server site, run the following command:
All resources contain a collection of properties that allow you to configure how the resource runs. You can manipulate these properties using cmdlets.
To get a list of all of the properties on a resource run the following command:
To get a specific property value, run the following command:
To set a property value, run the following command:
For more details on any of the previous CmdLets, run the following command: