dev:tricks:windows
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:tricks:windows [2013/08/17 14:43] – created hackerzhou | dev:tricks:windows [2020/06/06 23:32] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Windows |
+ | |||
+ | ===== Disk ===== | ||
- | ===== IO ===== | ||
==== Fast create big file ==== | ==== Fast create big file ==== | ||
- | <sxh> | + | |
+ | <code> | ||
fsutil file createnew C: | fsutil file createnew C: | ||
- | </sxh> | + | </code> |
==== Fast wipe disk securely ==== | ==== Fast wipe disk securely ==== | ||
- | <sxh> | + | |
+ | <code> | ||
cipher / | cipher / | ||
- | </sxh> | + | </code> |
===== Activation ===== | ===== Activation ===== | ||
+ | |||
==== Windows 7/2008 R2 KMS Activation ==== | ==== Windows 7/2008 R2 KMS Activation ==== | ||
- | <sxh> | + | |
+ | <code> | ||
slmgr.vbs /skms KMS_SERVER: | slmgr.vbs /skms KMS_SERVER: | ||
slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH | slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH | ||
# Can be found at http:// | # Can be found at http:// | ||
slmgr.vbs /ato | slmgr.vbs /ato | ||
- | </sxh> | + | </code> |
==== Office 2010 KMS Activation ==== | ==== Office 2010 KMS Activation ==== | ||
- | <sxh> | + | |
+ | <code> | ||
cd " | cd " | ||
cscript ospp.vbs / | cscript ospp.vbs / | ||
cscript ospp.vbs /act | cscript ospp.vbs /act | ||
- | </sxh> | + | </code> |
===== Network ===== | ===== Network ===== | ||
+ | |||
==== Windows 7 Deny/Accept Ping ==== | ==== Windows 7 Deny/Accept Ping ==== | ||
- | <sxh> | + | |
+ | <code> | ||
Deny ping:netsh firewall set icmpsetting 8 | Deny ping:netsh firewall set icmpsetting 8 | ||
Accept ping:netsh firewall set icmpsetting 8 disable | Accept ping:netsh firewall set icmpsetting 8 disable | ||
- | </sxh> | + | </code> |
==== Set Nic MTU ==== | ==== Set Nic MTU ==== | ||
- | <sxh> | + | |
+ | <code> | ||
netsh interface ipv4 set subinterface "## | netsh interface ipv4 set subinterface "## | ||
netsh interface ipv4 show subinterface | netsh interface ipv4 show subinterface | ||
- | </sxh> | + | </code> |
==== Telnet Server ==== | ==== Telnet Server ==== | ||
- | <sxh> | + | |
+ | <code> | ||
Modify port:tlntadmn config port=23 | Modify port:tlntadmn config port=23 | ||
Remove NTLM authentication:tlntadmn localhost config sec = -NTLM | Remove NTLM authentication:tlntadmn localhost config sec = -NTLM | ||
- | </sxh> | + | </code> |
- | ==== Share LAN network | + | ==== Share LAN Network |
- | <sxh> | + | |
+ | <code> | ||
netsh wlan set hostednetwork ssid=## | netsh wlan set hostednetwork ssid=## | ||
netsh wlan start hostednetwork | netsh wlan start hostednetwork | ||
netsh wlan stop hostednetwork | netsh wlan stop hostednetwork | ||
- | </sxh> | + | </code> |
+ | |||
+ | ===== Office ===== | ||
+ | |||
+ | ==== Outlook Cannot Open Default Folder ==== | ||
+ | |||
+ | < | ||
+ | cd " | ||
+ | outlook /importprf .\.prf | ||
+ | </ | ||
+ | |||
+ | ===== System ===== | ||
+ | ==== 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 / | ||
+ | </ | ||
+ | |||
+ | ==== Turn off hibernation on Windows 7 ==== | ||
+ | |||
+ | < | ||
+ | powercfg -h off | ||
+ | </ | ||
+ | |||
+ | ==== Remove Shortcut' | ||
+ | |||
+ | <file reg shortcut.reg> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_CLASSES_ROOT\lnkfile] | ||
+ | " | ||
+ | [HKEY_CLASSES_ROOT\Piffile] | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | ===== 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.1376750599.txt.gz · Last modified: 2020/06/06 23:32 (external edit)