[THIN] Re: Can't write to HKey Local Machine nor Current User

  • From: "Pascal Bijnaar" <pascal.bijnaar@xxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Tue, 24 Apr 2007 15:25:26 -0400

The instruction in Citrix Article CTX396009 might be of help installing
Lotus notes in a TS environment

 

-PB

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Malcolm Bruton
Sent: Tuesday, April 24, 2007 4:04 AM
To: thin@xxxxxxxxxxxxx
Subject: RE: [THIN] Can't write to HKey Local Machine nor Current User

 

This is because on a TS machine permissions are locked down more than on
a workstation.  You need to grant rights to these keys on the TS machine
to allow that app to run.  Of course this is always a dangerous game and
you should only give as a little as you need.  Also be aware that an app
that is writing data to this area (HKLM) may affect all users on that
app.  I would contact the vendor of the app and see if they support it
on Terminal server and even potentially get them to rewrite the exe so
it confirms to TS best practices.

 

Malcolm

 

________________________________

From: thin-bounce@xxxxxxxxxxxxx on behalf of Kirsten Mayer
Sent: Tue 24/04/2007 03:16
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Can't write to HKey Local Machine nor Current User


Hi, 
I have a .exe and .dll installed on Windows Server 2003 for use by thin
clients using Terminal Services. 
The thin client user logs into Lotus Notes (which is running on the
Server) which calls the .dll which runs the .exe and passes the .exe a
structure. 
The .exe, amongst other things, tries to read and then write several
keys to both the HKey Local Machine and HKey Current User and this is
where the problem lies.  The .exe only works when the thin client is
given Admin privileges to the Server; otherwise 

Firstly, the .exe doesn't seem to find the Local Machine Keys (if not
also the Current User keys) when the .exe loads. 

Secondly,  the .exe it exits with the following message when it tries to
write to registry keys: 
System.UnauthorizedAccessException: Access to the registry key  is
denied. 
  at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

  at Microsoft.Win32.RegistryKey.SetValue(String name, Object value) 

All Thin client users have been given permission to read and write to
the Local Machine and Current User keys. 

The .exe works on Windows machines under the same scenario (called from
inside Lotus Notes which calls the .dll which runs the .exe etc.)
whether the user has Admin privileges or not. 

Any ideas? 
Many thanks,
_______________________________________________
Kirsten Mayer
Software Developer
E: kmayer@xxxxxxxxxx

Other related posts: