99 v:1.0.0
1010 BY: ~#M?x
1111
12- [1] Wsl [2] Firewall_rules
13- [3] Browser_Install [4] Drive Reset
12+ [1] Wsl [2] Firewall rules
13+ [3] Browser Install [4] Drive Reset
1414"@
1515
1616Write-Host $tx
@@ -41,8 +41,10 @@ if($true){
4141 wsl -- install
4242 write-host
4343 Clear-Host
44- write -host " Wsl Config "
44+ Write -host " Windows Subsystem for linux "
4545 dism.exe / online / enable-feature / featurename:Microsoft- Windows- Subsystem- Linux / all / norestart
46+ Write-Host
47+ Write-Host " Virtual Machine platform"
4648 dism.exe / online / enable-feature / featurename:VirtualMachinePlatform / all / norestart
4749 wsl -- set-default - version 2
4850 Write-Host " Wsl installed"
@@ -60,9 +62,10 @@ if($true){
6062"@
6163 Write-Host $install
6264 write-host
63- Write-Host " [*] 1. Install Ubuntu [*] 2. Debian" - ForegroundColor Red
64- Write-Host " [*] 3. Kali Linux [*] 4. Arch Linux" - ForegroundColor Green
65- Write-Host " [*] 5. Install Everything [6] No install" - ForegroundColor Blue
65+ Write-Host " [*] 1. Ubuntu [*] 2. Debian" - ForegroundColor Red
66+ Write-Host " [*] 3. Kali Linux [*] 4. Arch Linux " - ForegroundColor Blue
67+ Write-Host " [*] 5. Opensuse [*] 6. Oracle " - ForegroundColor Magenta
68+ Write-Host " [*] 7. Everything [*] 8. No install " - ForegroundColor Green
6669 Write-Host
6770 $opt = Read-Host " Choose the option to install"
6871
@@ -86,35 +89,54 @@ if($true){
8689 break
8790 }
8891 3 {Write-Host " Kali"
89- wsl -- install - d Kali
92+ wsl -- install - d kali - linux
9093 Write-Host " Kali Linux Installed" - ForegroundColor Blue
9194 Write-Host
9295 break
9396 }
9497 4 {Write-Host " Archlinux" - ForegroundColor Blue
95- if ($false ){
96- git clone https:// github.com / yuk7/ ArchWSL.git
98+ if ($true ){
99+ Enable-WindowsOptionalFeature - Online - FeatureName Microsoft- Hyper- V - All
100+ DISM / Online / Enable-Feature / All / FeatureName:Microsoft- Hyper- V
101+ Clear-Host
102+ Write-Host
103+ curl - O arch.zip https:// github.com / yuk7/ ArchWSL/ releases/ download/ 22.10 .16.0 / Arch.zip
104+ .\arch.zip
105+
106+ }else {
97107
98- }else {
99- Write-Host " Git Install"
100- winget
101108 }
102- Write-Host " Arch linux Installed"
103- Write-Host
104- break
105109 }
106- 5 {
110+ 5 {Write-Host " Opensuse"
111+ wsl -- install - d opensuse- leap- 15.5
112+ Write-Host
113+ Write-Host " OpenSuse Installed" - ForegroundColor Green
114+ Write-Host
115+ break
116+ }
117+ 6 {Write-Host " Oracle"
118+ wsl -- install - d oraclelinux_9_1
119+ Write-Host
120+ Write-Host " Oracle Installed" - ForegroundColor Green
121+ Write-Host
122+ break
123+ }
124+ 7 {
107125 write-host
108126 Write-Host " Everything"
109127 wsl -- install - d ubuntu
110128 wsl -- install - d Debian
111- wsl -- install - d Kali
129+ wsl -- install - d kali- linux
130+ wsl -- install - d opensuse- leap- 15.5
131+ wsl -- install - d oraclelinux_9_1
112132 Write-Host
133+ Start-Sleep 2 > $null
134+ Clear-Host
113135 Write-Host " Everything Installed" - ForegroundColor Blue
114136 Write-Host
115137 break
116138 }
117- 6 {
139+ 8 {
118140 Write-Host " Exit"
119141 Start-Sleep - Seconds 1 > $null
120142 exit
@@ -197,8 +219,8 @@ try {
197219 | | | ' \ (_-/| _|/ _` || || |
198220 |___||_||_|/__/ \__|\__/_||_||_|
199221
200- [*] 1. Brave Browser [*] 2. Firefox
201- [*] 3. Chrome [*] 4. All
222+ [*] 1. Brave [*] 2. Firefox [*] 5. All
223+ [*] 3. Chrome [*] 4. Opera GX
202224
203225"@
204226Write-Host $install
@@ -263,6 +285,24 @@ switch ($opt) {
263285
264286 }
265287 4 {
288+ $opreagx = @"
289+ ___ ___ ___ ___ ___ ___ __ __
290+ / _ \ | _ \| __|| _ \/ \ / __|\ \/ /
291+ | (_) || _/| _| | /| - | | (_ | > <
292+ \___/ |_| |___||_|_\|_|_| \___|/_/\_\
293+
294+ "@
295+ Write-Host $opreagx
296+ if ($True ){
297+ winget install -- id= Google.Chrome - e
298+ Write-Host
299+ Write-Host " Opera GX Installed"
300+ }else {
301+ Write-Host " Have Problems"
302+ }
303+
304+ }
305+ 5 {
266306
267307$all = @"
268308 ___
@@ -286,11 +326,16 @@ if($False){
286326 Start-Sleep 2 > $null
287327 winget install -- id= Mozilla.Firefox - e
288328 Clear-Host
289- Write-Host " Chrome" ForegroundColor White
329+ Write-Host " Chrome" - ForegroundColor White
290330 Start-Sleep 2 > $null
291331 winget install -- id= Google.Chrome - e
292332 Clear-Host
293333 Write-Host
334+ write-host " Opera GX" - ForegroundColor Red
335+ Write-Host
336+ Start-Sleep 2 > $null
337+ winget install -- id= Opera.OperaGX - e
338+ Write-Host
294339 Write-Host " All browsers installed"
295340 }else {
296341 Write-Host
@@ -328,22 +373,26 @@ try {
328373 Write-Host " Drive Reset"
329374 dism / online / cleanup- image / scanhealth
330375 dism / online / cleanup- image / restorehealth
376+ Write-Host " Drive Scanner" - ForegroundColor Magenta
377+ Write-Host
378+ pnputil / scan- devices
379+ Write-Host
380+ Write-Host " Restart all devices"
331381 pnputil / resetdrivers / force
332382 Write-Host
333- Write-Host " Drives Reset done!"
383+ Write-Host " Drives Reset done!" - ForegroundColor Cyan
334384 Write-Host
335- Write-Host " Now reboot your computer"
336-
385+ Write-Host " Now reboot your computer" - ForegroundColor Cyan
337386 }else {
338387 Write-Host
339- Write-Host " Haven Problem"
388+ Write-Host " ⚠ Haven Problem ⚠ "
340389 Write-Host
341390 }
342391
343392}
344393catch {
345394 <# Do this if a terminating exception happens#>
346- Write-Host " Haven Problem, maybe you dont start with administrator"
395+ Write-Host " ⚠ Haven Problem, maybe you dont start with administrator ⚠ "
347396}
348397
349398}}
0 commit comments