Skip to content

Instantly share code, notes, and snippets.

@levi-turner
Created February 15, 2018 16:53
Show Gist options
  • Save levi-turner/8180216fcdc7f4f419b27aead7cb4bd2 to your computer and use it in GitHub Desktop.
Save levi-turner/8180216fcdc7f4f419b27aead7cb4bd2 to your computer and use it in GitHub Desktop.
Dump custom security rules to JSON file
Get-QlikRule | ?{$_.type -like 'custom'} | ForEach-Object { $_ | ConvertTo-Json | Out-File ("C:\Temp\$( ($_.name -replace '(-|#|\||"|,|/|:|â|€|™|\?)', '' )).json") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment