Victor Vogelpoel

Excellence is in the details


1 Comment

Putting PowerShell to good use: discovering the OpenText eDOCS WCF API

Intro to the series “Putting PowerShell to good use”

Another post in the series “Putting PowerShell to good use”. In my company, I am evangelizing PowerShell use for various purposes and it is starting to gain traction. PowerShell is not just for the system administrator, but a great tool for any developer as well. It lends itself well for all sort of tasks:

  • Discovering APIs;
  • Leveraging APIs;
  • Creating APIs;
  • Deployment;
  • Testing.

In these series “Putting PowerShell to good use”, I want to share here how I have been using PowerShell. In this second post: discovering APIs with PowerShell and learning about the Windows Communication Foundation (WCF) services API for eDOCS DM, a.k.a. the eDOCS DM WCF API.

The posts of the series so far:

  1. Discovering the eDOCS DM COM API
  2. Discovering the eDOCS DM WCF API (this post)

TL;DR

This new job at The ONE introduced me to OpenText eDOCS Document Management. This time I will be looking at the WCF API of eDOCS DM using PowerShell. Continue reading

Advertisements


1 Comment

Putting PowerShell to good use: discovering the OpenText eDOCS COM API

Intro to the series “Putting PowerShell to good use”

Five years ago, PowerShell fell into my lap and never left my lab again. PowerShell is not just for the system administrator, but a great tool for any developer as well. It lends itself well for all sort of tasks:

  • Discovering APIs;
  • Leveraging APIs;
  • Creating APIs;
  • Deployment;
  • Testing.

In these series “Putting PowerShell to good use”, I want to share here how I have been using PowerShell. In this first post: discovering APIs with PowerShell and in this post discovering the OpenText eDOCS COM API.

TL;DR

This new job at The ONE introduced me to Open Text eDOCS Document Management (previously Hummingbird) and Ultimus Business Process Management. Learning these products and leveraging their APIs for creating integration solutions is a bit of a challenge. PowerShell has been a great help in discovering the eDOCS API and its workings.

Continue reading


Leave a comment

PowerShell on Windows 10 IoT on Raspberry PI

Microsoft has released a preview of the Windows 10 IoT (Internet of Things) for embedded devices, one of them being the Raspberry PI 2B. I am curious to what extent PowerShell can be used on such a limited device; using remoting, PowerShell is supposed to be the preferred way to configure and control the little machine.

Now, I don’t have Windows 10 Desktop preview in order to flash a SD card with the Windows 10 IoT image. However, following the instructions on page https://www.raspberrypi.org/forums/viewtopic.php?f=105&t=109105 (and the video!), I was able to flash the SD card using a Windows 8.1 laptop and complete the installation on my PI
Continue reading


Leave a comment

PowerShell: Download SharePoint Connect 2014 Amsterdam slides from SlideShare.net (using SlideShare API)

Last November I had the pleasure of attending the SharePoint Connect 2014 Amsterdam conference at De Meervaart Theatre. Organizer NC Communication was nice enough to share the slides on SlideShare.net at http://www.slideshare.net/nccomms/ with the prefix title “SPCA2014”.

There are about 25 slide decks and the amount of clicking to download them is daunting! Time for a PowerShell script!
Continue reading


Leave a comment

The PowerShell advantage: debugging anytime

Today I was reminded of a great PowerShell feature: I can even debug script on a production server. Take that, compiled C# program!

The system administrator installed scripts I devised to update SharePoint online User Profile properties in bulk, but something failed in our tests. Well, just open PowerShell ISE, load the culprit script, set a break-point, start it and see what’s happening.

Oh, we forgot to set the IE proxy properly, so the script had no connection to internet. Easily found and fixed and the scripts started to work their magic.
Got to love PowerShell!


Leave a comment

PowerShell: Get-WSManCredSSPConfiguration: getting CredSSP configuration for local or remote computer

CredSSP is a security provider to help delegate credentials from a client computer to a target computer. In PowerShell, we can use CredSSP to overcome the double-hop authentication problem. Getting the current CredSSP configuration settings for client and target computer is a bit of a pain, though. My function Get-WSManCredSSPConfiguration helps with gathering the current CredSSP configuration on both local and target computers. Continue reading


Leave a comment

PowerShell: Measure-ScriptCode (calculating script code metrics)

In my current project for a client, me and my team are building an hefty framework in PowerShell 3. I was wondering how many lines of code and other metrics the framework script code would span. I asked Dutch PowerShell MVP Jeff Wouters (http://jeffwouters.nl) if he knew a tool for calculating PowerShell code metrics, but he didn’t know any. Well, I spent a little time in my Christmas holiday to come up with a tool of my own: Measure-ScriptCode. It was surprisingly easy to calculate metrics.

Continue reading