Skip to content

Restore logon timestamp conversion and OS uptime. - #11

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

SingularVector merged 1 commit into
masterfrom
modernization/time-utilities

Conversation

@SingularVector

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.

@SingularVector
SingularVector marked this pull request as ready for review October 5, 2026 06:06
@SingularVector SingularVector 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
@SingularVector
SingularVector 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