User Tools

Site Tools


dev:tricks:windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:tricks:windows [2014/02/01 11:38] – [PuTTY configuration] hackerzhoudev: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 ====
 +
 <code> <code>
 fsutil file createnew C:\large_file.tmp 1024000000 fsutil file createnew C:\large_file.tmp 1024000000
Line 8: Line 10:
  
 ==== Fast wipe disk securely ==== ==== Fast wipe disk securely ====
 +
 <code> <code>
 cipher /w:<drive_letter>:\ cipher /w:<drive_letter>:\
Line 13: Line 16:
  
 ===== Activation ===== ===== Activation =====
 +
 ==== Windows 7/2008 R2 KMS Activation ==== ==== Windows 7/2008 R2 KMS Activation ====
 +
 <code> <code>
 slmgr.vbs /skms KMS_SERVER:1688 slmgr.vbs /skms KMS_SERVER:1688
Line 22: Line 27:
  
 ==== Office 2010 KMS Activation ==== ==== Office 2010 KMS Activation ====
 +
 <code> <code>
 cd "C:\Program Files (x86)\Microsoft Office\Office14" cd "C:\Program Files (x86)\Microsoft Office\Office14"
Line 29: Line 35:
  
 ===== Network ===== ===== Network =====
 +
 ==== Windows 7 Deny/Accept Ping ==== ==== Windows 7 Deny/Accept Ping ====
 +
 <code> <code>
 Deny ping:netsh firewall set icmpsetting 8 Deny ping:netsh firewall set icmpsetting 8
Line 36: Line 44:
  
 ==== Set Nic MTU ==== ==== Set Nic MTU ====
 +
 <code> <code>
 netsh interface ipv4 set subinterface "##YOUR_INTERFACE##" mtu=1436 store=persistent netsh interface ipv4 set subinterface "##YOUR_INTERFACE##" mtu=1436 store=persistent
Line 42: Line 51:
  
 ==== Telnet Server ==== ==== Telnet Server ====
 +
 <code> <code>
 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 ====
 +
 <code> <code>
 netsh wlan set hostednetwork ssid=##YOUR_SSID## key=##YOUR_PASSWORD## mode=allow netsh wlan set hostednetwork ssid=##YOUR_SSID## key=##YOUR_PASSWORD## mode=allow
Line 55: Line 66:
  
 ===== Office ===== ===== Office =====
 +
 ==== Outlook Cannot Open Default Folder ==== ==== Outlook Cannot Open Default Folder ====
 +
 <code> <code>
 cd "C:\Program Files (x86)\Microsoft Office\Office14" cd "C:\Program Files (x86)\Microsoft Office\Office14"
Line 61: Line 74:
 </code> </code>
  
-===== Other ===== +===== System ===== 
-==== Remove Shortcut's Arrows ====+==== 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):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,
 +  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,
 +  69,00,6e,00,64,00,6f,00,77,00,73,00,50,00,6f,00,77,00,65,00,72,00,53,00,68,
 +  00,65,00,6c,00,6c,00,5c,00,76,00,31,00,2e,00,30,00,5c,00,70,00,6f,00,77,00,
 +  65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,00,78,00,65,00,22,00,20,
 +  00,2d,00,4e,00,6f,00,45,00,78,00,69,00,74,00,20,00,2d,00,57,00,69,00,6e,00,
 +  64,00,6f,00,77,00,53,00,74,00,79,00,6c,00,65,00,20,00,4d,00,61,00,78,00,69,
 +  00,6d,00,69,00,7a,00,65,00,64,00,20,00,2d,00,43,00,6f,00,6d,00,6d,00,61,00,
 +  6e,00,64,00,20,00,22,00,63,00,64,00,20,00,27,00,25,00,31,00,27,00,22,00,00,
 +  00 
 +</file> 
 +==== Cleanup Winsxs folder ====
 <code> <code>
 +DISM /online /Cleanup-Image /SpSuperseded
 +</code>
 +==== Add a new administrator ====
 +
 +<code>
 +net user hackerzhou xxxxxx /add
 +net localgroup administrators hackerzhou /add
 +net user administrator /active:yes
 +</code>
 +
 +==== Turn off hibernation on Windows 7 ====
 +
 +<code>
 +powercfg -h off
 +</code>
 +
 +==== Remove Shortcut's Arrows ====
 +
 +<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]
 "IsShortcut"=- "IsShortcut"=-
-</code>+</file>
  
 +===== Application =====
 ==== PuTTY configuration ==== ==== PuTTY configuration ====
-<file putty.reg>+ 
 +<file reg putty.reg>
 Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00
  
-[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]+[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default Settings]
 "Compression"=dword:00000001 "Compression"=dword:00000001
 "Font"="新宋体" "Font"="新宋体"
Line 111: Line 161:
 "WarnOnClose"=dword:00000000 "WarnOnClose"=dword:00000000
 </file> </file>
 +
 +===== Other =====
dev/tricks/windows.1391254713.txt.gz · Last modified: 2020/06/06 23:32 (external edit)