About Terminal Server, Citrix, Delphi and other stuff
From a script I needed to schedule a project in RES Automation Manager 2011 for a particular server.
This 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.
The script read the database server and database name from the registry so it assumes you have the AM console installed.
I am writing a script that is going to automate a number of manual steps involved in creating a new image with Citrix PVS.
First step is to copy the most recent base image which is kept in a folder structure. The folder name is always YYYY-MM-DD (description):
I needed to determine the most recent folder and didn’t want to rely on creation date. Instead I walk the directory tree and filter the date out of the filename with a regular expression:
So what can we do with them?
The XML files are created by a separate exe in the WebsetupExpanded folder called WicaInventory.exe with the arguments: /apps /fast /ext “exe,sys” /output <XML file> /log <LOG file>
In my case the commandline was:
WicaInventory.exe /apps /fast /ext "exe,sys" /output "C:\Users\rweijnen\AppData\Local\Microsof\WebSetup\Panther\WICA_Programs_REMKOLAPTOP.xml" /log "C:\Users\rweijnen\AppData\Local\Microsoft\WebSetup\Panther" "c:\Users\rweijnen\AppData\Local\Temp\1fd52b5b-2609-4156-ac02-49dca27a0a8d\WebSetupExpanded"
Let’s see what’s in WICA_Programs_REMKOLAPTOP.xml.
The Windows 8 Consumer Preview is downloaded as a Web Installer called Windows8-ConsumerPreview-setup.exe.
On my system the Web Installer crashed while checking Application Compatibility:
I clicked the Debug option and launched the Visual Studio debugger:
I was experimenting today with the PowerShell cmdlets for Citrix Provisioning Server. I was surprised to learn that the output of these cmdlets are not PowerShell types such as collections and objects with methods and properties but just plain text output.
A google search for a method to quickly convert the garbage output to objects led me to this blog post by Frank Peter. He describes a clever use of the switch statement with regular expressions with the Get-DiskInfo cmdlet.
Using Frank’s code as a basis I wrote a generic function that converts Mcli output to an array of objects.
For this API to work you must have the Interactive Services Detection (UI0Detect) service running.
CTX106233 describes where to download traceview but this article is outdated because it describes an older version of the DDK (the Windows Driver Development).
The current DDK version (7.1.0) can be downloaded here and has the filename “GRMWDK_EN_7600_1.ISO”.
I logged remotely to a server with RDP and I noticed that I had options to restart or shutdown that server. This means we can shutdown or restart a server without physical access and without authentication:
Windows 2003 Enterprise (32 bit), Citrix XenApp 5, RES Workspace Manager 2011, McAfee VirusScan Enterprise 8.7.0i.
When a opening an Excel workbook from Sharepoint the whole session freezes.
I asked the user to open an Excel workbook from Sharepoint and I noticed the following popup:
So my first thought was that the user somehow clicked this message to the background and IE was waiting for a response.
I needed to change the drive letter assigned to the cd/dvd station from an Automation Manager project.
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.
.NET .NET FrameWork Active Directory Altiris Automation Manager bug Citrix Dell Delphi Excel Exchange Exchange2003 Exchange2010 Hack HP iOS Java LinkedIn Linux Lync MSI Office Office 2010 Outlook Passat Password PowerPoint PowerShell RES RNS510 SasLibEx Security Terminal Server ThinApp TSAdminEx Unattended VBS VCDS Vista Visual Basic VMWare Volkswagen Windows PE Wordpress XenApp