Skip to content

Commit

Permalink
Update Get-USBHistory.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps authored Oct 2, 2024
1 parent 3fc4a72 commit 643248f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Modules/Get-USBHistory.psm1
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
function Get-USBHistory {
<#
.SYNOPSIS
Returns list of USB devices previously connected to target system from the registry.
Collects information on USB devices previously connected to target system from the registry.
.DESCRIPTION
Returns list of USB devices previously connected to target system from the registry. Each device entry contains metadata for each device.
Collects information on USB devices previously connected to target system from the registry.
.EXAMPLE
Get-USBHistory
.EXAMPLE
Get-USBHistory |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Export-Csv -NoTypeInformation ("c:\temp\USBHistory.csv")
.EXAMPLE
Expand Down Expand Up @@ -105,4 +106,4 @@ function Get-USBHistory {
Write-Verbose ("Total time elapsed: {0}" -f $elapsed)
Write-Verbose ("Ended at {0}" -f ((Get-Date).ToUniversalTime()).ToString("yyyy-MM-dd HH:mm:ssZ"))
}
}
}

0 comments on commit 643248f

Please sign in to comment.