From 249c521b7d5358cacba527fc118cfe905a0349e6 Mon Sep 17 00:00:00 2001 From: Jonathan Colon Date: Fri, 10 Oct 2025 11:59:39 -0400 Subject: [PATCH] Update author information to 'AsBuiltReport Community' and upgrade workflow actions --- .github/workflows/Release.yml | 6 ++-- AsBuiltReport.System.Resources.psd1 | 4 +-- Src/Private/Get-AbrDate.ps1 | 2 +- Src/Private/Get-AbrPSHost.ps1 | 2 +- Src/Private/Get-AbrProcessInfo.ps1 | 2 +- Src/Private/Get-AbrTimeZone.ps1 | 2 +- Src/Private/Get-AbrUptime.ps1 | 2 +- Src/Private/Get-SystemUptime.ps1 | 32 +++++++++++++++++-- .../Invoke-AsBuiltReport.System.Resources.ps1 | 2 +- 9 files changed, 40 insertions(+), 14 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index faa9803..3d6cc40 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -6,9 +6,9 @@ on: jobs: publish-to-gallery: - runs-on: windows-2019 + runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set PSRepository to Trusted for PowerShell Gallery shell: pwsh run: | @@ -45,7 +45,7 @@ jobs: needs: publish-to-gallery runs-on: ubuntu-latest steps: - - uses: zentered/bluesky-post-action@v0.2.0 + - uses: zentered/bluesky-post-action@v0.3.0 with: post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #System #Resources #AsBuiltReport #PowerShell" env: diff --git a/AsBuiltReport.System.Resources.psd1 b/AsBuiltReport.System.Resources.psd1 index 42717d8..8642e8e 100644 --- a/AsBuiltReport.System.Resources.psd1 +++ b/AsBuiltReport.System.Resources.psd1 @@ -21,13 +21,13 @@ GUID = 'f930270b-607d-422b-bd94-b6665bcc5b96' # Author of this module - Author = 'Jonathan Colon' + Author = 'AsBuiltReport Community' # Company or vendor of this module # CompanyName = 'Unknown' # Copyright statement for this module - Copyright = '(c) 2025 Jonathan Colon. All rights reserved.' + Copyright = '(c) 2025 AsBuiltReport. All rights reserved.' # Description of the functionality provided by this module Description = 'A PowerShell module to generate an as built report on the configuration of System Resources.' diff --git a/Src/Private/Get-AbrDate.ps1 b/Src/Private/Get-AbrDate.ps1 index 1f23457..c5c96e5 100644 --- a/Src/Private/Get-AbrDate.ps1 +++ b/Src/Private/Get-AbrDate.ps1 @@ -6,7 +6,7 @@ function Get-AbrDate { .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport .EXAMPLE diff --git a/Src/Private/Get-AbrPSHost.ps1 b/Src/Private/Get-AbrPSHost.ps1 index 0f41feb..9c1c65e 100644 --- a/Src/Private/Get-AbrPSHost.ps1 +++ b/Src/Private/Get-AbrPSHost.ps1 @@ -7,7 +7,7 @@ function Get-AbrPSHost { .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport .EXAMPLE diff --git a/Src/Private/Get-AbrProcessInfo.ps1 b/Src/Private/Get-AbrProcessInfo.ps1 index 1cb3b9f..dedbe80 100644 --- a/Src/Private/Get-AbrProcessInfo.ps1 +++ b/Src/Private/Get-AbrProcessInfo.ps1 @@ -7,7 +7,7 @@ function Get-AbrProcessInfo { .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport .EXAMPLE diff --git a/Src/Private/Get-AbrTimeZone.ps1 b/Src/Private/Get-AbrTimeZone.ps1 index 710e0cf..c8ab060 100644 --- a/Src/Private/Get-AbrTimeZone.ps1 +++ b/Src/Private/Get-AbrTimeZone.ps1 @@ -6,7 +6,7 @@ function Get-AbrTimeZone { .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport .EXAMPLE diff --git a/Src/Private/Get-AbrUptime.ps1 b/Src/Private/Get-AbrUptime.ps1 index ad1e63b..60219df 100644 --- a/Src/Private/Get-AbrUptime.ps1 +++ b/Src/Private/Get-AbrUptime.ps1 @@ -7,7 +7,7 @@ function Get-AbrUptime { .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport .EXAMPLE diff --git a/Src/Private/Get-SystemUptime.ps1 b/Src/Private/Get-SystemUptime.ps1 index 74cc25d..e12e2c6 100644 --- a/Src/Private/Get-SystemUptime.ps1 +++ b/Src/Private/Get-SystemUptime.ps1 @@ -1,5 +1,31 @@ function Get-SystemUptime { - $operatingSystem = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime - $Uptime = "$((Get-Date) - ($operatingSystem.LastBootUpTime))" - return [TimeSpan]$Uptime + <# + .SYNOPSIS + Used by As Built Report to retrieve last boot uptime information + .DESCRIPTION + + .NOTES + Version: 0.1.1 + Author: AsBuiltReport Community + Twitter: @AsBuiltReport + Github: AsBuiltReport + .EXAMPLE + + .LINK + + #> + [CmdletBinding()] + [OutputType([TimeSpan])] + param ( + ) + + begin {} + + process { + $operatingSystem = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime + $Uptime = "$((Get-Date) - ($operatingSystem.LastBootUpTime))" + return [TimeSpan]$Uptime + } + + end {} } \ No newline at end of file diff --git a/Src/Public/Invoke-AsBuiltReport.System.Resources.ps1 b/Src/Public/Invoke-AsBuiltReport.System.Resources.ps1 index e039c08..4b26f63 100644 --- a/Src/Public/Invoke-AsBuiltReport.System.Resources.ps1 +++ b/Src/Public/Invoke-AsBuiltReport.System.Resources.ps1 @@ -6,7 +6,7 @@ function Invoke-AsBuiltReport.System.Resources { Documents the configuration of System Resources in Word/HTML/Text formats using PScribo. .NOTES Version: 0.1.1 - Author: AsBuiltReport Organization + Author: AsBuiltReport Community Twitter: @AsBuiltReport Github: AsBuiltReport Credits: Iain Brighton (@iainbrighton) - PScribo module