Windows - yenbohuang/techNotes GitHub Wiki

Send Ctrl + Alt + Del when using RDP

Run osk.exe, press Ctrl and Alt on physical keyboard, then click at Del on On Screen Keyboard (OSK).

See the follow link for more details:

Enable remote desktop services

netsh firewall set service remotedesktop enable
netsh firewall set service remoteadmin enable

Network

Finding port in use

netstat -a -b

See details on http://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows

Find hostname by IP address

nbtstat -a <IP address>

Useful ipconfig commands

  • Displays the full TCP/IP configuration for all adapters.
ipconfig /all
  • Flushes and resets the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.
ipconfig /flushdns
  • Sends a DHCPRELEASE message to the DHCP server to release the current DHCP configuration and discard the IP address configuration for either all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included.
ipconfig /release
  • Renews DHCP configuration for all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included.
ipconfig /renew

See details on https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ipconfig.mspx?mfr=true

Sharing Files by Bluetooth

The speed is very slow for big files, but it works.

Sharing Files by Mobile Hotspot

  • Add a share folder on host computer.
  • Open "Settings -> Network & Internet -> Mobile Hotspot" on host computer.
    • Disable "Turn on Remotely".
  • Use ipconfig and know the host computer IP address.
  • Connect guest computer to host hotspot by Wi-Fi and access the shared folder (e.g., "\\192.168.137.1").

https://support.microsoft.com/en-us/help/4027762/windows-use-your-pc-as-a-mobile-hotspot

Lock screen by command line

C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation

See details on http://superuser.com/questions/838810/how-to-lock-screen-from-command-line-in-windows-8-1

Show message

msg %username% Your message here

See details on https://superuser.com/questions/1278006/how-to-display-a-msgbox-directly-from-cmd.

Disabling startup programs

msconfig

See details on https://kb.wisc.edu/helpdesk/page.php?id=1868

Shortcuts

⚠️ **GitHub.com Fallback** ⚠️