mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 04:45:57 +03:00
16 lines
434 B
PowerShell
16 lines
434 B
PowerShell
Set-StrictMode -Version latest
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
$info = Get-CimInstance -ClassName win32_operatingsystem
|
|
|
|
$info | format-table CSName
|
|
|
|
$info | format-table LastBootUpTime
|
|
|
|
$info | format-table FreePhysicalMemory, TotalVisibleMemorySize
|
|
|
|
get-wmiobject win32_logicaldisk | format-table `
|
|
Name,`
|
|
@{n="Size [GB]";e={[math]::truncate($_.size / 1GB)}},`
|
|
@{n="Free [GB]";e={[math]::truncate($_.freespace / 1GB)}}
|