About Terminal Server, Citrix, Delphi and other stuff
31 Aug
I wrote earlier about the startup logo’s on the Volkswagen RNS 510 navigation.
Today I can finally tell you that I succeeded!
I changed the startup logo to the logo from the MFD2 DVD as you can seen on this picture:
16 Aug
Today I was reusing some old (pre vista) code the retrieves the Logon SID that I wrote a few years ago. The Logon SID is a special SID that identifies a logon session that has the form S-1-5-5-X-Y.
You can view your Logon SID with Process Explorer, right click a GUI process, select Properties and goto the Security Tab:
11 Aug
The GetTokenInformation function can be used with the TokenLinkedToken Information Class on Windows Vista and higher to the linked (Elevated) token.
This is useful when User Account Control is enabled and you want to launch an elevated process e.g. from a service.
This example code fails however when User Account Control is disabled:
GetLastError() returns 1312 which is defined in winerror.h as ERROR_NO_SUCH_LOGON_SESSION with description “A specified logon session does not exist. It may already have been terminated.”
So you should check if User Account Control is enabled in such cases (or make this error non critical).
11 Aug
Snippet below can be used to programmatically determine if User Account Control is enabled:
function IsUACEnabled: Boolean;
var
hToken: THandle;
tet: TOKEN_ELEVATION_TYPE;
dwSize: DWORD;
begin
Win32Check(OpenProcessToken(GetCurrentProcess, TOKEN_QUERY, hToken));
// TokenElevationType class only available on Vista+
Win32Check(GetTokenInformation(hToken, TokenElevationType, @tet, SizeOf(tet), dwSize));
Result := tet <> TokenElevationTypeDefault;
end;
27 Jun
In my previous post I wrote about a problem I had with duplicate RID Allocation pools.
But how do we get more insight into these RID Allocation pools?
The DCDIAG tool can display this information per domain controleler using the following syntax
Example output:
But where in Active Directory is this information stored and can we display it for all Domain Controllers at once for larger environments?
27 May
I just read an answer on StackOverflow with this code:
ShowMessage(IntToStr(eu));
end;
Unfortunately it lacked explanation, so what does this code do?
It reads offset $4 from the Thread Information Block (the top of stack) into eax and then offset $8 (stack base) into ebx.
Then it substracts the two and moves that into variable eu, that’s all!
18 May
Again an old war story, this time about timezone handling in Outlook/Exchange.
I am not sure which year it was but I had just started to work for a new company and inherited an Exchange 5.5 Server.
The mail had been migrated from an earlier version and calendar data was migrated from Schedule+.
On the first change to Daylight Savings (DTS) all recurring appointments where shown one hour later (or earlier can’t remember) in Outlook. A manual change was not an option: there were over 2000 mailboxes each with a lot of appointments.
We first tried a workaround by disabling DTS on the the workstations and then manually change the time when changing from and to DTS.
But this influenced the timestamps on externals mails and of course appointments with external parties.
After a lot of (and I really mean a lot) of researching I found that Outlook stores all times in an appointment as relative (UTC) time.
Upon display it uses an undocumented TimeZone descriptor field to convert to Local Time.
18 May
I just found a very old backup file containing old source code for a few tools I wrote ages ago.
This was in 1997 on my first job for a company called PTT Telecom (the Dutch Telecoms) and I wrote some tools to make life easier.
They were all written in Turbo Pascal and supported Long Filenames when running under Windows ’95 (there was a trick to do that under DOS).
The first tool was called Retreive Tool, it parsed a backup file from a private branch exchange (PBX) and could make reports about Licensing, the hardware in the PBX, Extension numbers and their hardware positions and so on.
3 Mar
In the previous parts (part 1 part 2) i’ve described the theoretical part and implementation problems. So, now we can write the code:
1) In case we login the user, we just call LsaLogonUser to get the token:
(more…)
2 Mar
In part 1 I’ve described the theoretical parts needed for a custom autologon application implementation.
But there are some practical problems which I will describe here.
1) I use the LsaLogonUser function to log in the user. However, if I do not pass not null for the LocalGroups parameter, msgina.dll fails to process the logon.
Why? Because it looks for the SE_GROUP_LOGON_ID SID and treat it as logon SID. So we have to add the logon SID manually:
(more…)
Active Directory Altiris bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux MSI MySQL Navigation Objects Office Outlook Passat PowerPoint PowerShell referall was returned RNS315 RNS510 SasLibEx script slow Terminal Server ThinApp TSAdmin TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE WLAN Wordpress WTSWaitSystemEvent wts_event_flush
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.