@@ -31,8 +31,8 @@ function Info {
31
31
Write-Output " - Disable ShellExperienceHost"
32
32
Write-Output " - Disable SearchUI `n "
33
33
Write-Output " Things that break (or doesn't work on) Windows 11 (will be fixed):"
34
- Write-Output " - Disabling telemetry (Disables updates. See #7) `n`n "
35
- Write-Output " - Remove user folders under This PC"
34
+ Write-Output " - Disabling telemetry (Disables updates. See #7)"
35
+ Write-Output " - Remove user folders under This PC `n`n "
36
36
Read-Host " Press Enter to continue"
37
37
}
38
38
@@ -60,3 +60,35 @@ function InstallHyperV {
60
60
}
61
61
else { Install-WindowsFeature - Name " Hyper-V" - IncludeManagementTools - WarningAction SilentlyContinue }
62
62
}
63
+
64
+ function MSDOSMode {
65
+ Write-Output ' "MS-DOS Mode" for Windows 10 (PoC, made by Endermanch)'
66
+ Write-Output " This is provided WITHOUT WARRANTY OF ANY KIND and is only a Proof of Concept."
67
+ Write-Output " Big thanks to Endermanch for this and his discovery of the BCPE exploit. `n`n "
68
+
69
+ $conflocation = " $env: APPDATA \WindowsToolbox\"
70
+ $windowsdos = " https://dl.malwarewatch.org/multipurpose/Windows10DOS.zip"
71
+
72
+ Write-Output " Downloading"
73
+ Invoke-WebRequest - Uri $windowsdos - OutFile $conflocation \Windows10DOS.zip
74
+
75
+ Write-Output " Installing 7Zip4PowerShell (sorry, Expand-Archive does not support passwords)"
76
+ Install-Module 7Zip4PowerShell - Scope CurrentUser - Force - Verbose
77
+ Clear-Host
78
+ Write-Output " Extracting..."
79
+ Expand-7Zip - ArchiveFileName $conflocation \Windows10DOS.zip - TargetPath $conflocation - Password " mysubsarethebest" - Verbose
80
+
81
+ Write-Output " Copying to System32"
82
+ Copy-Item $conflocation \msdos.bat - Destination " C:\Windows\System32" - Force
83
+ Copy-Item $conflocation \win.bat - Destination " C:\Windows\System32" - Force
84
+ Copy-Item $conflocation \reboot.bat - Destination " C:\Windows\System32" - Force
85
+
86
+ Write-Output " Removing leftovers"
87
+ Remove-Item - Path $conflocation \msdos.bat - Force
88
+ Remove-Item - Path $conflocation \win.bat - Force
89
+ Remove-Item - Path $conflocation \reboot.bat - Force
90
+
91
+ Write-Output " Please use WinXEditor to add the entry to the Win+X menu"
92
+ Start-Process $conflocation \WinXEditor\WinXEditor.exe
93
+ Read-Host " Done"
94
+ }
0 commit comments