12.01.2013 Views

DocAve 6 Management Shell - AvePoint

DocAve 6 Management Shell - AvePoint

DocAve 6 Management Shell - AvePoint

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Test an Update<br />

To test whether a specified update is valid before updating, run the command below:<br />

Test-DAUpdate [-Configuration] []<br />

The example of the command is:<br />

C:\PS>$config = Get-DAUpdateConfiguration -UpdateName 'Hotfix_6.0.0.51008601'<br />

C:\PS>$config.UpdateManager = $true<br />

C:\PS>$config.ViewServiceForUpdate() Category: 127.0.0.1 WillUpdate: True Name: Control Service<br />

Status: ACTIVE Version: 6.0.0.51008601 Type: Control Message: Ready for installing.<br />

C:\PS>$config.UpdateNonFarmRelatedAgent = $true<br />

C:\PS>$config.UpdateFarms.Add('Farm(SP2010_DB:SHAREPOINT_CONFIG)'<br />

C:\PS>$config.UpdateSQLAgents.Add('SQL Agent'<br />

C:\PS>Test-DAUpdate -Configuration $config True<br />

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

Parameter Type Comment<br />

-Configuration Required Specifies an update configuration object.<br />

Install an Update<br />

To install an update, run the command below:<br />

Install-DAUpdate [-Configuration] [-WhatIf] [-Confirm]<br />

[]Install-DAUpdate [-Configuration] [-WhatIf] [-Confirm]<br />

[]<br />

The example of the command is:<br />

C:\PS>$config = Get-DAUpdateConfiguration -UpdateName 'Hotfix_6.0.0.51008601'<br />

C:\PS>$config.UpdateManager = $true<br />

C:\PS>$config.ViewServiceForUpdate()<br />

C:\PS>$config.UpdateNonFarmRelatedAgent = $true<br />

C:\PS>$config.UpdateFarms.Add('Farm(SP2010_DB:SHAREPOINT_CONFIG)')<br />

C:\PS>$config.UpdateSQLAgents.Add('SQL Agent')<br />

C:\PS>Install-DAUpdate -Configuration $config<br />

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

18<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!