This is a video showing how I created a program that someone recently requested, hopefully if people find these development diary style videos interesting then I will do more as I make more programs (so please let me know what you think!).
Archives For VB.NET – General
For any .NET developers writing programs that require a user to select a container or OU from Active Directory, I’ve made an easy to use dialog window that will show the domain tree and let the user select a specific container.
Last year I spent an awful lot of time helping other developers and IT Pros out on vbforums.com, spiceworks.com, Technet forums, MSDN forums, and posting a few things on this blog… but this year haven’t really had that much time to do this – so it was a bit of a surprise to find out I’ve been awarded a Microsoft Community Contributor award for 2011! I’m pleased all the same of course and it is nice to be recognised for helping others. Hopefully my contributions will continue to be useful to other people in the developer/IT Pro community.
Using .NET you may think that determining which permissions are assigned to a directory/file should be quite easy, as there is a FileSystemRights Enum defined that seems to contain every possible permission that a file/directory can have and calling AccessRule.FileSystemRights returns a combination of these values. However, you will soon come across some permissions where the value in this property does not match any of the values in the FileSystemRights Enum.
Launching a process that the currently logged on user can see on their desktop session (and interact with) from a Windows service is a popular topic – and there are a wide variety of answers out there when someone asks how to do this, some people say it is not even possible on Windows Vista or Windows 7. Turns out it is actually very easy…
I’ve been trying to find a way to script or automate the creation of a new Windows VPN connection that uses L2TP/IPSEC with a pre shared key and automatically uses the current user’s credentials, but it seems there is no way to do this using the CMAK, netsh, various powershell scripts, or GPO Preferences as none of them include all of the options we needed to set. So I have come up with a .NET app for doing this and am posting the code here in case it helps anyone else out.
Just thought I would post about this quickly as its an error message that I ran into recently that took me quite a while to figure out. So to save other .NET developers spending ages trying to work out why it was happening like I did, I’ll explain how you can get rid of this rather annoying problem.