Windows: Difference between revisions

 
(26 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Bash==
==Bash==
Download [https://gitforwindows.org Git for Windows] to get a copy of Git Bash.


* [https://gitforwindows.org Git for Windows] - this is a modified version of MSYS2
* [https://www.msys2.org/ MSYS2]
* [[Cygwin]]
* [[Windows Subsystem for Linux]] - WSL2 is a full linux VM


==Blue Screen==
==Blue Screen==
How to troubleshoot BSOD (Blue Screen of Death).<br>
How to troubleshoot BSOD (Blue Screen of Death).<br>
* When windows encounters a BSOD, it will create a minidump (.dmp) file in
* When windows encounters a BSOD, it will create a minidump (.dmp) file in <code>C:\Windows\Minidump</code>.<br>
<code>C:\Windows\Minidump</code>.<br>
* Copy out this dump file to somewhere like your desktop.<br>
* Copy out this dump file to somewhere like your desktop.<br>
* There are various software to open the minidump files such as [https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86 WinDbg Preview] and [https://www.nirsoft.net/utils/blue_screen_view.html BlueScreenView],
* There are various software to open the minidump files such as [https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86 WinDbg Preview] and [https://www.nirsoft.net/utils/blue_screen_view.html BlueScreenView],
* Typically, blue screens are caused by driver crashes in my experience. Windbg preview will point out the driver which crashed from the minidump.
===WinDbg Preview===
How to use WinDbg preview
* Open your minidump
* Type <code>!analyze -v</code>
==Hosts file==
[[Wikipedia: hosts (file)]]<br>
<code>%SystemRoot%\System32\drivers\etc\hosts</code>
==Changing IDE/RAID/VMD to AHCI==
[http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/ Reference]<br>
If you are not using Intel RAID, you should be using ACHI instead of IDE or RAID.<br>
* Run <code>bcdedit /set {current} safeboot minimal</code> in a cmd prompt with admin
* Change to ACHI in UEFI. On newer boards, it may be known as Intel VMD.
* Run <code>bcdedit /deletevalue {current} safeboot</code>
==Application Management==
===Winget===
[https://learn.microsoft.com/en-us/windows/package-manager/winget/ Docs]
Winget is included in [https://www.microsoft.com/p/app-installer/9nblggh4nns1#activetab=pivot:overviewtab App Installer]
===Chocolatey===
[https://chocolatey.org/ Chocolatey] is an open source package manager for windows.<br>
Install Chocolatey by following the directions on [https://chocolatey.org/install https://chocolatey.org/install].
<pre>
# Installs ffmpeg
choco install ffmpeg
# Upgrade all
choco upgrade all
# See installed packages
choco list --localonly
</pre>
==Event Viewer==
===See Reason for last Restart===
* Go under <code>Windows Logs</code>-<code>System</code>.
* Filter with Event sources: User32
==Windows Update==
===Prevent Auto-restarts===
https://superuser.com/questions/1843873/windows-11-seems-to-have-disabled-all-ways-to-get-around-auto-update-restarts-i