AddContainer¶
Description
Adds the passed container name as a new container to the connected database.
Syntax
AddContainer (Name : <String>, [optional]ExistingRoots <String>)
Parameters
Name The name of a container, which will be added to the database.
[optional]ExistingRoots (Optional Parameter) Paths of existing roots, separated by commas, which will be added to the new container (Default value is ‘’).
Example
$SOS.AddContainer("Container1")
SOS.AddContainer "Container1"
The following example demonstrates how to add existing roots to a new container:
$SOS.AddContainer("Container1", "C:\Program Files, D:\, E:\backup")
SOS.AddContainer "Container1", "C:\Program Files, D:\, E:\backup"
Adds the scans of “C:Program Files”, “D:" and “E:backup” to a container named “Container1”. The scans must be present in the database.
Remarks
In case a container with the given “Name” already exists, no new container is created. Any optional given “ExistingRoots” are added to the existing container.