PowerShell and retrieving environment variables from a content file

I was recently creating a Windows PowerShell script which retrieved content from a JSON-formatted file containing configuration information to be used as variables. A number of  configuration values contained an evironment variable for the user profile of the current user. When retrieving the value the string would be returned as a string and not the dynamic … More PowerShell and retrieving environment variables from a content file

Windows PowerShell Exit Codes, SSIS and the Environment.Exit Method

I was recently compiling a PowerShell script which would be integrated into a SSIS package, depending on the status of the script invocation this would return custom error codes to determine success or failure as part of the package. By default, I would generally use Try/Catch statements and provide and exit code. However, when invoking … More Windows PowerShell Exit Codes, SSIS and the Environment.Exit Method

Powershell.org – Scripting Games Puzzle August 2015

So the PowerShell.org Scripting Games Puzzle for August is about to expire, so rather later than never I decided to give it a go and meet the challenges set by the puzzle, in short challenge was as follows: At http://www.telize.com/geoip, you’ll find a JavaScript Object Notation endpoint. It’s public. Being able to query information from … More Powershell.org – Scripting Games Puzzle August 2015

PowerCLI: Retrieving ESXi Host System Management Network IP Address

I was recently looking at retrieving the allocated management network IP address for a large number of ESXi host systems and therefore decided to use the ‘Get-VMHostNetworkAdapter’ cmdlet  to which I would filter based on the device name value retrieved from the ESXi host system. In its simpliest form the cmdlet can be invoked as below: … More PowerCLI: Retrieving ESXi Host System Management Network IP Address

Configuring vRealize Orchestrator and WinRM Host for Kerberos Authentication

In order to leverage the vRealize Orchestrator PowerShell plug-in to enable interaction between the vRealize Orchestrator appliance and Windows Powershell there is a requirement to add a PowerShell Host to your vRealize Orchestrator configuration, this will only for workflows to interact with Windows Powershell and optionally PowerCLI and the vCenter Server system.     The … More Configuring vRealize Orchestrator and WinRM Host for Kerberos Authentication