Table of Contents
Check windows version
Set environment variables
Using the run prompt (windows key + r)
Using the cmd prompt
unset environment variable
To temporarily unset an environment variable
This will remove the variable from the current environment (not permanently).
dump environment variables
user environment variables
reg query HKEY_CURRENT_USER\Environment > user_env_vars.txt
system environment variables
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" > system_env_vars.txt
tested on | windows 7
script - dump_env_vars.bat (github.com/KamarajuKusumanchi)
Ref - https://stackoverflow.com/questions/573817/where-are-environment-variables-stored-in-registry
list of installed packages
Control Panel → Programs and Features shows the list of installed packages.
Tested on | Windows 10 Enterprise
create a file starting with dot in explorer
To create a file with a dot at the beginning in explorer, add another dot at the end. Like .condarc. . Explorer will allow it and remove the trailing dot.
last reboot time
tags | when was a windows machine rebooted, check when a windows machine was rebooted.
In git bash
systeminfo | grep -i "boot time"
In the Windows run box
cmd /k systeminfo | find /i "boot time"
In windows shell
systeminfo | find /i "boot time"
systeminfo | find "System Boot Time"
Works in Windows 7, Windows 2012.
Linux to Windows
tags | equivalent of foo in windows
|rm -rf “path”||rd /s /q “path”||https://stackoverflow.com/questions/97875/rm-rf-equivalent-for-windows|
software I am currently evaluating
- tabbed explorer windows
- started using it from 2020-11
- Using 64-bit version of 1.3.5
Control Panel\Network and Internet\Network and Sharing Center -> View your active networks -> click the link after "Connections:" -> which will be something like Wi-Fi (SSID) -> Wireless Properties -> Security -> Network security key -> Show characters -> enter the admin password
clear recent files list
batch file calling another batch file
call foo.bat call bar.bat