다음을 통해 공유


Update-CrmOrganization

Applies To: CRM 2016 on-prem, Dynamics 365 (on-premises)

Update-CrmOrganization

Updates the specified Microsoft Dynamics 365 organization with the latest software updates or upgrades the organization to the latest available Microsoft Dynamics CRM release.

Syntax

Parameter Set: Default
Update-CrmOrganization [-Name] <String> [[-Upgrade]] [-Credential <PSCredential> ] [-Diag] [-DwsServerUrl <String> ] [-Timeout <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Update-CrmOrganization cmdlet updates the specified Microsoft Dynamics 365 organization with the latest software updates or upgrades the organization to the latest available Microsoft Dynamics 365 release on the Dynamics 365 server.

Parameters

-Credential<PSCredential>

Specifies the credentials used to log in to the Deployment web service.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Diag

Turns on stack traces for error reports returned from Microsoft Dynamics 365 service calls. Enabling this emits a detailed error message, including a stack trace, when an error is encountered by the Dynamics 365 PowerShell command.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-DwsServerUrl<String>

Identifies the location of the Deployment web service. This should be in the format: http://<serverurl> or https://<serverurl>, for example, http://contoso.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the unique name of the organization to update or upgrade.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Timeout<Int32>

For internal use only.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Upgrade

Specifies whether to upgrade the organization. This parameter is optional.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

-------------------------- EXAMPLE 1 --------------------------

This example begins the upgrade process and returns the operation ID. This upgrades the Dynamics 365 database to the latest Microsoft Dynamics 365 release and applies all available updates. Use the operation ID to query for the status of the operation.

PS C:\> $opId = Update-CrmOrganization –Name Contoso -Upgrade

-------------------------- EXAMPLE 2 --------------------------

This example begins the update process and returns the operation ID. This applies all available updates. Use the operation ID to query for status of the operation.

PS C:\> $opId = Update-CrmOrganization –Name Contoso