Geeks With Blogs

Sal Sparacio's Blog .NET | c# | Computer Games | Windows Mobile | Solo IT / Programmer March 2007 Entries
View Locked Out Users - Query - Active Directory
I wanted a simple way to display all the locked out users on my domain. So I created this simple query to do so. To use this:: 1. Open Active Directory Users and Computer. 2. Right click on "Saved Queries" 3. Select " New " - > "Query" 4. Select " Define Query " 5. In the find box select " Custom Query ". 6. Select the " Advance " Tab. 7. Paste the following code in: (objectCategory=Person)(obj... 8. Give ......

Posted On Wednesday, March 28, 2007 8:25 AM

Send Email via Gmail with ASP.NET 2.0
I saw this post from Andreas Kraus and he explained how to use c# ( 2.0 ) to send email with Gmail:: Here is the code: // Smtp configuration SmtpClient smtp = new SmtpClient(); smtp.Host = “”; smtp.Credentials = new System.Net.NetworkCredentia... “xx”); smtp.EnableSsl = true; Read this post for more information. -- Sal ......

Posted On Friday, March 9, 2007 8:48 AM

Tab Delimited Parser [ RegEx ]
I saw this nice RegEx today at Title Tab Delimited Parser Pattern [^\t]+|\t(?=\t)|\t$ Author Thomas Cox Matching Text [a-zA-Z0-9,:!@#$%^&*()-... Non-Matching Text Tabs Description I wrote this for a company that was importing a variety of rich text separated by tabs. By applying this regular expression, you can filter out even empty fields which return as a single tab qualified by a tab in front of them unless its the end of the string, which will return a single tab ......

Posted On Tuesday, March 6, 2007 1:20 PM

Copyright © Sal Sparacio | Powered by: