Windows: Difference between revisions

From David's Wiki
Created page with " =Bash= Download [https://gitforwindows.org Git for Windows] to get a copy of Git Bash."
 
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:




=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==
How to troubleshoot BSOD (Blue Screen of Death).<br>
* When windows encounters a BSOD, it will create a minidump (.dmp) file in <code>C:\Windows\Minidump</code>.<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],
* 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

Latest revision as of 07:57, 30 November 2024


Bash

Blue Screen

How to troubleshoot BSOD (Blue Screen of Death).

  • When windows encounters a BSOD, it will create a minidump (.dmp) file in C:\Windows\Minidump.
  • Copy out this dump file to somewhere like your desktop.
  • There are various software to open the minidump files such as WinDbg Preview and 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 !analyze -v

Hosts file

Wikipedia: hosts (file)
%SystemRoot%\System32\drivers\etc\hosts

Changing IDE/RAID/VMD to AHCI

Reference
If you are not using Intel RAID, you should be using ACHI instead of IDE or RAID.

  • Run bcdedit /set {current} safeboot minimal in a cmd prompt with admin
  • Change to ACHI in UEFI. On newer boards, it may be known as Intel VMD.
  • Run bcdedit /deletevalue {current} safeboot

Application Management

Winget

Docs Winget is included in App Installer

Chocolatey

Chocolatey is an open source package manager for windows.

Install Chocolatey by following the directions on https://chocolatey.org/install.

# Installs ffmpeg
choco install ffmpeg

# Upgrade all
choco upgrade all

# See installed packages
choco list --localonly

Event Viewer

See Reason for last Restart

  • Go under Windows Logs-System.
  • 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