Update modules from WinAPI

This commit is contained in:
Alex Kup 2024-02-06 15:15:07 +03:00 committed by GitHub
parent 31e13d4de1
commit 320872b22c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 192 additions and 165 deletions

View file

@ -1,8 +1,14 @@
function Get-Software {
Get-CimInstance Win32_Product | Select-Object Name,
Version,
Vendor,
InstallDate,
InstallLocation,
InstallSource
function Get-Software {
Get-CimInstance Win32_Product | Sort-Object -Descending InstallDate | Select-Object Name,
Version,
Vendor,
@{
name="InstallDate";expression={
[datetime]::ParseExact($_.InstallDate, "yyyyMMdd", $null).ToString("dd.MM.yyyy")
}
},
InstallLocation,
InstallSource,
PackageName,
LocalPackage
}