Skip to content

Commit aef423b

Browse files
authored
Merge pull request #1 from rebelinux/dev
Misc improvements
2 parents b705ce8 + 249c521 commit aef423b

File tree

9 files changed

+40
-14
lines changed

9 files changed

+40
-14
lines changed

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66

77
jobs:
88
publish-to-gallery:
9-
runs-on: windows-2019
9+
runs-on: windows-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- name: Set PSRepository to Trusted for PowerShell Gallery
1313
shell: pwsh
1414
run: |
@@ -45,7 +45,7 @@ jobs:
4545
needs: publish-to-gallery
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: zentered/bluesky-post-action@v0.2.0
48+
- uses: zentered/bluesky-post-action@v0.3.0
4949
with:
5050
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"
5151
env:

AsBuiltReport.System.Resources.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
GUID = 'f930270b-607d-422b-bd94-b6665bcc5b96'
2222

2323
# Author of this module
24-
Author = 'Jonathan Colon'
24+
Author = 'AsBuiltReport Community'
2525

2626
# Company or vendor of this module
2727
# CompanyName = 'Unknown'
2828

2929
# Copyright statement for this module
30-
Copyright = '(c) 2025 Jonathan Colon. All rights reserved.'
30+
Copyright = '(c) 2025 AsBuiltReport. All rights reserved.'
3131

3232
# Description of the functionality provided by this module
3333
Description = 'A PowerShell module to generate an as built report on the configuration of System Resources.'

Src/Private/Get-AbrDate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Get-AbrDate {
66
77
.NOTES
88
Version: 0.1.1
9-
Author: AsBuiltReport Organization
9+
Author: AsBuiltReport Community
1010
Twitter: @AsBuiltReport
1111
Github: AsBuiltReport
1212
.EXAMPLE

Src/Private/Get-AbrPSHost.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Get-AbrPSHost {
77
88
.NOTES
99
Version: 0.1.1
10-
Author: AsBuiltReport Organization
10+
Author: AsBuiltReport Community
1111
Twitter: @AsBuiltReport
1212
Github: AsBuiltReport
1313
.EXAMPLE

Src/Private/Get-AbrProcessInfo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Get-AbrProcessInfo {
77
88
.NOTES
99
Version: 0.1.1
10-
Author: AsBuiltReport Organization
10+
Author: AsBuiltReport Community
1111
Twitter: @AsBuiltReport
1212
Github: AsBuiltReport
1313
.EXAMPLE

Src/Private/Get-AbrTimeZone.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Get-AbrTimeZone {
66
77
.NOTES
88
Version: 0.1.1
9-
Author: AsBuiltReport Organization
9+
Author: AsBuiltReport Community
1010
Twitter: @AsBuiltReport
1111
Github: AsBuiltReport
1212
.EXAMPLE

Src/Private/Get-AbrUptime.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Get-AbrUptime {
77
88
.NOTES
99
Version: 0.1.1
10-
Author: AsBuiltReport Organization
10+
Author: AsBuiltReport Community
1111
Twitter: @AsBuiltReport
1212
Github: AsBuiltReport
1313
.EXAMPLE

Src/Private/Get-SystemUptime.ps1

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
function Get-SystemUptime {
2-
$operatingSystem = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime
3-
$Uptime = "$((Get-Date) - ($operatingSystem.LastBootUpTime))"
4-
return [TimeSpan]$Uptime
2+
<#
3+
.SYNOPSIS
4+
Used by As Built Report to retrieve last boot uptime information
5+
.DESCRIPTION
6+
7+
.NOTES
8+
Version: 0.1.1
9+
Author: AsBuiltReport Community
10+
Twitter: @AsBuiltReport
11+
Github: AsBuiltReport
12+
.EXAMPLE
13+
14+
.LINK
15+
16+
#>
17+
[CmdletBinding()]
18+
[OutputType([TimeSpan])]
19+
param (
20+
)
21+
22+
begin {}
23+
24+
process {
25+
$operatingSystem = Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object LastBootUpTime
26+
$Uptime = "$((Get-Date) - ($operatingSystem.LastBootUpTime))"
27+
return [TimeSpan]$Uptime
28+
}
29+
30+
end {}
531
}

Src/Public/Invoke-AsBuiltReport.System.Resources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Invoke-AsBuiltReport.System.Resources {
66
Documents the configuration of System Resources in Word/HTML/Text formats using PScribo.
77
.NOTES
88
Version: 0.1.1
9-
Author: AsBuiltReport Organization
9+
Author: AsBuiltReport Community
1010
Twitter: @AsBuiltReport
1111
Github: AsBuiltReport
1212
Credits: Iain Brighton (@iainbrighton) - PScribo module

0 commit comments

Comments
 (0)