1. Windows
1.1. Configuration
-
Right-click Start > Programs > Accessories > Command Prompt.
-
Select Properties.
-
Select the Shortcut tab.
-
Click Advanced.
-
Check Run as administrator.
-
Click OK.
-
Click Apply.
-
Click OK.
1.2. Configuration
-
Start Command Prompt.
-
Right-click the title bar and select Defaults.
-
Select the Options tab.
-
Choose Cursor Size > Large.
Buffer Size: 999 Number of Buffers: 4 □ Discard Old Duplicates ■ QuickEdit Mode ■ Insert Mode ■ AutoComplete
-
Select the Font tab.
-
Select Consolas for the font.
-
Check Bold fonts.
-
Select 16 for the size.
-
Select the Layout tab.
Screen Buffer Size Width: 150 Height: 1000 Window Size Width: 150 Height: 45 Window Position ■ Let system position window
-
Select the Colors tab.
-
Choose Screen Text.
-
Select Lime for the color.
-
Click OK.
-
Right-click the title bar and select Properties.
-
Select the Options tab.
-
Choose Cursor Size > Large.
Buffer Size: 999 Number of Buffers: 4 □ Discard Old Duplicates ■ QuickEdit Mode ■ Insert Mode
-
Select the Font tab.
-
Select Consolas for the font.
-
Check Bold fonts.
-
Select 16 for the size.
-
Select the Layout tab.
Screen Buffer Size Width: 150 Height: 1000 Window Size Width: 150 Height: 45 Window Position ■ Let system position window
-
Select the Colors tab.
-
Choose Screen Text.
-
Select Lime for the color.
-
Click OK.
-
Close Command Prompt.
1.3. Configuration of aliases
-
Install Delta Windows Tools
-
Contents of the C:\ProgramData\Delta Software Labs\Windows-Tools\Aliases.txt file.
cd=cd /d $*
-
Contents of the C:\ProgramData\Delta Software Labs\Windows-Tools\Command.cmd file.
@echo off doskey.exe /macrofile=C:\ProgramData\Delta Software Labs\Windows-Tools\Aliases.txt
reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /t REG_SZ /d C:\ProgramData\Delta Software Labs\Windows-Tools\Command.cmd reg query "HKCU\Software\Microsoft\Command Processor" /v Autorun reg query "HKCU\Software\Microsoft\Command Processor"
1.4. Useful Commands
diskmgmt.msc Disk Management gpedit.msc inetcpl.cpl Internet Options lusmgr.msc Local Users and Groups start ms-settings: Windows Settings Windows+I Windows Settings SystemPropertiesProtection.exe System Protection
1.5. Configuration of the PATH system variable
-
Install Git
-
Open Control Panel > System.
-
Select Advanced system settings.
-
Select the Advanced tab.
-
Click Environment Variables.
-
Select the Path system variable.
-
Click Edit.
-
Prepend C:\Program Files\Git\bin; to the Path system variable.
-
Click OK.
-
Click OK.
-
Click OK.
-
Close System.
Enter the following commands at a Command Line.
sh which find where find find --version grep --help
2. Command Prompt
2.1. Installations
msiexec.exe /quiet /a <msi-file>
2.2. Remote Restart
shutdown.exe /r /f /m \\SMRU-DB*-MST /t 0
2.3. Wifi
-
See https://www.windowscentral.com/how-connect-wi-fi-network-windows-10#connect_wifi_cmd.
netsh.exe wlan show profile netsh.exe wlan export profile SMRU-Guest key=clear folder=C:\Tmp netsh.exe wlan add profile SMRU-Dev filename=C:\Tmp\Wi-Fi-SMRU-Guest.xml netsh.exe wlan show profile netsh.exe wlan connect ssid=SMRU-Guest name=SMRU-Guest
2.4. Windows XP Event Viewer
cd c:\windows\system32 eventquery.vbs /?
2.5. Windows 7 Downloads
bitsadmin.exe /transfer "JobName" http://download.url/here.exe C:\destination\here.exe
powershell.exe -command "& { iwr http://www.it1.net/it1_logo2.jpg -OutFile logo.jpg }"
2.6. Windows 7 Environment Variables
-
Start PuTTY.
-
Close PuTTY.
if not defined SMRU_LAN_OUTLET setx SMRU_LAN_OUTLET "-" /m
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "SMRU_LAN_OUTLET" /t REG_SZ /d "-"
2.7. Windows 7 Task Scheduler
schtasks.exe /? schtasks.exe /query | more schtasks.exe /query /tn "pms backup" /v /fo list schtasks.exe /change /tn "pms backup" /tr D:\db_Backup\Scheduled\Backup.bat schtasks.exe /run /? schtasks.exe /run /tn "pms backup" schtasks.exe /change /? | more schtasks.exe /change /tn "pms backup" /rp <new password> schtasks.exe /change /tn "pms backup" /st <HH:MM>