This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在Windows terminal中关闭 WSL虚拟网卡的防火墙 | |
# 直接放开 `vEthernet (WSL)` 这张网卡的防火墙 | |
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow | |
----- | |
在 wsl 中。~/.bashrc | |
hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*') | |
export http_proxy=http://${hostip}:7890/ | |
export https_proxy=http://${hostip}:7890/ | |
export all_proxy=socks5://${hostip}:7890/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在Windows terminal中关闭 WSL虚拟网卡的防火墙 | |
# 直接放开 `vEthernet (WSL)` 这张网卡的防火墙 | |
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow | |
----- | |
在 wsl 中。~/.bashrc | |
hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*') | |
export http_proxy=http://${hostip}:7890/ | |
export https_proxy=http://${hostip}:7890/ | |
export all_proxy=socks5://${hostip}:7890/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Restarting WSL Service" | |
Restart-Service LxssManager | |
echo "Restarting Host Network Service" | |
Stop-Service -name "hns" | |
Start-Service -name "hns" | |
echo "Restarting Hyper-V adapters" | |
Get-NetAdapter -IncludeHidden | Where-Object ` | |
{$_.InterfaceDescription.StartsWith('Hyper-V Virtual Switch Extension Adapter')} ` | |
| Disable-NetAdapter -Confirm:$False | |
Get-NetAdapter -IncludeHidden | Where-Object ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://serverfault.com/questions/1018220/how-do-i-install-an-app-from-windows-store-using-powershell | |
#Usage: | |
# > Download-AppxPackage "https://www.microsoft.com/p/dynamic-theme/9nblggh1zbkw" "$ENV:USERPROFILE\Desktop" | |
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30233.0_neutral_~_jdggxwd41xcr0.AppxBundle | |
# C:\Users\user\Desktop\55888ChristopheLavalle.DynamicTheme_1.4.30234.0_neutral_~_jdggxwd41xcr0.AppxBundle | |
# C:\Users\user\Desktop\Microsoft.NET.Native.Framework.1.7_1.7.27413.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.Services.Store.Engagement_10.0.19011.0_x64__8wekyb3d8bbwe.Appx | |
# C:\Users\user\Desktop\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe.Appx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Francophonie\Eudic\Customer Info] | |
"SerialCode"="cracked by Archon" | |
"TimesLeft3"=dword:000c85e7 | |
"regDate"="2019/12/30 00:00:00" | |
"LicenseCode"="cracked by Archon" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: Run PowerShell as Administrator! | |
Delete all builtin apps except photo viewer and calculator (xbox will throw error as game bar is not removed but everything else is!); | |
Get-AppxPackage -allusers *3dbuilder* | Remove-AppxPackage | |
Get-AppxPackage -allusers *alarms* | Remove-AppxPackage | |
Get-AppxPackage -allusers *appconnector* | Remove-AppxPackage | |
Get-AppxPackage -allusers *appinstaller* | Remove-AppxPackage | |
Get-AppxPackage -allusers *communicationsapps* | Remove-AppxPackage | |
Get-AppxPackage -allusers *camera* | Remove-AppxPackage |