Σημείωμα
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να εισέλθετε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
The Business Central Administration Shell includes PowerShell cmdlets for administering Business Central on-premises deployments. You use it for configuring Business Central Server and Web server instances, databases, users, and more. You also use it to manage extensions, like publishing, syncing, installing, and upgrading.
Install the Business Central Admin Shell
The Business Central Administration Shell is installed together with Business Central Server components by using the Business Central Setup wizard. To install it, run the setup.exe that's available on the installation media (DVD). Follow the wizard, and choose either the Install Demo option or the Server option in the customized setup. For more information, see Install Using Setup.
PowerShell 7 and PowerShell 5 modules
Starting with 2024 release wave 1 (v24), Business Central admin modules are installed in PowerShell 7 and Windows PowerShell 5 compatible versions.
PowerShell 7 modules are most up-to-date and recommended for best performance. The PowerShell 7 modules are stored in the Admin folder of the Business Central Server installation and prefixed with
Microsoft.BusinessCentralinstead ofMicrosoft.Dynamics.Nav: The Microsoft.BusinessCentral.Management.dll, Microsoft.BusinessCentral.Apps.Management.dll, and Microsoft.BusinessCentral.Apps.Tools.dll.A Windows PowerShell 5 compatibility layer module is available users who aren't ready to use PowerShell 7. This module is named Microsoft.Dynamics.Nav.Management.dll and is stored in the Management folder Business Central Server installation. It consolidates the cmdlets/functions of all three modules (Microsoft.Dynamics.Nav.Management.dll, Microsoft.Dynamics.Nav.Apps.Management.dll, and Microsoft.Dynamics.Nav.Apps.Tools.dll) into a single module. The PowerShell 5 compatibility layer module is using an approach similar to the Windows PowerShell Compatibility functionality in PowerShell 7.
Run the Business Central Administration Shell
To run the shell, you have to be a member of the local administrator group on the computer. There are a couple ways to run the shell.
One way is from the Start menu or Search on your desktop. Select Start or Search, type Business Central Administration Shell, right-click it, then select Run as administrator.
If PowerShell 7 is installed on your device, then the PowerShell 7 modules are load
Another way is from Windows PowerShell. Start PowerShell 7 (or Windows PowerShell 5) as an administrator. At the prompt, run the following command:
Import-Module -Name C:\Program Files\Microsoft Dynamics 365 Business Central\nnn\Service\navadmintool.ps1Replace
C:\Program Files\Microsoft Dynamics 365 Business Central\nnnwith the path to your server installation.If you're using PowerShell 7, the PowerShell 7 modules are loaded. If you're using PowerShell 5, the PowerShell 5 compatibility layer module is loaded.
Run Business Central Admin Shell in remote session
To administer Business Central Server on a remote computer, you can use PowerShell remoting. PowerShell remoting allows you to run Business Central Administration Shell cmdlets on the remote server from your local machine.
Ensure that PowerShell Remoting is enabled on the remote computer that's running Business Central Server. From the remote computer, start PowerShell and run the following command:
Enable-PSRemoting -ForceOn the local computer, start PowerShell 7 (or Windows PowerShell 5) as an administrator.
Run the following command to start an interactive session to the remote computer:
Enter-PSSession -ComputerName <RemoteComputerName> -Credential <Username>Once connected, your prompt changes to reflect the remote computer. You can now navigate and execute commands directly.
Run the following command to start Business Central Administration Shell:
Import-Module -Name C:\Program Files\Microsoft Dynamics 365 Business Central\nnn\Service\navadmintool.ps1
Important
With 2026 release wave 1 (v28.0), you must use Windows PowerShell 5 to run Business Central Administration Shell. Due to a known issue, PowerShell 7–based remoting isn't supported. Learn more in Known issues.
Get help on the cmdlets
To view the available cmdlets, enter the following command at the prompt:
Get-Command *NAV*
To get help with syntax, options, and examples for a specific cmdlet in Business Central version 23 or earlier, enter the following command:
Get-Help <cmd name> -full
For example, to get Help about the Get-NAVServerInstance cmdlet, type the following command.
Get-Help Get-NAVServerInstance -full
Help with syntax, options, and examples isn't available starting with version 24. Use the online version of the help on Microsoft Learn.
To open the online help, enter the following command:
Get-Help <cmd name> -online
Learn more
For more information about Business Central Administration Shell cmdlets, see Administration Cmdlets .
For more information about Windows PowerShell, see Windows PowerShell Getting Started Guide.
Related information
Configuring Business Central Server Instances
Configuring Business Central Web Server Instances
Publish and Install Extensions