Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samk13/powershell-notes


https://github.com/samk13/powershell-notes

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Powershell commands

## Get motherboard model

```powershell
Get-WmiObject win32_baseboard | Select-Object -Property Product
```

## Get the maximum capacity of the MB RAM in GB

```powershell
Get-WmiObject -Class Win32_PhysicalMemoryArray | Select-Object -Property @{Name="MaxCapacityGB";Expression={$_.MaxCapacity / 1MB}}
```

## Get the current RAM installed

```powershell
Get-WmiObject -Class Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Select-Object @{Name="TotalGB"; Expression={ $_.Sum / 1GB }}
```

## Get the list of connected storage devices

```powershell
Get-PhysicalDisk | Select-Object MediaType, BusType, Model
```

## Get the current graphic driver version

```powershell
Get-WmiObject Win32_VideoController | Select-Object Name, DriverVersion
# or
Get-WmiObject Win32_VideoController | Select-Object -Property Name, DriverVersion
```

````log
Name DriverVersion
---- -------------
NVIDIA GeForce RTX 4090 SUPER 31.0.15.4633
```

# Windows issues

## Windows security not openening
- Open Command Prompt and execute:
```powershell
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
```