Getting Started
Getting started with PowerShell Protect.
Install-Module PowerShellProtectLast updated
Getting started with PowerShell Protect.
Install-Module PowerShellProtectLast updated
Install-PowerShellProtect
$Configuration = New-PSPConfiguration
Set-PSPConfiguration -Configuration $Configuration -FileSystem -License '<myLicense>'$Condition = New-PSPCondition -Property "command" -contains -Value "webrequest"
$BlockAction = New-PSPAction -Block
$FileAction = New-PSPAction -File -Format "{applicationName},{rule}" -Path "%temp%\audit.csv" -Name 'File'
$Rule = New-PSPRule -Name "Web Request" -Condition $Condition -Action @($BlockAction, $FileAction)
$Configuration = New-PSPConfiguration -Rule $Rule -Action @($BlockAction, $FileAction)
Set-PSPConfiguration -Configuration $Configuration -FileSystem -License '<myLicense>'