Skip to content

Restore logon timestamp conversion and OS uptime. - #11

Merged
PsCustomObject merged 1 commit into
masterfrom
modernization/time-utilities
Oct 5, 2026
Merged

PsCustomObject merged 1 commit into
masterfrom
modernization/time-utilities

Conversation

@PsCustomObject

Copy link
Copy Markdown
Owner

Preserve local DateTime output; add UTC and pipeline conversion.

Treat zero timestamps as no recorded logon, validate FILETIME values and use invariant string formatting.

Preserve whole-day and TimeSpan uptime outputs.

Support local uptime on Windows, Linux and macOS.

Replace remote WMI queries with CIM, calculate uptime using the server clock, support explicit and prompted credentials, and clean up temporary sessions.

Propagate failures without changing the caller’s error preference.

Update exports, documentation and tests while retaining four-space indentation.

Validation: all 240 tests passed on Linux with PowerShell 7.4.13. The patch applies cleanly to master at 2627889. Remote CIM orchestration is tested with mocks; live Windows connectivity and authentication remain unverified.

@PsCustomObject
PsCustomObject marked this pull request as ready for review October 5, 2026 06:06
@PsCustomObject PsCustomObject changed the title Restore Convert-LogonTimestamp and Get-OsUpTime from staging, bringing the supported module to 22 commands. Restore logon timestamp conversion and OS uptime. Oct 5, 2026
@PsCustomObject
PsCustomObject merged commit abfa5ce into master Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant