This commit is contained in:
2026-05-11 09:15:08 +02:00
parent 9bec2b9e42
commit 404ee3fec4
641 changed files with 416825 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
[SystemInformation]@{
SoftwareInformation = [SoftwareInformation]@{
Hostname = hostname
OperatingSystem = (Get-Content /etc/os-release | Select-String -Pattern '^PRETTY_NAME=\"(.*)\"$').Matches.Groups[1].Value
BuildNumber = 'Version {0} (Build {1}.{2})' -f $v.DisplayVersion, $v.CurrentBuildNumber, $v.UBR
InstallationLanguage = (($(locale) | Where-Object { $_ -match "LANG=" }) -split '=')[1]
SystemUptime = uptime -p
OSArchitecture = lscpu | awk '/Architecture/ {print $2}'
KernelVersion = uname -r
}
HardwareInformation = [HardwareInformation]@{
BIOSVersion = dmidecode -s bios-version
SystemSKU = (dmidecode -t system)[12] | cut -d ':' -f 2 | xargs
SystemSerialnumber = (dmidecode -t system)[9] | cut -d ':' -f 2 | xargs
SystemManufacturer = (dmidecode -t system)[6] | cut -d ':' -f 2 | xargs
SystemModel = dmidecode -s system-product-name
FreeDiskSpace = "{0:N1} GB" -f ((Get-PSDrive | Where-Object { $_.Name -eq '/' }).Free / 1GB)
FreePhysicalMemory = "{0:N1} GB" -f (( -split (Get-Content /proc/meminfo | Where-Object { $_ -match 'MemFree:' }))[1] / 1MB)
}
}