<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sedobi&#039;s Blog</title>
	<atom:link href="http://sedobi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sedobi.wordpress.com</link>
	<description>PC, Network and other Stuff</description>
	<lastBuildDate>Tue, 16 Jun 2009 13:27:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sedobi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sedobi&#039;s Blog</title>
		<link>http://sedobi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sedobi.wordpress.com/osd.xml" title="Sedobi&#039;s Blog" />
	<atom:link rel='hub' href='http://sedobi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Set permissions per group on printers</title>
		<link>http://sedobi.wordpress.com/2009/06/16/set-permissions-per-group-on-printers/</link>
		<comments>http://sedobi.wordpress.com/2009/06/16/set-permissions-per-group-on-printers/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 13:22:47 +0000</pubDate>
		<dc:creator>sedobi</dc:creator>
				<category><![CDATA[Batch]]></category>
		<category><![CDATA[printer permissions]]></category>
		<category><![CDATA[setacl]]></category>

		<guid isPermaLink="false">http://sedobi.wordpress.com/?p=17</guid>
		<description><![CDATA[The normal way to disable printers is to stop the spooler service. The disadvantage is that no user can print anymore, including the admins. Or if a division just works an hour longer than another division. For this case you need &#8220;setacl&#8221; in /system32.  -&#62;Get here Following code sets the permission &#8220;print&#8221; for the group [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=17&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The normal way to disable printers is to stop the spooler service. The disadvantage is that no user can print anymore, including the admins.</p>
<p>Or if a division just works an hour longer than another division. For this case you need &#8220;setacl&#8221; in /system32.  -&gt;<a href="http://setacl.sourceforge.net/" target="_blank">Get here</a></p>
<p>Following code sets the permission &#8220;print&#8221; for the group &#8220;Consulting&#8221; on the printer &#8220;Prin1&#8243; at the server &#8220;server&#8221;  (you have to work with sharenames of the printers).Domainname: corp.com</p>
<p>1. Create an batchfile with the code:</p>
<p>setacl.exe -on &#8220;\\server\print1&#8243; -ot prn -actn ace -ace &#8220;n:corp.com\Consulting;p:print&#8221;</p>
<p>For other permissions and more details visit <a href="http://setacl.sourceforge.net/" target="_blank">http://setacl.sourceforge.net/</a></p>
<p>2. Now you need a batchfile which erases this permission:</p>
<p>setacl.exe -on &#8220;\\server\print1&#8243; -ot prn -actn trustee -trst &#8220;n1:corp.com\Consulting;ta:remtrst;w:dacl&#8221;</p>
<p>3. Create  jobs in the &#8220;Schedule Tasks&#8221; for each batchfile</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sedobi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sedobi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sedobi.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=17&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sedobi.wordpress.com/2009/06/16/set-permissions-per-group-on-printers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sedobi</media:title>
		</media:content>
	</item>
		<item>
		<title>LDAP Browser</title>
		<link>http://sedobi.wordpress.com/2009/06/16/ldap-browser/</link>
		<comments>http://sedobi.wordpress.com/2009/06/16/ldap-browser/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 13:05:42 +0000</pubDate>
		<dc:creator>sedobi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[ldap]]></category>

		<guid isPermaLink="false">http://sedobi.wordpress.com/?p=12</guid>
		<description><![CDATA[Tipp The Microsoft Standard &#8220;Active Directory Computer ans User&#8221; is a good tool to manage your AD. If you need ato get deeper, for example to see the exact cn&#8217;s and dc&#8217;s I prefer the LDAP Browser. -&#62; Get here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=12&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Tipp</strong></p>
<p>The Microsoft Standard &#8220;Active Directory Computer ans User&#8221; is a good tool to manage your AD. If you need ato get deeper, for example to see the exact cn&#8217;s and dc&#8217;s I prefer the LDAP Browser. -&gt; <a href="www.ldapbrowser.com" target="_blank">Get here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sedobi.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sedobi.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sedobi.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=12&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sedobi.wordpress.com/2009/06/16/ldap-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sedobi</media:title>
		</media:content>
	</item>
		<item>
		<title>Import many users into AD</title>
		<link>http://sedobi.wordpress.com/2009/06/16/import-many-users-into-ad/</link>
		<comments>http://sedobi.wordpress.com/2009/06/16/import-many-users-into-ad/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 12:48:54 +0000</pubDate>
		<dc:creator>sedobi</dc:creator>
				<category><![CDATA[VBS]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[User import]]></category>
		<category><![CDATA[xcacls]]></category>

		<guid isPermaLink="false">http://sedobi.wordpress.com/?p=8</guid>
		<description><![CDATA[Functions Import many users with one click Create Home Directories per user automatically Requirements The Files &#8220;add.vbs&#8221;, &#8220;user.txt&#8221;, &#8220;dir.cmd&#8221; in the Netlogon Dir of your Domain Controller &#8220;xcacls&#8221; in /system32  -&#62;Get here A directory named &#8220;Home$&#8221; on a server A script which mapps network drives -&#62;Comming soon An OU &#8220;groups&#8221; where all Groups are stored [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=8&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Functions</strong></p>
<ul>
<li>Import many users with one click</li>
<li>Create Home Directories per user automatically</li>
</ul>
<p><strong>Requirements</strong></p>
<ul>
<li>The Files &#8220;add.vbs&#8221;, &#8220;user.txt&#8221;, &#8220;dir.cmd&#8221; in the Netlogon Dir of your Domain Controller</li>
<li>&#8220;xcacls&#8221; in /system32  -&gt;<a href="http://www.microsoft.com/downloads/details.aspx?familyid=7a3e2241-d7d0-42b6-b86e-6eda88726c01&amp;displaylang=en" target="_blank">Get here </a></li>
<li>A directory named &#8220;Home$&#8221; on a server</li>
<li>A script which mapps network drives -&gt;Comming soon</li>
<li>An OU &#8220;groups&#8221; where all Groups are stored</li>
</ul>
<p><strong>Code</strong></p>
<p>##Content of &#8220;add.vbs&#8221;##</p>
<p>Dim fso, f, row, field<br />
Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
Set f = fso.OpenTextFile (&#8220;user.txt&#8221;,1,0)</p>
<p>Do while not f.AtEndOfLine<br />
row = f.readLine<br />
field = split(row,&#8221;,&#8221;)<br />
User = field(0)<br />
Prename = field(1)<br />
Name = field(2)<br />
Password = field(3)<br />
Division1 = field(4)<br />
Division2 = field(5)<br />
Call createuser(User,Prename,Name,Password,Division1,Division2)<br />
Loop<br />
f.Close<br />
msgbox &#8220;Finished&#8221;<br />
Wscript.Quit(0)</p>
<p>Sub createuser(User,Prename,Name,Password,Division1,Division2)<br />
Dim ouo, b, objGroup</p>
<p>Set ouo = GetObject(&#8220;LDAP://OU=&#8221; &amp; Division2 &amp;&#8221;,OU=&#8221; &amp;Division1 &amp;&#8221;,OU=NameOfOU,DC=NameOfCorp,DC=InMostCasecom&#8221;)<br />
Set b = ouo.Create(&#8220;user&#8221;, &#8220;CN=&#8221;&amp; Prename &amp; &#8221; &#8221; &amp; Name)<br />
Dim WshShell, ret<br />
Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br />
b.Put &#8220;sAMAccountName&#8221;, User<br />
b.Put &#8220;displayName&#8221;, Prename &amp; &#8221; &#8221; &amp; Name<br />
b.Put &#8220;givenName&#8221;, Prename<br />
b.Put &#8220;sn&#8221;, Name<br />
b.Put &#8220;userAccountControl&#8221;, 66082<br />
b.Put &#8220;userPrincipalName&#8221;, User &amp; &#8220;@NameOfCorp.InMostCasecom&#8221;<br />
b.Put &#8220;homeDirectory&#8221;, &#8220;\\server\Home$\&#8221; &amp;User<br />
b.Put &#8220;homeDrive&#8221;, &#8220;H:&#8221;<br />
b.put &#8220;scriptPath&#8221;, &#8220;Networkdrive.bat&#8221;     ## If you wanto to, else erase this line##<br />
b.SetInfo<br />
b.SetPassword Password<br />
b.AccountDisabled = False<br />
b.SetInfo</p>
<p>##Add users to groups##<br />
Const ADS_PROPERTY_APPEND = 3<br />
Set objGroup = GetObject(&#8220;LDAP://cn=&#8221; &amp; Division1 &amp;&#8221;,ou=Groups,ou=NameOfOu,dc=NameOfCorp,dc=InMostCasecom&#8221;)<br />
&#8216;wscript.echo &#8220;cn=&#8221; &amp;User &amp;&#8221;,ou=&#8221; &amp; Division2 &amp;&#8221;,ou=&#8221; &amp;Division1 &amp;&#8221;,ou=NameOfOu,dc=NameOfCorp,dc=InMostCasecom&#8221;<br />
objGroup.PutEx ADS_PROPERTY_APPEND,&#8221;member&#8221;, Array(&#8220;CN=&#8221;&amp; Prename &amp; &#8221; &#8221; &amp; Name &amp;&#8221;,ou=&#8221; &amp; Division2 &amp;&#8221;,ou=&#8221; &amp; Division1 &amp;&#8221;,ou=NameOfOU,dc=NameOfCorp,dc=InMostCasecom&#8221;)<br />
objGroup.SetInfo</p>
<p>WScript.Sleep(1000)<br />
ret = WshShell.Run (&#8220;dir.cmd &#8221; &amp; User,0,1)<br />
End Sub</p>
<p>##Content of &#8220;dir.cmd&#8221;##</p>
<p>md \\server\Home$\%1<br />
xcacls \\server\Home$\%1 /C /E /Y /G Administratoren:F<br />
xcacls \\server\Home$\%1 /C /E /Y /G %1:C<br />
xcacls \\server\Home$\%1 /C /E /Y /G System:F</p>
<p>##Content of &#8220;user.txt&#8221; for user John Doe##</p>
<p>JDoe,John,Doe,PasswordAsYouWant,Division1AsYouWant,Division2AsYouWant</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sedobi.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sedobi.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sedobi.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sedobi.wordpress.com&amp;blog=8158796&amp;post=8&amp;subd=sedobi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sedobi.wordpress.com/2009/06/16/import-many-users-into-ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">sedobi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
