From ee21ad3b7a344540c483335a1abf8a68f800702f Mon Sep 17 00:00:00 2001 From: admin_tan Date: Thu, 11 Jun 2026 13:07:32 +0200 Subject: [PATCH] Actualiser Set-WallpaperPowerBGInfoCORPORATE.ps1 --- Set-WallpaperPowerBGInfoCORPORATE.ps1 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Set-WallpaperPowerBGInfoCORPORATE.ps1 b/Set-WallpaperPowerBGInfoCORPORATE.ps1 index ba99f0d..a00a31c 100644 --- a/Set-WallpaperPowerBGInfoCORPORATE.ps1 +++ b/Set-WallpaperPowerBGInfoCORPORATE.ps1 @@ -27,6 +27,10 @@ foreach ($Disk in $Disks) { -Value "$PctFree% free" ` -Detail "$TotalGB GB total" ` -Progress $Progress ` + -TitleSize 10 ` + -TextSize 13 ` + -SubTitleSize 9 ` + -Density Compact ` -Accent $Color } } @@ -178,17 +182,17 @@ $palette = @{ $tiles = @( # --- GAUCHE --- - New-BGInfoVisualCanvasTile -Side Left -IconKind Computer -SurfaceStyle Raised -Label HOSTNAME -Value '{{HostName}}' -TextSize 16 -Accent '#49b1d7FF' - New-BGInfoVisualCanvasTile -Side Left -IconKind Computer -SurfaceStyle Raised -Label 'SERVER ROLE' -Value $RoleValue -Detail $RoleDetail -TextSize 16 -Accent '#ffa340FF' - New-BGInfoVisualCanvasTile -Side Left -IconKind OperatingSystem -SurfaceStyle Raised -Label 'OPERATING SYSTEM' -Value $OSName -Detail $OSDetail -TextSize 16 -Accent '#00698eFF' - New-BGInfoVisualCanvasTile -Side Left -IconKind Network -SurfaceStyle Raised -Label 'IP ADDRESS' -Value '{{IPv4Address}}' -Detail 'Management IP Address' -TextSize 16 -Accent '#49b1d7FF' - New-BGInfoVisualCanvasTile -Side Left -IconKind User -SurfaceStyle Raised -Label 'LOGGED USER' -Value '{{UserName}}' -Detail 'Active Session' -TextSize 16 -Accent '#16A34AFF' + New-BGInfoVisualCanvasTile -Side Left -IconKind Computer -SurfaceStyle Raised -Label HOSTNAME -Value '{{HostName}}' -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#49b1d7FF' + New-BGInfoVisualCanvasTile -Side Left -IconKind Computer -SurfaceStyle Raised -Label 'SERVER ROLE' -Value $RoleValue -Detail $RoleDetail -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#ffa340FF' + New-BGInfoVisualCanvasTile -Side Left -IconKind OperatingSystem -SurfaceStyle Raised -Label 'OPERATING SYSTEM' -Value $OSName -Detail $OSDetail -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#00698eFF' + New-BGInfoVisualCanvasTile -Side Left -IconKind Network -SurfaceStyle Raised -Label 'IP ADDRESS' -Value '{{IPv4Address}}' -Detail 'Management IP Address' -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#49b1d7FF' + New-BGInfoVisualCanvasTile -Side Left -IconKind User -SurfaceStyle Raised -Label 'LOGGED USER' -Value '{{UserName}}' -Detail 'Active Session' -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#16A34AFF' # --- DROITE --- - New-BGInfoVisualCanvasTile -Side Right -IconKind Cpu -SurfaceStyle Raised -Label 'CPU LOAD' -Value "$CpuLoad% active" -Detail "$TotalCores logical cores" -TextSize 16 -Accent '#49b1d7FF' - New-BGInfoVisualCanvasTile -Side Right -IconKind Memory -SurfaceStyle Raised -Label 'MEMORY USE' -Value "$RamUsedGB GB used" -Detail "$TotalRamGB GB installed" -TextSize 16 -Accent '#49b1d7FF' + New-BGInfoVisualCanvasTile -Side Right -IconKind Cpu -SurfaceStyle Raised -Label 'CPU LOAD' -Value "$CpuLoad% active" -Detail "$TotalCores logical cores" -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#49b1d7FF' + New-BGInfoVisualCanvasTile -Side Right -IconKind Memory -SurfaceStyle Raised -Label 'MEMORY USE' -Value "$RamUsedGB GB used" -Detail "$TotalRamGB GB installed" -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent '#49b1d7FF' ) + $DiskTiles + @( - New-BGInfoVisualCanvasTile -Side Right -IconKind Shield -SurfaceStyle Raised -Label 'PATCH STATUS' -Value $PatchValue -Detail $PatchDetail -Progress $PatchProgress -TextSize 16 -Accent $PatchColor + New-BGInfoVisualCanvasTile -Side Right -IconKind Shield -SurfaceStyle Raised -Label 'PATCH STATUS' -Value $PatchValue -Detail $PatchDetail -Progress $PatchProgress -TitleSize 10 -TextSize 13 -SubTitleSize 9 -Density Compact -Accent $PatchColor ) # ====================================================================