<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Chris' Weblog</title>
        <link>http://geekswithblogs.net/ccalderon/Default.aspx</link>
        <description />
        <language>en-US</language>
        <copyright>Chris Calderon</copyright>
        <managingEditor>ctcald@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Chris' Weblog</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/ccalderon/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Script Mailbox Quotas</title>
            <link>http://geekswithblogs.net/ccalderon/archive/2006/06/13/81829.aspx</link>
            <description>&lt;P&gt;A buddy of mine called and mentioned he needed a script to set individual mailbox quotas on user accounts within a specific Exchange Store. Typically you'd accomplish this by creating a mailbox quota policy at the store level or moving the users to another store that can facilitate the extra mailbox space,...however in this case those options were not available. To make it uglier, each quota setting had to be unique. Having to do this manually would seriously bite, so I wrote this quick vbscript to do just that for him. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://geekswithblogs.net/ccalderon/articles/81828.aspx"&gt;&lt;STRONG&gt;Script Mailbox Quotas&lt;/STRONG&gt; &lt;/A&gt;&lt;/P&gt; &lt;img src="http://geekswithblogs.net/ccalderon/aggbug/81829.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Calderon</dc:creator>
            <guid>http://geekswithblogs.net/ccalderon/archive/2006/06/13/81829.aspx</guid>
            <pubDate>Wed, 14 Jun 2006 01:47:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ccalderon/comments/81829.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ccalderon/archive/2006/06/13/81829.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/ccalderon/comments/commentRss/81829.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/ccalderon/services/trackbacks/81829.aspx</trackback:ping>
        </item>
        <item>
            <title>Create Group Objects (Roles) in ADAM</title>
            <link>http://geekswithblogs.net/ccalderon/archive/2006/05/31/80307.aspx</link>
            <description>&lt;P class=style1&gt;Here is a quick Vbscript that can be used to create roles in ADAM. I suppose you can also use Ldifde but, I get lazy formatting the .LDF file, etc. So here is what this script does:&lt;/P&gt;
&lt;OL class=style1 type=1&gt;
&lt;LI&gt;It calls the input file specified when executing the script. (e.g. &lt;EM&gt;cscript CreateADAMRoles.vbs &lt;SINPUTFILE&gt;&lt;/EM&gt;)&lt;/LI&gt;&lt;/OL&gt;
&lt;OL class=style1 type=1 start=2&gt;
&lt;LI&gt;It reads the input file, and begins the loop line by line until the end of the file. During each loop, it performs the following ADSI routines.&lt;/LI&gt;&lt;/OL&gt;
&lt;OL class=style1 type=1 start=3&gt;
&lt;LI&gt;Connects to LDAP defined within the Global Settings. (e.g. LDAP://localhost:389/cn=roles,dc=contoso,dc=com)&lt;/LI&gt;&lt;/OL&gt;
&lt;OL class=style1 type=1 start=4&gt;
&lt;LI&gt;Create a group object, naming it the value defined within the line read. (e.g. cn=Role1). It also sets the groupType value which is a required attribute to be successful.&lt;/LI&gt;&lt;/OL&gt;
&lt;OL type=1 start=5&gt;
&lt;LI class=style1&gt;Upon completion, loop again.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN class=style1&gt;A downloadable version can be obtained &lt;A href="ftp://207.214.86.141/CreateADAMRole.zip"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;Option Explicit&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;Dim objFSO,objFile, objOU, objGroup, objArgs&lt;BR&gt;Dim strLine, sDomainDN, sInputFile&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;Const ADS_GROUP_TYPE_GLOBAL_GROUP = &amp;h2&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;'GLOBAL SETTINGS - Please set these values as per your environment&lt;BR&gt;sDomainDN = "localhost:389/cn=roles,dc=contoso,dc=com"&lt;BR&gt;&lt;BR&gt;Set objArgs = WScript.Arguments&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;If Wscript.Arguments.Count = 0 Then&lt;BR&gt;WScript.Echo ("No input file given on command line." &amp; VbCrLf &amp;_&lt;BR&gt;" Usage: [cscript|wscript] " &amp; WScript.ScriptName &amp; " &lt;INPUTFILE&gt;")&lt;BR&gt;Wscript.Quit&lt;BR&gt;&lt;BR&gt;End If &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;sInputFile = objArgs(0)&lt;BR&gt;&lt;BR&gt;Set objFSO = CreateObject ("Scripting.FileSystemObject")&lt;BR&gt;Set objFile = objFSO.OpenTextFile (sInputFile, 1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;Do Until objFile.AtEndOfStream &lt;BR&gt;strLine = objFile.Readline&lt;BR&gt;&lt;BR&gt;Set objOU = GetObject("LDAP://" &amp; sDomainDN)&lt;BR&gt;Set objGroup = objOU.Create("Group", "CN=" &amp; strLine)&lt;BR&gt;&lt;BR&gt;WScript.Echo "Creating Group: " &amp; strLine &lt;BR&gt;objGroup.Put "groupType", "-2147483646"&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;objGroup.SetInfo&lt;BR&gt;Loop&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=style2&gt;&lt;FONT size=1&gt;objFile.Close&lt;/FONT&gt;&lt;/P&gt; &lt;img src="http://geekswithblogs.net/ccalderon/aggbug/80307.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Calderon</dc:creator>
            <guid>http://geekswithblogs.net/ccalderon/archive/2006/05/31/80307.aspx</guid>
            <pubDate>Thu, 01 Jun 2006 03:01:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ccalderon/comments/80307.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ccalderon/archive/2006/05/31/80307.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/ccalderon/comments/commentRss/80307.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/ccalderon/services/trackbacks/80307.aspx</trackback:ping>
        </item>
    </channel>
</rss>
