[NoBrainer] Enumerate all functions in a PowerShell script file via AST

Recently I needed to check if a function was defined inside a script file. Reflection was my first thought, and PowerShell being a first class .NET citizen should be able to perform this. But as PowerShell is defined as an Abstract Syntax Tree (AST) it is even easier to achieve this. Inside the AST every […]

Configure SSO on VMware NSX using the API

This is just a very short post about the problems I was facing while trying to configure SSO on NSX Manager using the API. The NSX API documentation contains following: POST https://<nsxmgr-ip>/api/2.0/services/ssoconfig Request Body: While testing with this call I always got a http error 403 back. However the credentials used to authenticate against NSX […]