Category / PowerShell

PowerShell is an object-oriented automation engine and scripting language. Since docker and the navcontainerhelper have been available, it has been used far more intensively by nav developers than just a few years ago.

Restore SQL/BC Database via PowerShell

There are a million scripts out there to Restore SQL/BC Database (Dynamics NAV / Business Central) in the web… So why shouldn’t there be another one 😛 What it does It’s a simple PowerShell script iterating over the defined directories and restoring the database to the last transaction log. For me… It’s my “sleep better […]

How-To Auto-Update PowerShell modules

Here’s a little snippet i extensively use in my scripts. It helps to check if there’s updates for your PowerShell modules and installs them if available. In this example, I want to use two different PowerShell modules bccontainerhelper and sqlserver. Actually, this could be used in all PowerShell scripts that don’t depend on a specific […]

How to get BC 365 Insider Previews on Docker

Attention: This post is deprecated and updated here! It took me a while to install the Docker bcinsider preview images for D365 Business Central. Credentials for this private repository could be found at Microsoft Collaborate (read more). So, here’s my snippet to use with navcontainerhelper. Now you can easily create your Docker container using New-BCContainer.