12.01.2013 Views

DocAve 6 Management Shell - AvePoint

DocAve 6 Management Shell - AvePoint

DocAve 6 Management Shell - AvePoint

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameter Type Comment<br />

-Name Optional Specifies the name(s) of the existing online<br />

Content Manager plan(s) you want to obtain.<br />

Wildcards and multiple values are allowed, which<br />

should be separated by commas. If no values are<br />

entered here, the plan settings of all existing<br />

online Content Manager plan(s) will be obtained.<br />

Create an Online Content Manager Plan<br />

To create an online Content Manager plan, run the command below:<br />

New-DAContentManagerOnlinePlan [-Plan] []<br />

The example of the command is:<br />

C:\PS>$plan = Get-DAContentManagerBlankOnlinePlan<br />

C:\PS>$plan.SourceFarmName = 'Farm(SP2010_DB1:SHAREPOINT_CONFIG)'<br />

C:\PS>$plan.DestinationFarmName = 'Farm(SP2010_DB2:SHAREPOINT_CONFIG)'<br />

C:\PS>$plan.Name = 'plan1'<br />

C:\PS>$webapplication1 = New-Object<br />

<strong>DocAve</strong>.API.Objects.SharePointWebApplication($plan.SourceFarmName, 'http://SharePoint2010:10001')<br />

C:\PS>$webapplication2 = New-Object<br />

<strong>DocAve</strong>.API.Objects.SharePointWebApplication($plan.DestinationFarmName,'http://SharePoint2010:100<br />

02') C:\PS>$plan.SourceTree.IncludeSPObject($webapplication1)<br />

C:\PS>$plan.DestinationTree.SelectSPObject($webapplication2)<br />

C:\PS>$plan.Action = 'Merge'<br />

C:\PS>New-DAContentManagerOnlinePlan $plan<br />

To configure the command parameters, see the table below.<br />

Parameter Type Comment<br />

-Plan (or $myPlan) Required Specifies an online Content Manager plan object.<br />

36<br />

<strong>DocAve</strong> 6: SDK and <strong>Management</strong> <strong>Shell</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!