Skip to content

Commit ec4cce5

Browse files
2.13.0 final
1 parent db3d0b7 commit ec4cce5

File tree

6 files changed

+1607
-619
lines changed

6 files changed

+1607
-619
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,4 +1060,4 @@ Begin {
10601060

10611061
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.
10621062

1063-
last Updated 2020-01-22 16:15:55Z UTC
1063+
last Updated 2020-01-22 19:12:33Z UTC

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
+ Added `New-RunspaceCleanupJob` command to be used with WPF commands running in a new runspace
66
+ Modified `ConvertTo-WPFGrid` to clean up runspace when closed. (Issue #25)
7-
+ Modified `ConvertTo-WPFGrid` to attempt to run on all platforms and gracefully fail where it won't work. (Issue $56)
7+
+ Modified `ConvertTo-WPFGrid` to attempt to run on all platforms and gracefully fail where it won't work. (Issue #56)
88
+ Added 'Convert-EventLogRecord' function and its alias `clr`
99
+ Added `Rename-Hashtable` function and its alias `rht`
1010
+ Updated `Convertto-Markdown` to include options to format as a table

docs/Convert-EventLogRecord.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,8 @@ The replacement strings are stored as text so the command displays the data usin
116116

117117
```powershell
118118
PS C:\> $all = New-PSSession -ComputerName 'win10','srv1','srv2','dom1'
119-
```
120-
121-
Create PSSessions to several remote computers.
122-
123-
```powershell
124119
PS C:\> $local = Get-Item Function:\Convert-EventLogRecord
125-
```
126-
127-
Get the local copy of the command.
128-
129-
```powershell
130120
PS C:\> Invoke-Command -ScriptBlock {New-item -Path Function: -Name $using:local.name -Value $using:local.ScriptBlock} -Session $all
131-
```
132-
133-
Create the command in the remote sessions.
134-
135-
```powershell
136121
PS C:\> Invoke-Command { Get-WinEvent -FilterHashtable @{Logname='security';id=4624} -MaxEvents 10 | Convert-EventLogRecord | Select-Object -Property Computername,Time*,TargetUser*,TargetDomainName,Subject*} -session $all -HideComputerName | Select-Object -Property * -ExcludeProperty runspaceID
137122
138123
Computername : WIN10.Company.Pri
@@ -165,12 +150,16 @@ SubjectUserName : -
165150
SubjectDomainName : -
166151
SubjectLogonId : 0x0
167152
...
153+
```
168154

169-
Get event log data in the remote sessions and convert using the Convert-EventlogRecord function.
155+
The first command creates PSSessions to several remote computers.
156+
The local copy of this command is created in the remote PSSessions.
157+
Then event log data is retrieved in the remote sessions and converted using the Convert-EventlogRecord function in each session.
170158

171159
## PARAMETERS
172160

173161
### -LogRecord
162+
174163
An event log record from the Get-WinEvent command.
175164

176165
```yaml

docs/Rename-HashTable.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This command will create a temporary copy of the hashtable, create the new key a
3838
The temporary hashtable is then set as the new value for your original variable.
3939

4040
This command does not write anything to the pipeline when you use a variable name unless you use -Passthru.
41-
If you pipe a hashtable to this command, the newhashtable will automatically be written to the pipeline.
41+
If you pipe a hashtable to this command, the new hashtable will automatically be written to the pipeline.
4242

4343
You might find this command useful when building a hashtable that you intend to use with splatting where you need to align key names with parameter names.
4444

@@ -47,7 +47,7 @@ You might find this command useful when building a hashtable that you intend to
4747
### EXAMPLE 1
4848

4949
```powershell
50-
PS C:\>Rename-Hashtable -name MyHash -key Name -newKey Computername
50+
PS C:\> Rename-Hashtable -name MyHash -key Name -newKey Computername
5151
```
5252

5353
### EXAMPLE 2
@@ -202,10 +202,12 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
202202
203203
## OUTPUTS
204204
205-
None
206-
Hashtable
205+
### None
206+
207+
### Hashtable
207208
208209
## NOTES
210+
209211
Learn more about PowerShell:
210212
http://jdhitsolutions.com/blog/essential-powershell-resources/
211213

0 commit comments

Comments
 (0)