Windows utilities and commands

Windows UpdateBack to top

  • control update - open windows update #1
  • wuauclt /detectnow /updatenow - open windows update #2
  • Windows key + i - Open Windows Settings -> Choose Update & Security-> Choose Windows Update from the left hand menu update #3

Control Panel Utilities

  • ncpa.cpl - Open network connections from command line
  • control printers - open classic printer dialog
  • lusrmgr.msc - Open Advanced Local Users and Groups
  • rsop.msc - Policies applied to a Windows 10 computer
  • wf.msc - open firewall settings
  • appwiz.cpl - Add Remove Programs
  • control.exe /name Microsoft.NetworkAndSharingCenter - open "Network and Sharing Center"

Windows other variaBack to top

  • winver or systeminfo - open windows version
  • Win + P - select videorojector picture
  • osk - open on screen Keyboard

Windows + X & ...Back to top

  • Windows + X & T = Task Manager
  • Windows + X & N = Windows Settings
  • Windows + X & U =Shut down/Sign Out
  • Windows + X & W = Network Status
  • Windows + X & M = Device Manager

GPO commandsBack to top

whoami /groups (! use elevated cmd prompt)
gpupdate /force
gpresult /r
gpresult /r /v /scope:user
gpresult /r /v /scope:computer

PowershellBack to top

# To runs crips as Administrator
set-executionpolicy remotesigned

# check PS version
$PSVersionTable.PSVersion

Windows scriptsBack to top

Copy from Windows to LinuxBack to top

set PATH="C:\Program Files (x86)\PuTTY"
pscp ISPConfig-3.0.5.4p9.tar.gz root@vps.magic.ee:/root/
#copy other way around
set PATH="C:\Program Files (x86)\PuTTY"
pscp -v root@192.168.100.110:/var/games/minecraft/servers/Paradise.tar.gz c:/lan

Rename files to lowercaseBack to top

 for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")

Generate Many Files of a Particular SizeBack to top

https://thebackroomtech.com/2009/01/16/howto-generate-many-files-of-a-particular-size-in-windows/

will create 2,500 files of 131072 bytes (128KB) named C1.tmp, C2.tmp, C3,tmp, etc. For /L %i in (1,1,2500) do fsutil file createnew C%i.tmp 131072

will create 1,000 files of 1048576 bytes (1024KB or 1MB) named D1.tmp, D2.tmp, D3,tmp, etc. For /L %i in (1,1,1000) do fsutil file createnew D%i.tmp 1048576

Access your remote files over SFTP directly from Windows Explorer and 'My Computer'Back to top

http://www.swish-sftp.org/ https://sourceforge.net/projects/swish/postdownload?source=dlp

Syntax highlighting example

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));