Set-PSPConfiguration
. You will need to provide a path to a Protect configuration file and then the destination of the configuration. New-PSPConfiguration
to Set-PSPConfiguration
.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-PSPConfiguration
cmdlet will return either Ok
if the script will not be blocked and AdminBlock
if 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 Protect
in the value Configuration
. HKLM\Software\Ironman Software\PowerShell Protect
and setting the value ConfigurationFile
. This needs to be the full path to the file. Environment variables will be expanded.