TestRunner.ps1
#$VerbosePreference = "Continue" #Install-Module D365BCDownloadHelper -Force #Import-Module D365BCDownloadHelper #Update-Module D365BCDownloadHelper #Remove-Module SetupD365Environment #Remove-Module D365BCDownloadHelper #Get-Module -ListAvailable #Get-InstalledModule #Uninstall-Module -Name D365BCDownloadHelper #Get-Module -ListAvailable #$VerbosePreference = "Continue" #Get-BusinessCentralDownloadUrl -Version 13 -CumulativeUpdate CU14 -Language W1 -Verbose #$zipFilename = Receive-BusinessCentralDVD -Version 13 -CumulativeUpdate CU14 -Language W1 -Verbose #Expand-BusinessCentralDVD -ZipFilename $zipFilename -Verbose Get-ReceiveAndExpandBusinessCentralDVD -Version 13 -CumulativeUpdate CU14 -Language W1 -Verbose return #$env:PSModulePath $env:PSModulePath "C:\Users\simon\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff\Modules;C:\Users\simon\.vscode\extensions\ms-vscode.powershell-2019.5.0\modules" "C:\Users\simon\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff\Modules;C:\Users\simon\.vscode\extensions\ms-vscode.powershell-2019.5.0\modules" "C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff;F:\Repositories\PowerShell-Stuff\PowerShell-Stuff\Modules;C:\Users\simon\.vscode\extensions\ms-vscode.powershell-2019.5.0\modules" $CurrentValueMachine = [Environment]::GetEnvironmentVariable("PSModulePath", "Machine") $CurrentValueMachine $CurrentValueMachine = "C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\" [Environment]::SetEnvironmentVariable("PSModulePath", $CurrentValueMachine + ";F:\Repositories\D365BCDownloadHelper\Module", "Machine") [Environment]::SetEnvironmentVariable("PSModulePath", $CurrentValueMachine, "Machine") $env:PSModulePath = $env:PSModulePath -replace "$([System.IO.Path]::PathSeparator)F:\\Repositories\\D365BCDownloadHelper\\" $env:PSModulePath = $env:PSModulePath + ";F:\Repositories\" Get-Command -Module D365BCDownloadHelper $profile "Dynamics.365.BC.Spring2019.29537.DE.DVD.zip.zip" -match "DE.*\.zip" "Dynamics.365.BC.Spring2019.29537.AU.DVD.zip.zip" -match "DE.*\.zip" Import-Module D365BCDownloadHelper Remove-Module D365BCDownloadHelper Uninstall-Module -Name D365BCDownloadHelper Get-Module Get-Module -ListAvailable Clear-Host |