User Tools

Site Tools


windows_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows_notes [2021/01/27 12:59] – [wifi password] rajuwindows_notes [2023/11/24 19:59] (current) – [search button in taskbar not working] raju
Line 1: Line 1:
 ===== dummy ===== ===== dummy =====
 +==== search button in taskbar not working ====
 +Symptom: The search button in the task bar does not respond to the keyboard.
 +
 +Fix: Reboot the search process
 +
 +ctrl+alt+del -> Task Manager -> Processes -> Search -> Search -> End Task
 +
 +Ref:- https://www.reddit.com/r/Windows10/comments/317gce/windows_10_search_bar_not_working/
 +
 +==== wifi password ====
 +  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
 +
 +==== Check windows version ====
 +<code>
 +winver
 +</code>
 +
 +==== Set environment variables ====
 +
 +Using the run prompt (windows key + r)
 +<code>
 +rundll32 sysdm.cpl,EditEnvironmentVariables
 +</code>
 +
 +Using the cmd prompt
 +<code>
 +C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
 +</code>
 +
 +==== unset environment variable ====
 +To temporarily unset an environment variable
 +<code>
 +set FOOBAR=
 +</code>
 +
 +This will remove the variable from the current environment (not permanently).
 +
 +Ref:- https://stackoverflow.com/questions/13222724/command-line-to-remove-an-environment-variable-from-the-os-level-configuration
 +
 +==== dump environment variables ====
 +user environment variables
 +<code>
 +reg query HKEY_CURRENT_USER\Environment > user_env_vars.txt
 +</code>
 +
 +system environment variables
 +<code>
 +reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" > system_env_vars.txt
 +</code>
 +
 +tested on | windows 7
 +
 +script - [[https://github.com/KamarajuKusumanchi/rutils/blob/master/bin/windows/dump_env_vars.bat | dump_env_vars.bat]] (github.com/KamarajuKusumanchi)
 +
 +Ref - https://stackoverflow.com/questions/573817/where-are-environment-variables-stored-in-registry
 +
 +==== refresh environment variables ====
 +tags | git bash reread environment variables
 +
 +If you update an environment variable and want to use the new value in an existing git bash session, 
 + download the refreshenv.sh script from https://github.com/badrelmers/RefrEnv and call it from bash with ''source /path/to/refrenv.sh''
 +
 +Tested it on:
 +  * git bash is running inside conemu 191012 <code>$ git --version
 +git version 2.34.1.windows.1
 +$ bash --version
 +GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
 +</code>
 +  * OS: Windows 10 Enterprise
 +==== 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.
 +
 +Ref: https://superuser.com/questions/64471/create-rename-a-file-folder-that-begins-with-a-dot-in-windows
 +==== last reboot time ====
 +tags | when was a windows machine rebooted, check when a windows machine was rebooted.
 +
 +In git bash
 +<code>
 +systeminfo | grep -i "boot time"
 +</code>
 +
 +In the Windows run box
 +<code>
 +cmd /k systeminfo | find /i "boot time"
 +</code>
 +
 +In windows shell
 +<code>
 +systeminfo | find /i "boot time"
 +</code>
 +or
 +<code>
 +systeminfo | find "System Boot Time"
 +</code>
 +
 +Works in Windows 7, Windows 2012.
 +
 +Ref:-
 +  * https://serverfault.com/questions/159612/windows-server-last-reboot-time
 +  * https://superuser.com/questions/523726/how-can-i-find-out-when-windows-was-last-restarted
 +  * https://www.howtogeek.com/tips/how-to-tell-when-your-windows-pc-was-restarted-last/
 +
 ==== Linux to Windows ==== ==== Linux to Windows ====
 tags | equivalent of foo in windows tags | equivalent of foo in windows
Line 7: Line 118:
 | rm | del | | | rm | del | |
 | rm -rf "path" | rd /s /q "path" | https://stackoverflow.com/questions/97875/rm-rf-equivalent-for-windows | | rm -rf "path" | rd /s /q "path" | https://stackoverflow.com/questions/97875/rm-rf-equivalent-for-windows |
- 
  
 ==== software I am currently evaluating ==== ==== software I am currently evaluating ====
Line 17: Line 127:
       * Using 64-bit version of 1.3.5       * Using 64-bit version of 1.3.5
  
-==== wifi password ==== +==== clear recent files list ==== 
-  Control Panel\Network and Internet\Network and Sharing Center +https://www.businessinsider.com/how-to-clear-recent-files-windows-10
-  -> 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+
  
 ===== batch script ==== ===== batch script ====
windows_notes.1611752376.txt.gz · Last modified: 2021/01/27 12:59 by raju