Administer the deployment using Windows PowerShell
Updated: December 9, 2016
Applies To: Dynamics 365 (on-premises), Dynamics CRM 2016
With Windows PowerShell you can easily run deployment commands to change the configuration of your deployment, like tasks that can be performed from the Deployment Manager user interface. You can also use the methods described in the Microsoft Dynamics 365 SDK to perform these tasks. The PowerShell cmdlets are installed on the computer when you install a Full Server role or when you install the Deployment Tools server role, if you’re installing individual server roles. To execute commands, you must first register the Microsoft Dynamics 365 commands with PowerShell. This topic describes how to do this plus additional tasks to help you use PowerShell.
Find help about the PowerShell cmdlets for Microsoft Dynamics 365 at Microsoft Dynamics CRM PowerShell Reference.
For more information about using PowerShell, see Scripting with Windows PowerShell.
For more information about the programmatic use of the Deployment Web Service, see MSDN: Administer the deployment using the deployment web service.
Sign in to the administrator account on your Microsoft Dynamics 365 server.
Open a PowerShell command prompt.
When you have registered the Dynamics 365PowerShell commands, you can use them to perform tasks.
Use the following command to output the list of deployment administrators.
This command results in the following output.
When you have registered the Microsoft Dynamics 365PowerShell commands, you can use them to perform tasks, such as set deployment-wide properties or set some organization properties.
For example, to add a Microsoft Dynamics 365 deployment administrator, run the following command where domain\adminName is the Active Directory domain and user name of the administrator you want to add.
For a complete list of the Microsoft Dynamics 365PowerShell cmdlets with links to Help topics, see the Microsoft Dynamics CRM PowerShell Reference.
Use PowerShell to update deployment-wide settings, such as claims-based authentication, Internet-facing deployment (IFD), and web addresses. More information: Update deployment configuration settings
© 2017 Microsoft. All rights reserved. Copyright