Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions AsBuiltReport.System.Resources.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrDate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Get-AbrDate {

.NOTES
Version: 0.1.1
Author: AsBuiltReport Organization
Author: AsBuiltReport Community
Twitter: @AsBuiltReport
Github: AsBuiltReport
.EXAMPLE
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrPSHost.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Get-AbrPSHost {

.NOTES
Version: 0.1.1
Author: AsBuiltReport Organization
Author: AsBuiltReport Community
Twitter: @AsBuiltReport
Github: AsBuiltReport
.EXAMPLE
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrProcessInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Get-AbrProcessInfo {

.NOTES
Version: 0.1.1
Author: AsBuiltReport Organization
Author: AsBuiltReport Community
Twitter: @AsBuiltReport
Github: AsBuiltReport
.EXAMPLE
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrTimeZone.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Get-AbrTimeZone {

.NOTES
Version: 0.1.1
Author: AsBuiltReport Organization
Author: AsBuiltReport Community
Twitter: @AsBuiltReport
Github: AsBuiltReport
.EXAMPLE
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrUptime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Get-AbrUptime {

.NOTES
Version: 0.1.1
Author: AsBuiltReport Organization
Author: AsBuiltReport Community
Twitter: @AsBuiltReport
Github: AsBuiltReport
.EXAMPLE
Expand Down
32 changes: 29 additions & 3 deletions Src/Private/Get-SystemUptime.ps1
Original file line number Diff line number Diff line change
@@ -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 {}
}
2 changes: 1 addition & 1 deletion Src/Public/Invoke-AsBuiltReport.System.Resources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down