Windows
Windows ISO
- Windows 10 LTSC: https://www.microsoft.com/zh-cn/evalcenter/download-windows-10-enterprise/
- Bootable USB: Ventoy1
PowerShell
Specific PowerShell as SSH terminal on Windows
# https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force # or New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\PowerShell\7\pwsh.exe" -PropertyType String -Force
Remove command history of PowerShell security
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/clear-history?view=powershell-7.2 Remove-Item (Get-PSReadlineOption).HistorySavePath
Batch rename file
Get-ChildItem -Recurse -Path . -File | %{$i=0}{Rename-Item $_.FullName -NewName (‘{0}\{1}{2}’ -f $_.DirectoryName, ++$i, $_.Extension)} Get-ChildItem -Recurse -Path . -File | foreach {$i=0} {Rename-Item $_.FullName -NewName ($_.DirectoryName+(‘\{0}’ -f ++$i)+ $_.Extension)}
Registry
Turn on Windows RDP service(open port 3389)2 security
@reg add HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 0 /f
Clear login record
@echo off reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f del "%USERPROFILE%\My Documents\Default.rdp" /a @exit
Turn off search suggestions
reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\explorer" /v DisableSearchBoxSuggestions /t reg_dword /d 1 /f
Turn off Windows update
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 3000 /f
Hyper-V
Android VM have no GUI android virtual_machine
- Enter Debug mode
- Execute
mount -0 remount,re/mnt
- Execute
vi /mnt/grub/menu.lst
- Input
nomodeset
afterquiet
aroundAndroid-x86 xx-rcx
- Restart VM
Useful info
Software - UWP:
- WSL (Windows Subsystem of Linux, not WSL2)
- Minecraft (Bedrock Edition)
- PowerShell
- QuickLook
- Translucent TB
- X410
Software - x86/x64:
- Draw.io
- Huorong
- LiuLiangPan
Software - x86/x64 by scoop(https://github.com/ScoopInstaller/Install):
- 7zip
- aria2
brave
%% default start brave with profile mklink /j "C:\Users\zhang\AppData\Local\BraveSoftware\Brave-Browser\" "C:\Users\zhang\scoop\persist\brave\"
- captura
- caesium-image-compressor
- darktable
- dismplusplus
- ffmpeg
- everything
- gimp
- git
- git-crypt
- ilspy (.NET Decompiler)
- llvm
- lua
- lua-language-server
- make
- memreduct
- mpc-be
- musicplayer2
- neovim
- nodejs-lts
- obs-studio
- shotcut
- spacesniffer (Disk Analyser)
- sublime-text
- tree-sitter
- vcredist2022
- wezterm
- winspy
- wireshark
- clash
- photodemon
- tageditor
Shortcut Keyboard: win + r
.
Command | Caption |
---|---|
control | Control Panel |
calc | Calculator |
shutdown | Auto Shutdown |
regedit | Registry Editor |
slmgr | Show System Activation Info |
taskmgr | Task Manager |
snippingtool | Screenshot Tool |
explorer | Resource Explorer |
notepad | Open Notepad |
winver | Windows Version |
write | Write Board |
mspaint | Microsoft Paint |
diskpart | Disk Tool |
ncpa.cpl | Show Network Driver |
gpedit.msc | Group Policy Editor |
services.msc | Show and Manage Services |
compmgmt.msc | Computer Management |
netsh | Network Shell |
Automatic shutdown
shutdown
Command | Caption |
---|---|
shutdown /s /t 600 | shutdown after 600 seconds |
shutdown /r /t 600 | restart after 600 seconds |
shutdown /a | cancel all schedular opeartion |
Operate disk
diskpart
Command | Caption |
---|---|
list disk | List all mount disk |
select disk <diskno.> | Select disk by no. |
clean | Clean current disk, including partition table |
Network Shell
netsh
Command | Caption |
---|---|
netsh interface portproxy add v4tov6 … | Add a port proxy which type is IPv4 to IPv6 |
netsh interface portproxy show v4tov6 | Show all port proxy which type is IPv4 to IPv6 |
netsh interface portproxy reset | Delete all port proxy |
Example(IP Helper
service must be open):
netsh interface portproxy add v6tov4 listenaddress=:: listenport=22 connectaddress=10.0.0.10 connectport=22
Or use VPN(zhang.vpn).
Footnotes:
1
A New Bootable USB Solution: https://www.ventoy.net/en/index.html
2
Some configurations of Windows and Microsoft’s products: https://gitee.com/honbey/config