You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use Get-WinEvent, the results are objects you can work with in PowerShell.
33
+
When you use [Get-WinEvent](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent?view=powershell-7&WT.mc_id=ps-gethelp), the results are objects you can work with in PowerShell.
34
34
However, often times there is additional information that is part of the eventlog record, such as replacement strings, that are used to construct a message.
35
35
This additional information is not readily exposed.
36
36
You can use this command to convert results of a Get-WinEvent command into a PowerShell custom object with additional information.
@@ -91,11 +91,24 @@ This module includes a custom format file for these results.
91
91
92
92
Use this command to compare module versions between what is installed against an online repository like the PSGallery
@@ -219,9 +232,9 @@ This function is designed to search an entire CIM repository for a class name. S
219
232
220
233
### [Out-VerboseTee](docs/Out-VerboseTee.md)
221
234
222
-
This command is intended to let you see your verbose output and write the verbose messages to a log file. It will only work if the verbose pipeline is enabled, usually when your command is run with -Verbose. This function is designed to be used within your scripts and functions. You either have to hard code a file name or find some other way to define it in your function or control script. You could pass a value as a parameter or set it as a PSDefaultParameterValue.
235
+
This command is intended to let you see your verbose output and write the verbose messages to a log file. It will only work if the verbose pipeline is enabled, usually when your command is run with -Verbose. This function is designed to be used within your scripts and functions. You either have to hard code a file name or find some other way to define it in your function or control script. You could pass a value as a parameter or set it as a `PSDefaultParameterValue`.
223
236
224
-
This command has an alias of `Tee-Verbose`.
237
+
This command has aliases of `Tee-Verbose` and `tv`.
When working with timespans or durations in XML files, such as those from scheduled tasks, the format is a little different than what you mgiht expect. The specification is described at [https://www.w3.org/TR/xmlschema-2/#duration](https://www.w3.org/TR/xmlschema-2/#duration). Use this command to convert a timespan into a lexical format you can use in an XML file where you need to specify a duration.
Likewise, you might need to convert a lexical value back into a timespan.
832
+
833
+
```powershell
834
+
ConvertFrom-LexicalTimespan P7DT12H
835
+
836
+
837
+
Days : 7
838
+
Hours : 12
839
+
Minutes : 0
840
+
Seconds : 0
841
+
Milliseconds : 0
842
+
Ticks : 6480000000000
843
+
TotalDays : 7.5
844
+
TotalHours : 180
845
+
TotalMinutes : 10800
846
+
TotalSeconds : 648000
847
+
TotalMilliseconds : 648000000
848
+
849
+
```
850
+
851
+
These functions were first described at [https://jdhitsolutions.com/blog/powershell/7101/converting-lexical-timespans-with-powershell/](https://jdhitsolutions.com/blog/powershell/7101/converting-lexical-timespans-with-powershell/)
852
+
806
853
## Console Utilities
807
854
808
855
### [Out-More](docs/Out-More.md)
@@ -1054,8 +1101,25 @@ Begin {
1054
1101
} #begin
1055
1102
```
1056
1103
1104
+
### [Save-GitSetup](docs/Save-GitSetup.md)
1105
+
1106
+
This command is intended for Windows users to easily download the latest 64bit version of `Git`.
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will not be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
0 commit comments