Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samk13/powershell-notes
https://github.com/samk13/powershell-notes
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/samk13/powershell-notes
- Owner: Samk13
- Created: 2024-01-10T15:15:05.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-18T08:37:29.000Z (7 months ago)
- Last Synced: 2024-04-18T10:24:18.622Z (7 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```