User Tools

Site Tools


dev:tricks:windows

This is an old revision of the document!


Tricks in Windows

IO

Fast create big file

<sxh> fsutil file createnew C:\large_file.tmp 1024000000 </sxh>

Fast wipe disk securely

<sxh> cipher /w:<drive_letter>:\ </sxh>

Activation

Windows 7/2008 R2 KMS Activation

<sxh> slmgr.vbs /skms KMS_SERVER:1688 slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH # Can be found at http://technet.microsoft.com/en-us/library/ff793421.aspx slmgr.vbs /ato </sxh>

Office 2010 KMS Activation

<sxh> cd “C:\Program Files (x86)\Microsoft Office\Office14” cscript ospp.vbs /sethst:KMS_SERVER cscript ospp.vbs /act </sxh>

Network

Windows 7 Deny/Accept Ping

<sxh> Deny ping:netsh firewall set icmpsetting 8 Accept ping:netsh firewall set icmpsetting 8 disable </sxh>

Set Nic MTU

<sxh> netsh interface ipv4 set subinterface “##YOUR_INTERFACE##” mtu=1436 store=persistent netsh interface ipv4 show subinterface </sxh>

Telnet Server

<sxh> Modify port:tlntadmn config port=23 Remove NTLM authentication:tlntadmn localhost config sec = -NTLM </sxh>

Share LAN network via WLAN on Windows 7

<sxh> netsh wlan set hostednetwork ssid=##YOUR_SSID## key=##YOUR_PASSWORD## mode=allow netsh wlan start hostednetwork netsh wlan stop hostednetwork </sxh>

dev/tricks/windows.1376750599.txt.gz · Last modified: 2020/06/06 23:32 (external edit)