C# Is the Logged User a member of specific Windows Domain Group?

| 2013/10/19 11:10
C sharp code
using System.DirectoryServices.AccountManagement;
string userName = SystemInformation.UserName;
string UDN = SystemInformation.UserDomainName;
string domainUser = UDN + "\\" + userName;
PrincipalContext pc = new PrincipalContext(ContextType.Domain);
UserPrincipal user = UserPrincipal.FindByIdentity(pc, IdentityType.SamAccountName, domainUser);
GroupPrincipal group = GroupPrincipal.FindByIdentity(pc, "Domain_Group_Name");
bool is_member = user.IsMemberOf(group);

Remote Desktop microphone redirection

| 2013/10/19 08:48
Install and configure the microphone on the local PC and set redirection at Remote Desktop Connection 

Remote Desktop Connection microphone redirection

Allow audio recording at hostHKLM\SYSTEM\CurrentControlSet\Con

The Marine Design Forum discontinued

| 2013/01/15 18:55

15 January 2013

Due to Tribon (M1, M2, M3) software retirement, the Tribon related marine design forum support has been discontinued.


Virtualization and CAD

| 2012/11/19 08:17
Virtualization and CAD software (AutoCAD and similar) at the end of year 2012.
Recently tested XenApp, XenDesktop and Server 2012 with Hyper-V + Nvidia Quadro 4000 and Windows 8 virtual machines.
The result
XenApp is OK with AutoCAD. However AutoCAD LT is not compatible with XenApp - limited to 2 Acad instances only.

DataGridView add row - C#

| 2012/10/19 09:18
Considering DataGridView with 3 text columns defined.
string[] row = new string[] { "column1_content", "column2_content", "column3_content" };