Skip to content

Category: Various Products

This category contains technical information about various products from different manufacturers and sources.

PowerShell 0

ServiceMesh AgilityPlatform: Login via PowerShell

Here is a quick script on how to login to ServiceMesh AgilityPlatform. Never heard of the product? don’t bother. It works nevertheless … Subsequent calls to AgilityPlatform are then execeuted like this (eg list all projects on the platform): An easy way to check if the login session is still valid is to issue the following request: You should receive […]

PowerShell 0

biz.dfch.PS.Storebox.Api: Invoke-CteraFileTransfer

I updated the biz.dfch.PS.Storebox.Api for being able to have file transfers to and from Ctera (Storebox) via its REST API. There you will also find the link to the NuGet package and the Github repository. With it you can get a directory listing, download and upload a file. It uses our logging module as well as the generic ‘Invoke-CteraRestCommand’. There […]

PowerShell 1

[biz.dfch.PS.System.Data] Invoke-SqlCmd without the overhead

=== UPDATE 2014-10-19 === I created a separate module that uses the SqlClient where you do not have to specify the command type and where you can also use LocalDB connections. === For the full module and description see my Post Module: biz.dfch.PS.System.Data. === UPDATE 2013-12-21 === added an additional parameter to specify the command type manually === Sometimes we […]

PowerShell 0

Search-OSCEXOEmailMessage does not handle PageSize and Paging correctly

Another bug in the OSCEXO module… When searching for mails within a mailbox well known folder with more than “PageSize” messages the cmdlet Search-OSCEXOEmailMessage never return and keeps “searching” forever (or until you run out of memory – whatever happens first). The reason behind this is that the code that handles the “ExchangeService.FindItems()” calls does not increase the PageOffset and […]

PowerShell 1

PowerShell New-WebServiceProxy fails to instantiate Clickatell SOAP WebService

When trying to use the Clickatell SOAP WebService via “http://api.clickatell.com/soap/webservice.php?WSDL” you receive a “FileNotFoundException” exception: You effectively have to use the workaround described in the manual by calling the web service under this address: ‘http://api.clickatell.com/soap/webservice_vs.php?WSDL’. The reason behind it seems to be use of a conflicting attribute named ‘callback’.

PowerShell 0

CTERA Code Snipplets

Here are some code fragments that might help when dealing with CTERA REST responses. For a complete PowerShell module check this post Module: biz.dfch.PS.Storebox.Api. 1. Selecting an Attribute value based on its ‘id’: 2. Converting a list ov ‘val’ into an array 3. Loading XML template from ‘defaults’ and populate them:

PowerShell 0

Using DeathByCapture from PowerShell

DeathByCapture provides a .NET assembly for interaction with the mighty workforce overseas that lets you overcome those nasty captchas. Unfortunately you cannot use the assembly when you want to ‘[System.Reflection.Assembly]::LoadFile()’ as the ‘DeathByCaptcha.HttpClient’ is an abstract base class where you cannot pass the login credentials as arguments to the constructor. Adding the assembly to the GAC is not possible without […]

PowerShell 0

Communication with Apple iTunes Store and WebSite

Recently I had the task to automate a few things regarding AppleIDs. One of things was to create, change and verify AppleIDs. Having no tools (apart from Apples inofficial buggy AppleScript screen-click-automation scripts) I had a look at the HTTP communication between iTunes/the web client and the iTunes Store and AppleID servers. The login to AppleID is rather straightforward by […]

Various Products 0

vCloud Director (vCD) allocates DistributedVirtualPorts from a DistributedVirtualPortGroup in a non-sequential order

When you have a DistributedVirtualPortGroup in vCenter (vC) with a fixed number of VirtualPorts of 10 and you set that DistributedVirtualPortGroup to “non-expanding” you will get an error with vCloud Director (vCD) when you try to allocate more than one (1) DistributedVirtualPort. However, when you look at the DVS DistributedVirtualPortGroup you find enough available DVS DistributedVirtualPort displayed. The error message […]

PowerShell 2

Module: biz.dfch.PS.Storebox.Api

[UPDATE 2014-11-16] The module is now available on NuGet. See below for download link. [UPDATE 2014-10-13] I split the module into separate PS1 files (one per cmdlet/function) and created a manifest for it. Now you can use a prefix and change the name of the cmdlets (the default prefix is ‘Ctera’). Here you find the PowerShell module that you can […]