E. Power Response Framework Functions - Asymmetric-InfoSec/Power-Response Wiki

The following framework level functions are available for use in all plugins:

Writing errors, warnings, and messages

Write-PRHost

Description: Performs a Write-Host to console and logs message

Parameters:

Write-PRWarning

Description: Performs a Write-Warning and logs warning message

Parameters:

Write-PRError

Description: Performs a Write-Error and logs error message

Parameters:

Invoking Plugins within Plugins (Plugin-Ception)

Invoke-PRPlugin

Description: Invokes a plugin within another plugin

Parameters:

[Parameter(Mandatory=$true,ParameterSetName='Path')]

[Parameter(Mandatory=$true,ParameterSetName='Name')]

Both Parameter Sets

Native Remote File Copy (Handles Locked Files)

Copy-PRItem

Description: A copy function used for copying files from remote machines

Parameters:

Writing output files

Out-PRFile

Description: Captures output sent to the console and organizes it based on the output types selected in Power-Response

Parameters:

Getting Power-Response Specific Paths

Get-PRPath

Description: Allows plugins to reference Power-Response specific paths in plugins without explicit path definitions

Parameters:

[Parameter(ParameterSetName='Bin')]

[Parameter(ParameterSetName='Logs')]

[Parameter(ParameterSetName='Output')]

[Parameter(ParameterSetName='Plugins')]

[Parameter(ParameterSetName='Output-Specific',Mandatory=$true)]