Welcome to MSDN Blogs Sign in | Join | Help

Decrypt my World

Cryptography, Security, Debugging and more!

March 2008 - Posts

How to get ADs Providers list (C#)
Hi, welcome back, We may want to get the list of Active Directory Providers (" LDAP: ", " WinNT: ", " IIS: "...) with .NET the same way we do it with this VBScript : Set ads = GetObject("ADs:") For Each provider In ads Wscript.Echo provider.Name Next Read More...
How to get Password Expiration Date with System.DirectoryServices (C#)
Hi, welcome back, You may want to get Password Expiration Date for a given user with System.DirectoryServices . You may be tempted to use a code like the following: DirectoryEntry entry = new DirectoryEntry(path); object obj = entry.Properties["PasswordExpirationDate"].Value; Read More...
CAPICOM Security Alerts are not localized
Hi all, welcome back, When we use CAPICOM , we may get some messages like the following: Security Alert: This Web site needs to decrypt data using your private key. Security Alert: This Web site needs to create a digital signature using your private key. Read More...
How to change the Security Descriptor of WMI objects
Hi all, welcome back, You may want to give users or groups access to perform read/modify WMI operations on WMI objects , and for that you need to change the Security Descriptor ( SD ) for WMI objects. There are several ways to achieve this: 1) Manually Read More...
How to change Registry Permissions with RegIni.exe (VBScript)
Hi all, welcome back, Today I'll show how we can set the following permissions on a registry key with RegIni.exe and a VBScript : - Creator Owner Full Control - Users Full Control - Power Users Full Control - Administrators Full Control - System Full Read More...
How to get the user running a VBScript
Hi all, welcome back, It's very easy to find out the user name and the domain name of the user running a VBScript, and the computer name where it's running: Set objNet = CreateObject("WScript.NetWork") strInfo = "User Name is " & objNet.UserName & Read More...
CAPICOM support on Windows Server 2008
Hi all, welcome back, If you remember all the confusion there was regarding CAPICOM support on Vista , now everything seems much clearer on Windows Server 2008. Our documentation team has done its homework, as we can see in CAPICOM Reference : "CAPICOM Read More...
PKCS#11 interface support on Windows 2000/Server 2003
Hi all, welcome back, I recently had some issues involving PKCS#11 interface on Windows, and it seems quite clear that we don't support it, at least on Windows 2000 & Server 2003, and as far as I know on any other version of Windows: Public Key Interoperability Read More...
How to get the logged on user with WMI (VBScript)
Hi all, welcome back, From time to time I get to do some scripting, play with LDAP/ADSI, WMI, etc. I'll begin posting some VBScript samples I have which may be useful for you too. Today we'll see a way to get the user who has logged on a given machine Read More...
How to select which Smart Card reader to perform actions on
Hi all, welcome back, Most of the time we only have a smart card reader in our machine, and we only use one smart card to perform crypto operations. But what if we have several readers and cards , and those cards share the same CSP (Cryptographic Service Read More...
Page view tracker