- Download the latest license file from SharePoint:
🧭 Documents -> Licenties -> BC -> BC.flf
- Open BC Powershell and run
update-bc-license.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Gets and deploys Business Central in a Docker container. | |
.DESCRIPTION | |
Downloads the image from the registry and deploys it to a Docker container. | |
This is done using the NavContainerHelper PowerShell module. | |
.PARAMETER bcVersion | |
See this blog for more information: https://freddysblog.com/2020/06/25/working-with-artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter(Mandatory=$true)] | |
[String]$path | |
) | |
Get-ChildItem –Path $path –Recurse -Include *.png,*.jpg,*.bmp | Foreach-Object { | |
magick $_.FullName -strip -interlace Plane -gaussian-blur 0.05 -quality 85% $_.FullName | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Azure DevOps Personal Access Token | |
# https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows | |
# Courtesy of https://stackoverflow.com/questions/66264466/how-can-i-delete-azure-devops-old-build-pipelines-and-there-leases-with-power-sh | |
$personalAccessToken = "<Enter your personal access token here>" | |
$token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($personalAccessToken)")) | |
$header = @{authorization = "Basic $token"} | |
$organization = "<Enter your Azure DevOps Organization here>" | |
$project = "<Enter your Project Name here>" |
Unofficial script to create a Dime.Scheduler user. Check the Dime.Scheduler CLI for the official and supported way to provision users.
New-Dime.SchedulerUser `
-DisplayName "Name of the user" `
-EmailAddress "user@email.com" `
-Language en `
-TimeZone "Europe/London" `
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Install-SQLServerExpress2019 { | |
Write-Host "Downloading SQL Server Express 2019..." | |
$Path = $env:TEMP | |
$Installer = "SQL2019-SSEI-Expr.exe" | |
$URL = "https://go.microsoft.com/fwlink/?linkid=866658" | |
Invoke-WebRequest $URL -OutFile $Path\$Installer | |
Write-Host "Installing SQL Server Express..." | |
Start-Process -FilePath $Path\$Installer -Args "/ACTION=INSTALL /IACCEPTSQLSERVERLICENSETERMS /QUIET" -Verb RunAs -Wait | |
Remove-Item $Path\$Installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(mandatory = $false, HelpMessage = "The name of the Azure AD App.")] | |
[string] $appName = "dime-scheduler", | |
[Parameter(mandatory = $true, HelpMessage = "The id of the Azure tenant ")] | |
[string] $tenantId, | |
[Parameter(mandatory = $true, HelpMessage = "The name of the Azure tenant ")] | |
[string] $tenantName, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(mandatory = $false, HelpMessage = "The name of the Azure AD App.")] | |
[string] $appName = "dime-scheduler", | |
[Parameter(mandatory = $true, HelpMessage = "The id of the Azure tenant ")] | |
[string] $tenantId, | |
[Parameter(mandatory = $true, HelpMessage = "The name of the Azure tenant ")] | |
[string] $tenantName, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem .\ -include bin,obj -Recurse | foreach { remove-item $_.fullname -Force -Recurse } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare var Ext: any; |
NewerOlder