@@ -36,20 +36,31 @@ Set-Location -Path $PSScriptRoot
36
36
Set-ExecutionPolicy Unrestricted - Scope CurrentUser
37
37
Get-ChildItem - Recurse * .ps* 1 | Unblock-File
38
38
39
- Import-Module - DisableNameChecking $PSScriptRoot \library\Write-Menu .psm1
40
- Import-Module - DisableNameChecking $PSScriptRoot \library\WinCore.psm1
41
- Import-Module - DisableNameChecking $PSScriptRoot \library\PrivacyFunctions.psm1
42
- Import-Module - DisableNameChecking $PSScriptRoot \library\Tweaks.psm1
43
- Import-Module - DisableNameChecking $PSScriptRoot \library\GeneralFunctions.psm1
44
- Import-Module - DisableNameChecking $PSScriptRoot \library\DebloatFunctions.psm1
45
- Import-Module - DisableNameChecking $PSScriptRoot \library\UndoFunctions.psm1
39
+ Import-Module .\library\Write-Menu .psm1 - DisableNameChecking
40
+ Import-Module .\library\WinCore.psm1 - DisableNameChecking
41
+ Clear-Host
42
+ Import-Module .\library\PrivacyFunctions.psm1 - DisableNameChecking
43
+ Import-Module .\library\Tweaks.psm1 - DisableNameChecking
44
+ Import-Module .\library\GeneralFunctions.psm1 - DisableNameChecking
45
+ Import-Module .\library\DebloatFunctions.psm1 - DisableNameChecking
46
+ Import-Module .\library\UndoFunctions.psm1 - DisableNameChecking
46
47
47
48
$title = " Windows Toolbox $version "
48
49
$host.UI.RawUI.WindowTitle = $title
49
50
$build = (Get-CimInstance Win32_OperatingSystem).version
50
51
51
52
[Net.ServicePointManager ]::SecurityProtocol = [Net.ServicePointManager ]::SecurityProtocol -bor [Net.SecurityProtocolType ]::Tls12
52
53
54
+
55
+
56
+ Write-Host " It is recommended that you create a system restore point."
57
+ $reply = Read-Host - Prompt " Make One Now? [y/n]"
58
+ if ( $reply -match " [yY]" ) {
59
+ Clear-Host
60
+ Checkpoint-Computer - Description " BeforeWindowsToolbox" - RestorePointType " MODIFY_SETTINGS"
61
+ Read-Host " Press enter to continue"
62
+ }
63
+
53
64
Clear-Host
54
65
55
66
if ($build -eq " 10.0.10240" ) {
@@ -58,7 +69,6 @@ if ($build -eq "10.0.10240") {
58
69
} elseif ($build -eq " 10.0.17134" ) {
59
70
Write-Warning " Your Windows Version is too old to run Winget. Using Chocolatey"
60
71
$global :pkgmgr = " choco"
61
- Read-Host " Press enter to continue"
62
72
Clear-Host
63
73
} else {
64
74
$global :pkgmgr = " winget"
@@ -228,7 +238,7 @@ $objects = @{
228
238
' Hypervisors / Emulators' = " @(
229
239
'VMware Workstation Pro',
230
240
'VMware Workstation Player',
231
- 'HyperV',
241
+ 'HyperV (Windows 10/11 Pro Only) ',
232
242
'VirtualBox',
233
243
'DOSBox'
234
244
)"
480
490
InstallWSL
481
491
}
482
492
483
- " Hyper-V" {
493
+ " Hyper-V (Windows 10/11 Pro Only) " {
484
494
InstallHyperV
485
495
}
486
496
534
544
}
535
545
}
536
546
537
- # Gaming stuff
547
+ # Gaming Menu
538
548
539
549
" Steam" {
540
550
if ($global :pkgmgr -eq " choco" ) {
0 commit comments