dev:tricks:windows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:tricks:windows [2013/08/18 01:40] – [Tricks in Windows] hackerzhou | dev:tricks:windows [2020/06/06 23:32] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Disk ===== | ===== Disk ===== | ||
+ | |||
==== Fast create big file ==== | ==== Fast create big file ==== | ||
+ | |||
< | < | ||
fsutil file createnew C: | fsutil file createnew C: | ||
Line 8: | Line 10: | ||
==== Fast wipe disk securely ==== | ==== Fast wipe disk securely ==== | ||
+ | |||
< | < | ||
cipher / | cipher / | ||
Line 13: | Line 16: | ||
===== Activation ===== | ===== Activation ===== | ||
+ | |||
==== Windows 7/2008 R2 KMS Activation ==== | ==== Windows 7/2008 R2 KMS Activation ==== | ||
+ | |||
< | < | ||
slmgr.vbs /skms KMS_SERVER: | slmgr.vbs /skms KMS_SERVER: | ||
Line 22: | Line 27: | ||
==== Office 2010 KMS Activation ==== | ==== Office 2010 KMS Activation ==== | ||
+ | |||
< | < | ||
cd " | cd " | ||
Line 29: | Line 35: | ||
===== Network ===== | ===== Network ===== | ||
+ | |||
==== Windows 7 Deny/Accept Ping ==== | ==== Windows 7 Deny/Accept Ping ==== | ||
+ | |||
< | < | ||
Deny ping:netsh firewall set icmpsetting 8 | Deny ping:netsh firewall set icmpsetting 8 | ||
Line 36: | Line 44: | ||
==== Set Nic MTU ==== | ==== Set Nic MTU ==== | ||
+ | |||
< | < | ||
netsh interface ipv4 set subinterface "## | netsh interface ipv4 set subinterface "## | ||
Line 42: | Line 51: | ||
==== Telnet Server ==== | ==== Telnet Server ==== | ||
+ | |||
< | < | ||
Modify port:tlntadmn config port=23 | Modify port:tlntadmn config port=23 | ||
Line 48: | Line 58: | ||
==== Share LAN Network via WLAN on Windows 7 ==== | ==== Share LAN Network via WLAN on Windows 7 ==== | ||
+ | |||
< | < | ||
netsh wlan set hostednetwork ssid=## | netsh wlan set hostednetwork ssid=## | ||
Line 55: | Line 66: | ||
===== Office ===== | ===== Office ===== | ||
+ | |||
==== Outlook Cannot Open Default Folder ==== | ==== Outlook Cannot Open Default Folder ==== | ||
+ | |||
< | < | ||
cd " | cd " | ||
Line 61: | Line 74: | ||
</ | </ | ||
- | ===== Other ===== | + | ===== System |
- | ==== Remove Shortcut' | + | ==== Add "Open Powershell Here" to explorer context menu ==== |
+ | <file reg open_powershell_here.reg> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Open PowerShell Here\command] | ||
+ | @=hex(2): | ||
+ | 00, | ||
+ | 69, | ||
+ | 00, | ||
+ | 65, | ||
+ | 00, | ||
+ | 64, | ||
+ | 00, | ||
+ | 6e, | ||
+ | 00 | ||
+ | </ | ||
+ | ==== Cleanup Winsxs folder | ||
< | < | ||
+ | DISM /online / | ||
+ | </ | ||
+ | ==== Add a new administrator ==== | ||
+ | |||
+ | < | ||
+ | net user hackerzhou xxxxxx /add | ||
+ | net localgroup administrators hackerzhou /add | ||
+ | net user administrator /active:yes | ||
+ | </ | ||
+ | |||
+ | ==== Turn off hibernation on Windows 7 ==== | ||
+ | |||
+ | < | ||
+ | powercfg -h off | ||
+ | </ | ||
+ | |||
+ | ==== Remove Shortcut' | ||
+ | |||
+ | <file reg shortcut.reg> | ||
Windows Registry Editor Version 5.00 | Windows Registry Editor Version 5.00 | ||
Line 70: | Line 118: | ||
[HKEY_CLASSES_ROOT\Piffile] | [HKEY_CLASSES_ROOT\Piffile] | ||
" | " | ||
- | </code> | + | </file> |
+ | |||
+ | ===== Application ===== | ||
+ | ==== PuTTY configuration ==== | ||
+ | |||
+ | <file reg putty.reg> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default Settings] | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ===== Other ===== |
dev/tricks/windows.1376790017.txt.gz · Last modified: 2020/06/06 23:32 (external edit)