ITPreview
Open in TheBrain

Windows Commands

Recovery Repair Tools

map

fs0:efi\microsoft\bootmgfw.efi

Boot Repair Commands:

bootrec /fixmbr - Repairs the Master Boot Record

bootrec /fixboot - Writes new boot sector to system partition

bootrec /scanos - Scans for Windows installations

bootrec /rebuildbcd - Rebuilds Boot Configuration Data

bcdboot C:\Windows - Recreates boot files

C:\> explorer - launch explorer in command prompt

Create Registry Key

https://powershellcommands.com/powershell-create-registry-key

New-Item -Path "HKCU:\Software\MyNewKey" -Force

New-Item`: Used to create new registry keys.

`New-ItemProperty`: Used to add new values to a key.

`Set-ItemProperty`: Utilized for modifying existing values.

`Get-Item`: Retrieves the contents of a registry key.

`Remove-Item` and `Remove-ItemProperty`: Used for deleting keys and values, respectively.

New-Item -Path "HKCU:\Software\MyCompany" -Name "MyNewKey"
New-Item -Path "HKCU:\Software\MyCompany" -Name "MyNewKey"
New-ItemProperty -Path "HKCU:\Software\MyCompany\MyNewKey" -Name "MyValue" -Value "MyData" -PropertyType String
Set-ItemProperty -Path "HKCU:\Software\MyCompany\MyNewKey" -Name "MyValue" -Value "NewData"

-Path` indicates where the target key is located.

-Name specifies which value you want to change.

-Value sets the new data.

if (-not (Test-Path "HKCU:\Software\MyCompany\MyNewKey")) {
    New-Item -Path "HKCU:\Software\MyCompany" -Name "MyNewKey"
}
Get-CimInstance

Get-CimInstance -ClassName CIM_ComputerSystem | Select-Object Manufacturer, Model - in powershell

(get-ciminstance -classname Win32_baseboard).serialnumber

(get-ciminstance -classname Win32_computersystem).manufacturer

(get-ciminstance -classname Win32_processor)

taskkill /f /im calc.exe - How to close multiple tasks in Task Manager