Skip to content

Instantly share code, notes, and snippets.

@gary-palmer
gary-palmer / .. MediaCreationTool.bat .md
Created January 22, 2021 10:55 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 20H2 with business (Enterprise) edition support

Preview1 Preview2

2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number
@gary-palmer
gary-palmer / gist:f1121a48e7538534718439eefc495d0e
Last active August 18, 2017 10:25
CSVHelper: Specify the order of some columns and automap the rest
Private Function GetCustomMap() As DefaultCsvClassMap(Of NICsDTO)
Dim csvConfig = New CsvConfiguration
Dim AutoMap = csvConfig.AutoMap(Of NICsDTO)
Dim CustomMap = New DefaultCsvClassMap(Of NICsDTO)
Dim PKeyNames As New List(Of String)({"EeID", "PYear", "Type", "RunID", "Letter", "OverrideLevel", "BackDated", "CalculationType", "BackDated_From_RunID"})