Last active
June 19, 2022 14:17
-
-
Save FH-Inway/09fc05dd691ff33b663abdfa635238ac to your computer and use it in GitHub Desktop.
List D365FO T1 components
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
# Check PowerShell components | |
Get-Module -ListAvailable | |
# Check other components | |
git --version | |
# Check folders | |
Test-Path -Path "C:\Windows\System32\drivers\etc\hosts" | |
Test-Path -Path "C:\Windows\System32\inetsrv\Config\applicationHost.config" | |
Test-Path -Path "C:\FinancialReporting\Server\ApplicationService\bin\MRServiceHost.settings.config" | |
Test-Path -Path "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\" | |
Test-Path -Path "C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn" | |
Test-Path -Path "C:\Program Files\Microsoft SQL Server Reporting Services\Shared Tools" | |
# Check registry | |
$path = "HKLM:\SOFTWARE\Microsoft\Dynamics\Deployment\" | |
Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Dynamics\Deployment\" | |
$null -ne (Get-ItemProperty $path).Name | |
## .NET Versions (see https://stackoverflow.com/a/3495491/2720554) | |
$Lookup = @{ | |
378389 = [version]'4.5' | |
378675 = [version]'4.5.1' | |
378758 = [version]'4.5.1' | |
379893 = [version]'4.5.2' | |
393295 = [version]'4.6' | |
393297 = [version]'4.6' | |
394254 = [version]'4.6.1' | |
394271 = [version]'4.6.1' | |
394802 = [version]'4.6.2' | |
394806 = [version]'4.6.2' | |
460798 = [version]'4.7' | |
460805 = [version]'4.7' | |
461308 = [version]'4.7.1' | |
461310 = [version]'4.7.1' | |
461808 = [version]'4.7.2' | |
461814 = [version]'4.7.2' | |
528040 = [version]'4.8' | |
528049 = [version]'4.8' | |
} | |
# For One True framework (latest .NET 4x), change the Where-Object match | |
# to PSChildName -eq "Full": | |
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | | |
Get-ItemProperty -name Version, Release -EA 0 | | |
Where-Object { $_.PSChildName -match '^(?!S)\p{L}'} | | |
Select-Object @{name = ".NET Framework"; expression = {$_.PSChildName}}, | |
@{name = "Product"; expression = {$Lookup[$_.Release]}}, | |
Version, Release | Format-Table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment