Lars Lohndorf-Larsen articles

Lars Lohndorf-Larsen
Published 
1 min read

New TimeStamp fields in Microsoft Dynamics NAV 2016 

In Dynamics NAV 2016, you may have noticed that a new field has shown up in the development environment: Timestamp. We mentioned this in the What’s New topic in the MSDN Library, but here is a bit of background. Since the first version of the SQL Server option for Dynamics NAV, every Dynamics NAV table has
Published 
3 min read

Coffee Break – Monitoring and troubleshooting NAV Services 

Windows PowerShell is very well suited for monitoring services because tasks can be repeated and they can run remotely. In this post we will look at how to check the Application Log via Windows PowerShell, locally as well as remotely, to look for errors or for certain words in the log. The customer story this
Published 
4 min read

Coffee Break – Automatic Deployment of Microsoft Dynamics NAV 

This post will round up a small series of how to use Windows PowerShell to provision Dynamics NAV in an automated way. In our examples we do this in the cloud, since here we can already automate the machine and OS deployments, but the techniques here will work in any environment. The key element here
Published 
4 min read

Coffee Break – keeping stuff in the cloud 

In the last few Coffee Break posts we have been looking at virtual hard disks (VHDs) and virtual machines (VMs). Now let’s combine the two in the cloud. Coffee Break 11 – Provisioning – Using Microsoft Azure storage to keep VHDs and other useful stuff in the cloud Provisioning a new instance of Microsoft Dynamics NAV is like
Published 
3 min read

Coffee Break – Using Windows PowerShell to provision virtual machines 

The  previous coffee break was about creating a new Virtual Hard Disk (vhd). This time we will create the rest of the machine (VM) in Microsoft Azure. Coffee Break 10 – Provisioning (Creating a Virtual Machine (VM) in Azure) A central part of provisioning a Microsoft Dynamics NAV deployment is of course to provision the
Published 
5 min read

Coffee Break – Windows PowerShell and creating a Hyper-V disk 

After covering some basic management operations for Microsoft Dynamics NAV, we thought it might be the time to look under the hood of the Dynamics NAV cloud provisioning script. The script in its entirety is fairly large and complex. But stripped away from all the wrappings and bundling, it can be broken down to small,
Published 
4 min read

Coffee Break – Windows PowerShell Remoting 

In this previous blog post we looked briefly at Windows PowerShell and remoting. Back then, we used a PSSession object to connect to a Microsoft Dynamics NAV virtual machine in Microsoft Azure. This time we will look a little closer at just the PSSession object. Coffee Break 8 – Windows PowerShell Remoting (On-Premises) Taking a closer look
Published 
4 min read

Coffee Break – Creating and Using Windows PowerShell Profiles 

When you open a Windows PowerShell command prompt, often you type the same commands to begin with. This post shows how to create a profile that will run the commands you want every time you start a new PowerShell command prompt. Coffee Break 7 – Creating and using Windows PowerShell profiles User Story Developer wants to
Published 
3 min read

Coffee Break | More piping with Dynamics NAV 

 Did you see our first coffee break about piping at Windows PowerShell and Piping? Let’s dig a bit further. Coffee Break 6 – Return to piping This time we will use more piping and other ways to look at a PowerShell object and format it in different ways. For the example here we will use Get-NAVServerInstance
Published 
2 min read

Coffee Break – Search in a Dynamics NAV object file using Windows PowerShell 

This coffee break post illustrates how to search a text file for specific words or a phrase. You can do this with Windows PowerShell in any text files, but let’s use some Dynamics NAV objects exported as text. Technically speaking we are reading a text file then piping it line for line through a search
Published 
2 min read

Coffee Break | Windows PowerShell and Piping 

The | (pipe) functionality in Windows PowerShell offers endless opportunities for formatting and manipulating results from one cmdlet to the next. Coffee Break 4: Piping in Windows PowerShell  Each time we run a Windows PowerShell cmdlet, the resulting output is not text but an Object providing structured information of the result. Example:  Get-NAVServerInstance will return existing