Set-PSPConfiguration. You will need to provide a path to a Protect configuration file and then the destination of the configuration.
Get-PSPConfiguration. You will receive a configuration object or null if no configuration is installed.
Test-PSPConfiguration. This cmdlet will use the specified configuration file and evaluate the provided script block. The
Test-PSPConfigurationcmdlet will return either
Okif the script will not be blocked and
AdminBlockif the script will be blocked. Other actions, such as TCP or HTTP, will also be executed.
%ProgramData%\PowerShellProtect\config.xml. You will need to set the proper permissions so the XML file is readonly. Any changes made to the XML file will automatically be reloaded by PowerShell Protect.
HKLM\Software\Ironman Software\PowerShell Protectin the value
HKLM\Software\Ironman Software\PowerShell Protectand setting the value
ConfigurationFile. This needs to be the full path to the file. Environment variables will be expanded.