The Start-OptimizationJob
command lets you perform optimize a repository on demand.
Usage
The usage for the command is as follows:
Start-OptimizationJob -core [host name] -user [user name] -password [password] -repository [repository name] | -all
Command Options
The following table describes the options available for the Start-OptimizationJob
command:
Option | Description |
---|---|
-? |
Display this help message. |
-core |
Optional. Remote Core host machine IP address (with an optional port number). By default, the connection is made to the Core installed on the local machine. |
-user |
Optional. The user name for the remote Core host machine. If you specify a user name, you must also provide a password. If none is provided, then the credentials for the logged-on user are used. |
-password |
Optional. The password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none is provided, then the credentials for the logged-on user are used. |
-repository |
The name of the repository that you want to optimize. |
-all |
Use this option to perform the optimization job on all repositories for this Core. |
Example:
Start a repository optimization job:
>Start-OptimizationJob -repository "Repository 1" -core 10.10.10.10 -user administrator -password 23WE@#$sdd