Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like

Archive for the ‘RES’ Category

Today I was troubleshooting a warning message that popped up when launching a network application with RES Workspace Manager:

The publisher could not be verified. Are you sure you want to run this software?

Usually this is a simple fix: add the servername (file://server) to the Local Intranet zone:

You can add and remove websites from this zone. All websites in this zone will use the zone's security settings.

That worked when I launched the application directly. However when launching the application with RES Workspace Manager I would still get the warning. Even stranger: when I clicked Cancel the application would still be launched.


The case of the missing audio

Yesterday I was asked to investigate a problem with a presentation pc. Even though the volume was set maximal there was not audio output.

The machine was used to connect to a Citrix XenApp desktop and RES Workspace Extender was used to integrate local applications in the XenApp desktop.

The local sound volume control was published as a subscribed application so I launched that and verified that the volume was set to Maximum:


I decided to launch the local explorer shell and noticed that there were two volume control icons in the Traybar:

Volume Controls


Parse RES Building Blocks with PowerShell

Customer uses Citrix XenApp 5 with ThinApp, RES Workspace Manager and RES Workspace Extender.

An application integration strategy is defined, the picture below displays the strategy and preferred order:


Customer wanted to know the type (1..7) for all applications currently defined in RES Workspace Manager.

I decided to export all the Applications from RES WM as Building Blocks. This results in a folder with XML files. I decided to parse the XML files with a PowerShell script.


  • Filed under: PowerShell, RES
  • Track who created the TreatAs registry key

    imageLast week I wrote about an error message the users received when opening documents from SharePoint.

    The article showed how to fix the problem but it didn’t feel good that I didn’t know where this “TreatAs” value was coming from.

    I figured that I could read the timestamp key from the registry to see at what/date time the value was created. This value can be read using the RegQueryInfoKey API but there are various tools that can read it.


  • Filed under: Other, RES
  • From a script I needed to schedule a project in RES Automation Manager 2011 for a particular server.

    imageThis can be done with the WMC.exe commandline tool as documented in the Admin Guide. However we must specify the agent’s GUID instead of it’s name. We can of course use the AM console to get the agent’s GUID but it’s more flexible to script this.

    imageUnfortunately there’s no API we can call so I am directly quering the AM database using a PowerShell script.

    The script read the database server and database name from the registry so it assumes you have the AM console installed.


  • Filed under: PowerShell, RES
  • I needed to change the drive letter assigned to the cd/dvd station from an Automation Manager project.

    DVD Drive IconAlthough most systems only have one cd/dvd drive, some machines might be equipped with multiple drives.

    A couple of years ago I wrote a tool called ChDrvLetter that can assign a specific drive letter to a partition given it’s volumename. In that tool I also included an option for CD/DVD drives.

    Using the CDROM [Letters] parameter you can assign specific letters to the CD/DVD drives.


  • Filed under: RES
  • Bypassing RES/Appsense Application Security

    The video below shows a Proof of Concept of bypassing Application Security in RES Workspace Manager .

    Please note that at this time the code is not publicly available so please don’t ask for it.

    EDIT 2: I added a video that I received from someone who tried my Excel Sheet with AppSense Application Manager.

    EDIT: I wanted to clarify a couple of things regarding this post.

    First of all I would like to explain why I wrote this code and why I choose to test it with RES WM.

    I had the idea about this approach a long time ago but I never got around to actually do it. The main reason was that I needed to convert Delphi code to VBA and especially converting some Windows headers was a lot of work. Then suddenly I noticed that someone had already converted the headers, so I all I had to do was rewrite the code that used it to VBA.

    The choice for RES was made because of two reasons:

    1. If you want to beat something, you want to beat the best and I most certainly consider RES WM to be one of the top products.
    2. At the time I wrote the POC code I had access to an enviroment with RES in it.

    I would like to emphasize that RES contacted me very quickly after publishing this blog. I’ve had contact with RES and they showed a very constructive approach with their primary goal being a fix or guidance for their customers. Hats of to RES taking a constructive approach and I will be working together with RES on this issue.

    Finally I would like to state that I didn’t expect this post to draw this much attention, if I did I would have probably taken another approach.