Linked to original entry on MSDNTS blog:

Manage database of ASP.NET 2.0 Membership & Role services in non-ASP.NET context

http://blogs.msdn.com/msdnts/archive/2006/12/16/asp-net-2-0-membership-role-management-out-of-asp-net-context.aspx