Skip to content

Tutorial Install Administrator

Mötz Jensen edited this page Jan 22, 2020 · 2 revisions

Install as a Administrator

This tutorial will show you how to install the d365fo.tools on a machine where you have administrator access / privileges.

If you are NOT able to logon to the machine as an administrator, you should be using the Install as a Non Administrator tutorial instead.

Prerequisites

  • Machine with D365FO installed
  • PowerShell 5.1
  • Administrator privileges
  • Internet access / Internet connection

Logon to the computer

You need sign into the machine where you want to install the tools. Remember to sign in as an account with administrator privileges.

If you don't have an user account with administrator privileges, please follow the Install as a Non Administrator tutorial instead.

Start PowerShell (Run As Administrator)

Locate the PowerShell icon, if you don't have it on your desktop or in the task pane, we can locate it in the Windows Start Menu. Search for it or type PowerShell.

You need to right click on the PowerShell icon and select the "Run As Administrator" option for the menu.

Install the d365fo.tools module

In the PowerShell console/window type the following command:

Install-Module -Name d365fo.tools

PowerShell will now connect to the internet and try to download the latest version of the d365fo.tools and its dependencies. If your machine or PowerShell installation is all fresh, you might be prompted for questions / confirmations about core PowerShell configurations.

You need to either accept or approve all the prompts, for things to work like expected. See below examples on the which prompts you can expect and what response you should fill in.

NuGet

If you want to learn about NuGet as concept, you can start here: https://en.wikipedia.org/wiki/NuGet

Answer the prompt with: Y

Untrusted Repository

The tools are available from PowerShellGallery. If you want to learn about PowerShellGallery, you can start here: https://docs.microsoft.com/en-us/powershell/scripting/gallery/overview?view=powershell-5.1

Answer the prompt with: A

Completing installation

Import module

While you just installed the d365fo.tools on the machine by following this tutorial, you will need to import or simply put, load the module into the PowerShell console, before you can use it. Type the following command:

Import-Module -Name d365fo.tools

Closing comments

In this tutorial we showed you how to install the d365fo.tools when you have administrator privileges on machine. We highlighted some of the prompts that you might face on a freshly installed machine.

Clone this wiki locally