mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
17 lines
398 B
PowerShell
17 lines
398 B
PowerShell
Function Get-SystemDJournal {
|
|
[CmdletBinding()]
|
|
param (
|
|
[Alias("args")][string]$journalctlParameters
|
|
)
|
|
$cmd = "journalctl"
|
|
$Result = & $cmd $journalctlParameters -o json --no-pager
|
|
Try
|
|
{
|
|
$JSONResult = $Result|ConvertFrom-JSON
|
|
$JSONResult
|
|
}
|
|
Catch
|
|
{
|
|
$Result
|
|
}
|
|
} |