Category Archives: Powershell

[Powershell]Obfuscate password

This is a sample script to create a password file, the file is encrypted, however when you need to read from the files you can use it for your script to authenticate so that your script do not need to … Continue reading

Posted in Powershell, Scripting | Tagged , | Leave a comment

[Powershell]Concatenate XML blocks base on a list

So on previous post i have posted an entire code to build standard firewalls for new servers. So basically there is a small function that does the trick. The idea is that I do not want the orchestrator to send … Continue reading

Posted in Powershell, Scripting | Tagged | Leave a comment

[Powershell]Submitting access request to tufin

Background So here is a real life requirement that when vRealize Orchestrator created a new virtual machine, the ip addresses of the new VM are passed over to a list, another script will be triggered weekly to read from the … Continue reading

Posted in Powershell, Scripting | Tagged , , | Leave a comment

Compare-Object: Find item in file 1 that is not in file2

The objective is to compare two files, one reference list the other is the testing list. My colleague helped me wrote a script to do the comparison, there were many false positives, so here’s his script: The output always give … Continue reading

Posted in Powershell, Scripting | Tagged , | Leave a comment

[Powershell] Finding discrepancy between two files

thanks to Stackoverlfow: https://stackoverflow.com/questions/8799847/compare-two-csv-files-and-find-discrepancies The code snippet is about comparing two CSV files containing firewall object groups and list down the discrepancy. the code snippet can be used to out-file to a text.

Posted in Powershell, Scripting | Tagged , | Leave a comment

Powershell script to invoke Tufin Path analysis API

There is an undocumented Tufin API, see the code below:

Posted in Powershell, Scripting | Tagged , , , | Leave a comment

Using the Tufin path analysis API with Powershell

Here’s the powershell code.

Posted in Powershell | Tagged , , | 2 Comments