# Migration to Python started #
* PoSH has an extreme slowdown for some systems while it runs an optimization
** pass for .NET on the first PoSH script execution.
** This is reason enough to move to an alternative.
* New additions:
* User Data Transfer script
* Will extract from a WIM or copy from a folder
* Uses wimlib-imagex for images and FastCopy for folders
* Removes undesired items after transfer/extraction
* HWiNFO
* Missing ODD repair registry patch
* Q-Dir
* SW Bundle install script
* ConEmu
* Moving back to ConEmu for better performance.
* Copy-WizardKit
* Now uses FastCopy
* functions.py
* Ported init.ps1 to Python using functions.py (from WinPE) as a base
* Launch.cmd
* Elevating programs/scripts now done using a temp VBScript file
* Can run Python scripts (using either the 32 or 64 bit runtime)
* transferred_keys.cmd
* Expanded searched paths
* Misc
* Lots of variables and files renamed
* Lots of hard-coded paths are now in variables
* Should only be set in scripts in %bin%\Scripts
* Moved a subset of the Diagnostics launchers to a new 'Extras' folder
* The launchers moved are those that are less-often used
* Refactored FindBin code to be more concise
* Renamed "KitDir" "ClientDir" to indicate that it is on the client's system
* Removed GeForce Experience launcher as it now requires an account
* Added link to NVIDIA's driver webpage to download the correct driver
* Removed AMD's Gaming Evolved launcher
* This is usually bundled with the GPU driver anyway
* Switched back to ConEmu
* Variable and script names are now more descriptive
* i.e. checklist -> final_checklist, and HH -> %kit_dir%
* (not happy with %kit_dir%, will probably change again)
64 lines
1.7 KiB
PowerShell
64 lines
1.7 KiB
PowerShell
# Wizard Kit: Set some OS specific variables.
|
|
|
|
$win_info = gp hklm:"\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
|
|
if ($win_info.CurrentVersion -match "6.0") {
|
|
$win_version = "Vista"
|
|
} elseif ($win_info.CurrentVersion -match "6.1") {
|
|
$win_version = "7"
|
|
} elseif ($win_info.CurrentVersion -match "6.2") {
|
|
$win_version = "8"
|
|
} elseif ($win_info.CurrentVersion -match "6.3") {
|
|
if ($win_info.CurrentBuildNumber -match "9200") {
|
|
$win_version = "8"
|
|
} elseif ($win_info.CurrentBuildNumber -match "9600") {
|
|
$win_version = "8"
|
|
} elseif ($win_info.CurrentBuildNumber -ge "10240") {
|
|
$win_version = "10"
|
|
}
|
|
}
|
|
$arch = (gci env:processor_architecture).value
|
|
$arch = $arch -ireplace 'x86', '32'
|
|
$arch = $arch -ireplace 'AMD64', '64'
|
|
|
|
#$win_info.CurrentBuild
|
|
# == vista ==
|
|
# 6.0.6000
|
|
# 6.0.6001
|
|
# 6.0.6002
|
|
# ==== 7 ====
|
|
# 6.1.7600
|
|
# 6.1.7601
|
|
# 6.1.7602
|
|
# ==== 8 ====
|
|
# 6.2.9200
|
|
# === 8.1 ===
|
|
# 6.3.9200
|
|
# === 8.1u ==
|
|
# 6.3.9600
|
|
# === 10 v1507 "Threshold 1" ==
|
|
# 6.3.10240
|
|
# === 10 v1511 "Threshold 2" ==
|
|
# 6.3.10586
|
|
# === 10 v1607 "Anniversary Update" "Redstone 1" ==
|
|
# 6.3.14393
|
|
# === 10 v____ "Redstone 2" ==
|
|
# 6.3.
|
|
|
|
$os_name = $win_info.ProductName
|
|
$os_name += " " + $win_info.CSDVersion
|
|
$os_name = $os_name -replace 'Service Pack ', 'SP'
|
|
if ($win_info.CurrentBuild -match "9600") {
|
|
$os_name += " Update"
|
|
} elseif ($win_info.CurrentBuild -match "10586") {
|
|
$os_name += " Release 1511"
|
|
} elseif ($win_info.CurrentBuild -match "14393") {
|
|
$os_name += " Release 1607 Anniversary Update"
|
|
}
|
|
|
|
# Get activation status
|
|
if ($safemode) {
|
|
$win_act = " Activation status unavailable in safe mode"
|
|
} else {
|
|
$slmgr = (gci env:windir).value + "\System32\slmgr.vbs"
|
|
$win_act = (cscript /nologo $slmgr /xpr) -imatch '^\s'
|
|
}
|