<?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/"
	>

<channel>
	<title>A weblog about Microsoft Technologies &#187; Scriptler</title>
	<atom:link href="http://www.anilerduran.com/index.php/category/scriptler/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anilerduran.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 17:23:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Exchange 2010 &#252;zerinde Mailbox Size ların Powershell ile alınması ve mail ile g&#246;nderilmesi</title>
		<link>http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/</link>
		<comments>http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 11:41:59 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/</guid>
		<description><![CDATA[Exchange 2010 yapısına geçirdiğimiz bir müşterimizden şöyle bir talep geldi. Yapıda varolan tüm Mailbox veritabanlarındaki varolan mailboxların totalitemsize,kota,varolan sizeları gibi bilgileri belirli periyodlarla edinebilirmiyim? Burada tabiki powershell komutlarını kullanarak bazı taklalar atmamız mümkün.Hatta artık Exchange 2010 ile ilgili gelen taleplerin neredeyse tamamına aklımda powershell komutları olduğu müddetçe &#8220;œmümkündür&#8221; cevabını veriyorum. Burada yapmamız gereken Get-MailboxStatistics cmdlet [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi%2F&amp;text=Exchange+2010+%C3%BCzerinde+Mailbox+Size+lar%C4%B1n+Powershell+ile+al%C4%B1nmas%C4%B1+ve+mail+ile+g%C3%B6nderilmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/"></script></span></div><p>Exchange 2010 yapısına geçirdiğimiz bir müşterimizden şöyle bir talep geldi.</p>
<p>Yapıda varolan tüm Mailbox veritabanlarındaki varolan mailboxların totalitemsize,kota,varolan sizeları gibi bilgileri belirli periyodlarla edinebilirmiyim?</p>
<p>Burada tabiki powershell komutlarını kullanarak bazı taklalar atmamız mümkün.Hatta artık Exchange 2010 ile ilgili gelen taleplerin neredeyse tamamına aklımda powershell komutları olduğu müddetçe &#8220;œmümkündür&#8221; cevabını veriyorum.</p>
<p>Burada yapmamız gereken Get-MailboxStatistics cmdlet ini kullanmak.Bu komut ile belirli mailboxlar için belirli değerleri çekebiliyoruz.</p>
<p><a href="http://www.anilerduran.com/wp-content/uploads/2010/11/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.anilerduran.com/wp-content/uploads/2010/11/image_thumb.png" width="644" height="107" /></a></p>
<p>Burada gördüğünüz gibi bizden hangi mailbox için bu istatistikleri çekmemiz gerektiğini soruyor.Benim amacım varolan tüm veritabanları yada belirli veritabanları içerisindeki tüm mailboxlar.Bu sebeple aşağıdaki gibi komutu genişletebilirim.</p>
<p><a href="http://www.anilerduran.com/wp-content/uploads/2010/11/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.anilerduran.com/wp-content/uploads/2010/11/image_thumb1.png" width="644" height="64" /></a></p>
<p>Aynı zamanda burada get-mailboxdatabase &#8220;“identity &#8220;œMailboxdb&#8221; | get-mailboxstatistics komutu ile spesifik bir veritabanı üzerinden de bilgi çekebilirsiniz.</p>
<p>Ardından bu çıktıları itemsize’ına göre sıralamak için komutu aşağıdaki haline getirelim.</p>
<blockquote><p>Get-MailboxDatabase &quot;MailboxDB1&quot; | Get-MailboxStatistics | Sort totalitemsize &#8220;“desc </p>
</blockquote>
<p>Bizden istenen bu verilerin bir excel tablosu halinde çıktısı.Bunun için hemen çok güzel çalışan Export-CSV parametremi kullanıyorum.</p>
<blockquote><p>Get-MailboxDatabase &quot;MailboxDB1&quot; | Get-MailboxStatistics | Sort totalitemsize &#8220;“desc | Export-CSV c:\MailboxDB1Sizes.csv</p>
</blockquote>
<p>Yukarıdaki komut tüm çıktıları csv dosyasına yazacaktır.</p>
<p>Ve powershell’in son güzelliğinden faydalanarak varolan bu çıktıyı attachment olarak mail ile istediğim kullanıcılara göndermek.Buda oldukça basit.</p>
<blockquote><p>Get-MailboxDatabase &quot;MailboxDB1&quot; | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV c:\MailboxDB1Sizes.csv | Send-MailMessage &#8220;“To <a href="mailto:musteri@domain.com">musteri@domain.com</a> &#8220;“From <a href="mailto:powershell@domain.com">powershell@domain.com</a> -Subject &quot;MailboxDB1 icin aylik size degerleri&quot; -SmtpServer exchserver -Attachments c:\MailboxDB1Sizes.csv</p>
</blockquote>
<p>Oldukça kullanışlı bir komut değilmi?</p>
<p>Bu işlemden sonra yukarıdaki komutu ps1 uzantısı ile kaydedip schedule tasktan aylık çalıştırılacak şekilde ayarladığınız takdirde kullanıcıya bu mailbox server içerisindeki tüm mailboxlar ile ilgili aylık csv dosyası mail ile otomatik gönderilecektir.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi%2F&amp;t=Exchange%202010%20%26uuml%3Bzerinde%20Mailbox%20Size%20lar%C4%B1n%20Powershell%20ile%20al%C4%B1nmas%C4%B1%20ve%20mail%20ile%20g%26ouml%3Bnderilmesi" id="facebook_share_button_2013" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_2013') || document.getElementById('facebook_share_icon_2013') || document.getElementById('facebook_share_both_2013') || document.getElementById('facebook_share_button_2013');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_2013') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi%2F&amp;text=Exchange+2010+%C3%BCzerinde+Mailbox+Size+lar%C4%B1n+Powershell+ile+al%C4%B1nmas%C4%B1+ve+mail+ile+g%C3%B6nderilmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2010/exchange-2010-zerinde-mailbox-size-larin-powershell-ile-alinmasi-ve-mail-ile-gnderilmesi/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Server 2008 Uptime kontrolleri</title>
		<link>http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/</link>
		<comments>http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 10:46:39 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[boot time]]></category>
		<category><![CDATA[event viewer]]></category>
		<category><![CDATA[server 2003]]></category>
		<category><![CDATA[sunucu açık kalma süresi]]></category>
		<category><![CDATA[systeminfo]]></category>
		<category><![CDATA[uptime script]]></category>
		<category><![CDATA[uptime süresi]]></category>
		<category><![CDATA[uptime.exe]]></category>
		<category><![CDATA[windows server 2000]]></category>
		<category><![CDATA[windows server 2008]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=1373</guid>
		<description><![CDATA[Server 2008 üzerinde uptime değerini alabilmek için aslında birçok şansımız var.Bu yazıda kısaca bunlardan bahsedelim. 1)Task Manager Aslında  en kolay yöntem bu sanırım.Server 2008 üzerinde task manager ekranında bizi &#8220;uptime&#8221; adında bir değer karşılıyor.Aşağıdaki resimde göreceğiniz üzere sunucunun uptime süresini öğrenebilirsiniz. 2)Systeminfo komutu Server 2008 altında systeminfo komutunu aşağıdaki parametre ile kullanırsanız size sunucunun açıldığı [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fserver-2008-uptime-kontrolleri%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fserver-2008-uptime-kontrolleri%2F&amp;text=Server+2008+Uptime+kontrolleri" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/"></script></span></div><p>Server 2008 üzerinde uptime değerini alabilmek için aslında birçok şansımız var.Bu yazıda kısaca bunlardan bahsedelim.</p>
<p><strong>1)Task Manager</strong></p>
<p>Aslında  en kolay yöntem bu sanırım.Server 2008 üzerinde task manager ekranında bizi &#8220;uptime&#8221; adında bir değer karşılıyor.Aşağıdaki resimde göreceğiniz üzere sunucunun uptime süresini öğrenebilirsiniz.</p>
<p><img class="alignnone size-full wp-image-1374" title="server2008uptime" src="http://www.anilerduran.com/wp-content/uploads/2009/08/server2008uptime.JPG" alt="server2008uptime" width="397" height="439" /></p>
<p><strong>2)Systeminfo komutu</strong></p>
<p>Server 2008 altında systeminfo komutunu aşağıdaki parametre ile kullanırsanız size sunucunun açıldığı zamanı verecektir.</p>
<p><img class="alignnone size-full wp-image-1375" title="server2008uptime2" src="http://www.anilerduran.com/wp-content/uploads/2009/08/server2008uptime2.JPG" alt="server2008uptime2" width="488" height="63" /></p>
<p><strong>3)Eventviewer</strong></p>
<p>Eventviewer altında 6005 nolu event sunucunun boot işlemini bitirdiğini bize bildirir.Aşağıdaki resimde benim sunucum üzerindeki bir örneğini görebilirsiniz.</p>
<p><img class="alignnone size-medium wp-image-1376" title="server2008uptime3" src="http://www.anilerduran.com/wp-content/uploads/2009/08/server2008uptime3-300x240.jpg" alt="server2008uptime3" width="300" height="240" /></p>
<p>İsterseniz filtreleme sayesinde sadece id 6005 olanları listeyerek boot süresini öğrenebilirsiniz.</p>
<p><strong>4)Uptime.exe</strong></p>
<p>Microsoft&#8217;un uptime.exe adında ufak bir komut satırı aracı var. <a href="http://support.microsoft.com/kb/232243">http://support.microsoft.com/kb/232243</a>  adresinden indirebilirsiniz.İndirdiğiniz bu aracı Windows Server 2008 sunucunuz üzerinde system32 altına kopyalayıp komutu çalıştırdığımızda aşağıdaki gibi bir çıktı verecektir.</p>
<p><img class="alignnone size-full wp-image-1377" title="server2008uptime4" src="http://www.anilerduran.com/wp-content/uploads/2009/08/server2008uptime4.JPG" alt="server2008uptime4" width="667" height="132" /></p>
<p><strong>5)Scriptler</strong></p>
<p>Microsoft&#8217;un scripting guy üzerindeki scriptlerini araştırdığınızda karşınıza powershell ve vbs ile hazırlanmış uptime süresini veren hazır scriptleri bulabilirsiniz.Hatta iki tane hazır scriptin adresini verelim.</p>
<p><a href="http://technet.microsoft.com/en-us/magazine/2008.12.heyscriptingguy.aspx?pr=blog">http://technet.microsoft.com/en-us/magazine/2008.12.heyscriptingguy.aspx?pr=blog</a></p>
<p><a href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug05/hey0802.mspx">http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug05/hey0802.mspx</a></p>
<p>Birisi powershell birisi vbs ile hazırlanmış scriptleri kullanarakda uptime değerine ulaşabilirsiniz.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fserver-2008-uptime-kontrolleri%2F&amp;t=Server%202008%20Uptime%20kontrolleri" id="facebook_share_button_1373" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1373') || document.getElementById('facebook_share_icon_1373') || document.getElementById('facebook_share_both_1373') || document.getElementById('facebook_share_button_1373');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1373') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fserver-2008-uptime-kontrolleri%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fserver-2008-uptime-kontrolleri%2F&amp;text=Server+2008+Uptime+kontrolleri" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2009/server-2008-uptime-kontrolleri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSDEtoText &#8211; ISA 2006 loglarının görüntülenmesi</title>
		<link>http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/</link>
		<comments>http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 16:31:09 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[ISA Server]]></category>
		<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[isa server 2006]]></category>
		<category><![CDATA[isa server logs]]></category>
		<category><![CDATA[msde database]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=1284</guid>
		<description><![CDATA[ISA Server 2006 varsayılan olarak log dosyalarını MSDE veritabanında saklar.Ve yine varsayılan konfigurasyonda bu logların dizini ISA Server kurulum dizini altındaki ISALogs klasörüdür.Bu klasörün içeriğini incelediğinizde .mdf uzantılı dosyaları görebilirsiniz.Bu logları text tabanlı görüntülemek için Microsoft&#8217;un güzel bir scripti bulunuyor.Buradaki adresten indirebileceğiniz MSDEtoText.vbs scriptini aşağıdaki parametreler ile kullandığınızda belirttiğiniz dizine txt formatı ile yine belirttiğiniz [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fmsdetotext-isa-2006-loglarinin-goruntulenmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fmsdetotext-isa-2006-loglarinin-goruntulenmesi%2F&amp;text=MSDEtoText+%E2%80%93+ISA+2006+loglar%C4%B1n%C4%B1n+g%C3%B6r%C3%BCnt%C3%BClenmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/"></script></span></div><p>ISA Server 2006 varsayılan olarak log dosyalarını MSDE veritabanında saklar.Ve yine varsayılan konfigurasyonda bu logların dizini ISA Server kurulum dizini altındaki ISALogs klasörüdür.Bu klasörün içeriğini incelediğinizde .mdf uzantılı dosyaları görebilirsiniz.Bu logları text tabanlı görüntülemek için Microsoft&#8217;un güzel bir scripti bulunuyor.<a href="http://www.microsoft.com/downloads/thankyou.aspx?familyId=23531736-942f-466c-acb3-861a899d37b4&amp;displayLang=en" target="_blank">Buradaki adresten</a> indirebileceğiniz MSDEtoText.vbs scriptini aşağıdaki parametreler ile kullandığınızda belirttiğiniz dizine txt formatı ile yine belirttiğiniz log database&#8217;ini export edebilirsiniz.</p>
<p>Scripti kullanmak için scripti yüklediğiniz dizine komut satırından inerek ;</p>
<p><strong>MSDEToText.vbs ISALOG_20090315_FWS_000 FireWallLog c:\loglarım.txt</strong></p>
<p>parametreleri ile kullanabilirsiniz.Bu takdirde ISALOG_20090315_FWS_000 isimli veritabanı c:\loglarım.txt dosyası içerisine export edilecektir.Aynı şekilde FirewallLog parametresi yerine WebProxyLog parametresini kullanarak bu loglarıda export edebilirsiniz.</p>
<p>Küçük ama kullanışlı bir script.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fmsdetotext-isa-2006-loglarinin-goruntulenmesi%2F&amp;t=MSDEtoText%20-%20ISA%202006%20loglar%C4%B1n%C4%B1n%20g%C3%B6r%C3%BCnt%C3%BClenmesi" id="facebook_share_button_1284" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1284') || document.getElementById('facebook_share_icon_1284') || document.getElementById('facebook_share_both_1284') || document.getElementById('facebook_share_button_1284');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1284') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fmsdetotext-isa-2006-loglarinin-goruntulenmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fmsdetotext-isa-2006-loglarinin-goruntulenmesi%2F&amp;text=MSDEtoText+%E2%80%93+ISA+2006+loglar%C4%B1n%C4%B1n+g%C3%B6r%C3%BCnt%C3%BClenmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2009/msdetotext-isa-2006-loglarinin-goruntulenmesi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>File cannot be loaded because the execution of scripts is disabled on this system error in PowerShell</title>
		<link>http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/</link>
		<comments>http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 20:15:17 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[exchange server 2007]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=961</guid>
		<description><![CDATA[Powershell&#8217;i kurdunuz yada exchange 2007 için exchange management shell üzerinde varolan bir .ps1 dosyasını çalıştırdığımızda; File cannot be loaded because the execution of scripts is disabled on this system error in PowerShell hatası alabiliriz.Bunun sebebi aslında defaultta gelen güvenlik ayarları.Varolan güvenlik ayarları scriptin çalıştırılmasına izin vermiyor demektir.Yani teknik olarak Execution Policy durumu.Temelde varolan execution policyler [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Ffile-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Ffile-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell%2F&amp;text=File+cannot+be+loaded+because+the+execution+of+scripts+is+disabled+on+this+system+error+in+PowerShell" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/"></script></span></div><p>Powershell&#8217;i kurdunuz yada exchange 2007 için exchange management shell üzerinde varolan bir .ps1 dosyasını çalıştırdığımızda;</p>
<p><strong>File cannot be loaded because the execution of scripts is disabled on this system error in PowerShell</strong></p>
<p>hatası alabiliriz.Bunun sebebi aslında defaultta gelen güvenlik ayarları.Varolan güvenlik ayarları scriptin çalıştırılmasına izin vermiyor demektir.Yani teknik olarak <strong>Execution Policy</strong> durumu.Temelde varolan execution policyler aşağıdaki gibidir.</p>
<p><strong>Restricted: </strong>Varsayılan ayar budur.Bazı özel komutlar çalışırken powershell scriptleri çalışmaz.<br />
<strong>AllSigned: </strong>Scriptler çalışabilir fakat local bilgisayar üzerinde digital bir imzaya sahip olması lazım .Scriptleri çalıştırmadan önce uyarı verir.<br />
<strong>RemoteSigned: </strong>Digital imzalara gerek yoktur.Fakat internet üzerinden yada mail ile yüklenen scriptlet için imzaya gerek vardır.<br />
<strong>Unrestricted:</strong> Her script çalıştırılır.Dışarıdan yüklenen scriptler ise uyarı verir.</p>
<p>O zaman bireysel bilgisayarınızda çalışıyorsanız yani kurumsal bir ortamda değilseniz geçici olarak scripti çalıştırabilmek için policy settingsi unrestricted&#8217;a çekebiliriz.Bunun için yapmamız gereken;</p>
<p><strong>Set-ExecutionPolicy Unrestricted</strong></p>
<p>Aynı şekilde diğer policyleride bu komuttaki gibi koşturabiliriz.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Ffile-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell%2F&amp;t=File%20cannot%20be%20loaded%20because%20the%20execution%20of%20scripts%20is%20disabled%20on%20this%20system%20error%20in%20PowerShell" id="facebook_share_button_961" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_961') || document.getElementById('facebook_share_icon_961') || document.getElementById('facebook_share_both_961') || document.getElementById('facebook_share_button_961');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_961') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Ffile-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Ffile-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell%2F&amp;text=File+cannot+be+loaded+because+the+execution+of+scripts+is+disabled+on+this+system+error+in+PowerShell" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2008/file-cannot-be-loaded-because-the-execution-of-scripts-is-disabled-on-this-system-error-in-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 komut ile kurulum</title>
		<link>http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/</link>
		<comments>http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 07:24:09 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[exchange server 2007]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=905</guid>
		<description><![CDATA[Aşamaları takip etmeniz zor.Verdiği hataları yada eksik önyüklemeleri seçmeniz uğraştırıyor.Ama yinede bilmenizde fayda var.Sunucu üzerine exchange 2007 kurulumunu komut satırından yada powershell içerisinden gerçekleştirebilirsiniz.Aşina olduğumuz komut satırından gerçekleştirmek için Exchange 2007 dvd dizinine inerek; Setup.Com &#8220;/r:M,HT,C&#8221; &#8220;/on:Messaging&#8221; komutunu koşturun. Aynı işlemi powershell üzerinde gerçekleştirmek içinde; ./Setup.Com &#8220;/r:M,HT,C&#8221; &#8220;/on:Messaging&#8221; komutu işinizi görücektir. Fakat gerçekten verdiği hataları [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fexchange-2007-komut-ile-kurulum%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fexchange-2007-komut-ile-kurulum%2F&amp;text=Exchange+2007+komut+ile+kurulum" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/"></script></span></div><p>Aşamaları takip etmeniz zor.Verdiği hataları yada eksik önyüklemeleri seçmeniz uğraştırıyor.Ama yinede bilmenizde fayda var.Sunucu üzerine exchange 2007 kurulumunu komut satırından yada powershell içerisinden gerçekleştirebilirsiniz.Aşina olduğumuz komut satırından gerçekleştirmek için Exchange 2007 dvd dizinine inerek;</p>
<p><em><strong>Setup.Com &#8220;/r:M,HT,C&#8221; &#8220;/on:Messaging&#8221;</strong></em> komutunu koşturun.</p>
<p>Aynı işlemi powershell üzerinde gerçekleştirmek içinde;</p>
<p><strong><em>./Setup.Com &#8220;/r:M,HT,C&#8221; &#8220;/on:Messaging&#8221; </em></strong> komutu işinizi görücektir.</p>
<p>Fakat gerçekten verdiği hataları gözlemlemek,yükleme ayrıntılarını gözlemlemek için GUI aracılığı ile yükleme yapmanız daha yararlı olucaktır.Bu komut aklımızın bir köşesinde kalsın.</p>
<p>Bu arada unutmadan r: parametresi bize rolleri belirtiyor.</p>
<p>M:Mailbox HT:Hub transport C:client access rolleri</p>
<p>On: parametreside kuracağımız exchange organizasyonunun ismi&#8230;</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fexchange-2007-komut-ile-kurulum%2F&amp;t=Exchange%202007%20komut%20ile%20kurulum" id="facebook_share_button_905" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_905') || document.getElementById('facebook_share_icon_905') || document.getElementById('facebook_share_both_905') || document.getElementById('facebook_share_button_905');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_905') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fexchange-2007-komut-ile-kurulum%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fexchange-2007-komut-ile-kurulum%2F&amp;text=Exchange+2007+komut+ile+kurulum" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2008/exchange-2007-komut-ile-kurulum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell ile mail gönderimi</title>
		<link>http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/</link>
		<comments>http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/#comments</comments>
		<pubDate>Sun, 04 May 2008 12:42:20 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[send mail]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=796</guid>
		<description><![CDATA[Bildiğimiz gibi artık powershell ile sunucularımızı ve işlerimizi yönetebiliyoruz.Powershell&#8217;in bir diğer marifetide Net.Mail.SmtpClient objesini kullanarak mail gönderebilmesi.Aşağıdaki kodları kullanarak isterseniz bir.ps1 oluşturabilir ve bunu schedule ile istediğiniz zamanlarda çalıştırabilirsiniz.Powershell&#8217;de mail gönderimi için $emailFrom = &#8220;user@yourdomain.com&#8221; $emailTo = &#8220;user@yourdomain.com&#8221; $subject = &#8220;your subject&#8221; $body = &#8220;your body&#8221; $smtpServer = &#8220;your smtp server&#8221; $smtp = new-object Net.Mail.SmtpClient($smtpServer) [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fpowershell-ile-mail-gonderimi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fpowershell-ile-mail-gonderimi%2F&amp;text=Powershell+ile+mail+g%C3%B6nderimi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/"></script></span></div><p><img class="alignright" style="float: right;" src="http://daveweaver.net/media/blog/WindowsLiveWriter/PowerShellCheatSheet_D9B5/image.png" alt="" width="123" height="90" /></p>
<p>Bildiğimiz gibi artık powershell ile sunucularımızı ve işlerimizi yönetebiliyoruz.Powershell&#8217;in bir diğer marifetide Net.Mail.SmtpClient objesini kullanarak mail gönderebilmesi.Aşağıdaki kodları kullanarak isterseniz bir.ps1 oluşturabilir ve bunu schedule ile istediğiniz zamanlarda çalıştırabilirsiniz.Powershell&#8217;de mail gönderimi için</p>
<p><span style="color: #ff0000;">$emailFrom = &#8220;user@yourdomain.com&#8221;<br />
$emailTo = &#8220;user@yourdomain.com&#8221;<br />
$subject = &#8220;your subject&#8221;<br />
$body = &#8220;your body&#8221;<br />
$smtpServer = &#8220;your smtp server&#8221;<br />
$smtp = new-object Net.Mail.SmtpClient($smtpServer)<br />
$smtp.Send($emailFrom, $emailTo, $subject, $body)</span></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fpowershell-ile-mail-gonderimi%2F&amp;t=Powershell%20ile%20mail%20g%C3%B6nderimi" id="facebook_share_button_796" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_796') || document.getElementById('facebook_share_icon_796') || document.getElementById('facebook_share_both_796') || document.getElementById('facebook_share_button_796');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_796') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fpowershell-ile-mail-gonderimi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2008%2Fpowershell-ile-mail-gonderimi%2F&amp;text=Powershell+ile+mail+g%C3%B6nderimi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2008/powershell-ile-mail-gonderimi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lotus Notes&#8217;dan Exchange 2007&#8242;ye migration için örnek script</title>
		<link>http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/</link>
		<comments>http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 15:18:36 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/</guid>
		<description><![CDATA[Marc Nivens&#8217;ın yazdığı aşağıdaki örnek script ile ,yapımızdaki Lotus Notes kullanıcılarını Exchange 2007&#8242;ye migrate edebiliriz.Bunun için tek yapmamız gereken kullanıcıları aşağıdaki formatla bir txt dosyasına kaydetmek: Anil Erduran/DOMINO Osman Yagmurdereli/DOMINO Hülya Avsar/DOMINO Ardından aşağıdaki scripti çalıştırarak migrate işlemine başlayabiliriz. $TargetDatabase = &#8220;EXCHANGE\First Storage Group\Mailbox Store&#8221; $SourceFile = &#8220;c:\dominousers.txt&#8221; $a = remove-item c:\miglog.txt -ea SilentlyContinue $error.Clear() [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Flotus-notesdan-exchange-2007ye-migration-icin-ornek-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Flotus-notesdan-exchange-2007ye-migration-icin-ornek-script%2F&amp;text=Lotus+Notes%E2%80%99dan+Exchange+2007%E2%80%B2ye+migration+i%C3%A7in+%C3%B6rnek+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/"></script></span></div><p>Marc Nivens&#8217;ın yazdığı aşağıdaki örnek script ile ,yapımızdaki Lotus Notes kullanıcılarını Exchange 2007&#8242;ye migrate edebiliriz.Bunun için tek yapmamız gereken kullanıcıları aşağıdaki formatla bir txt dosyasına kaydetmek:</p>
<p><em>Anil Erduran/DOMINO<br />
Osman Yagmurdereli/DOMINO<br />
Hülya Avsar/DOMINO</em></p>
<p>Ardından aşağıdaki scripti çalıştırarak migrate işlemine başlayabiliriz.<br />
<em><br />
$TargetDatabase = &#8220;EXCHANGE\First Storage Group\Mailbox Store&#8221;<br />
$SourceFile = &#8220;c:\dominousers.txt&#8221;<br />
$a = remove-item c:\miglog.txt -ea SilentlyContinue<br />
$error.Clear()<br />
$UserList = Get-Content $SourceFile<br />
foreach($user in $UserList)<br />
{<br />
     $message = &#8220;Migrating User &#8221; + $user<br />
     write-output $message | out-file -filePath &#8220;c:\miglog.txt&#8221; -append -noClobber<br />
     move-dominomailbox $user -TargetMailboxDatabase $TargetDatabase<br />
     if($error.Count -ne 0)<br />
     {<br />
           $message = &#8220;User &#8221; + $user + &#8221; failed migration&#8221;<br />
           write-output $message | out-file -filePath &#8220;c:\miglog.txt&#8221; -append -noClobber<br />
           $message = &#8220;Error: &#8221; + $error[0].ToString()<br />
           write-output $message | out-file -filePath &#8220;c:\miglog.txt&#8221; -append -noClobber<br />
           $error.Clear()<br />
     }<br />
}</em></p>
<p>c:\dominousers.txt dizinindeki dosyada kullanıcıları kaydettiğimiz txt dosyası bulunuyor.Ayrıca migrate işlemi sırasında meydana gelen hatalar c:\miglog.txt dosyasına yazılıyor.<br />
Buradaki değerleri değiştirerek yada eklemeler yaparak daha spesifik migrate çözümleri üretebiliriz.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Flotus-notesdan-exchange-2007ye-migration-icin-ornek-script%2F&amp;t=Lotus%20Notes%27dan%20Exchange%202007%27ye%20migration%20i%C3%A7in%20%C3%B6rnek%20script" id="facebook_share_button_443" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_443') || document.getElementById('facebook_share_icon_443') || document.getElementById('facebook_share_both_443') || document.getElementById('facebook_share_button_443');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_443') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Flotus-notesdan-exchange-2007ye-migration-icin-ornek-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Flotus-notesdan-exchange-2007ye-migration-icin-ornek-script%2F&amp;text=Lotus+Notes%E2%80%99dan+Exchange+2007%E2%80%B2ye+migration+i%C3%A7in+%C3%B6rnek+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/lotus-notesdan-exchange-2007ye-migration-icin-ornek-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Batch File ile chkdsk &#8211; AT komutu</title>
		<link>http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/</link>
		<comments>http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/#comments</comments>
		<pubDate>Mon, 27 Aug 2007 14:47:45 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/batch-file-ile-chkdsk-at-komutu/</guid>
		<description><![CDATA[Komut isteminde AT komutu ile zamanlanmış görevler oluşturabiliriz.Örneğin: AT \\bilgisayarismi 02:00 /Interactive /every:pazartesi CHKDSK C: komutunu yazdığımızda yada batch dosyası olarak kaydedip çalıştırdığımızda chkdsk aracı her pazartesi saat 02:00&#8242;da çalışacak vaziyette zamanlanmış olur. Aynı zamanda bu disk kontrol işlemi sırasında log tutulmasını sağlayabiliriz.Bunun için ayrı bir .bat dosyası hazırlamamız gerekiyor.AT komutunu aşağıdaki gibi kullanalım: AT [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbatch-file-ile-chkdsk-at-komutu%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbatch-file-ile-chkdsk-at-komutu%2F&amp;text=Batch+File+ile+chkdsk+%E2%80%93+AT+komutu" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/"></script></span></div><p>Komut isteminde AT komutu ile zamanlanmış görevler oluşturabiliriz.Örneğin:</p>
<p>AT \\bilgisayarismi 02:00 /Interactive /every:pazartesi CHKDSK C:</p>
<p>komutunu yazdığımızda yada batch dosyası olarak kaydedip çalıştırdığımızda chkdsk aracı her pazartesi saat 02:00&#8242;da çalışacak vaziyette zamanlanmış olur.<br />
Aynı zamanda bu disk kontrol işlemi sırasında log tutulmasını sağlayabiliriz.Bunun için ayrı bir .bat dosyası hazırlamamız gerekiyor.AT komutunu aşağıdaki gibi kullanalım:</p>
<p>AT \\bilgisayarismi 02:00 /Interactive /every:Friday loglama.BAT </p>
<p>Bu zamanlanmış görev loglama.bat dosyasını çağıracaktır.Bunun için birde loglama.bat isminde dosya oluşturacağız.Chkdsk işlemini loglara dökmek oldukça basit.> işareti komuttan sonra konulduğunda o komutun bilgilerini export etmeye yarar.Bunun için aşağıdaki komutu kullanacağız:</p>
<p>CHKDSK > DURUM.LOG<br />
Bu durumda ilk batch dosyamız ikincisini belirlenen zaman aralıklarında çağıracak.Ardından ikinci dosyada işlemini yapıp,kontrolden sonra log dosyasını oluşturucak.<br />
Burada dikkat etmemiz gereken başka bir konu daha var.Biz bir görev oluşturduk.Yani her pazartesi saat 2&#8242;de bu komut çalışacak ve loglama işlemini yapıcak.Bu log dosyalarının isimlerini benzersiz yapmamız gerekli ki,hangi hafta hangi loglama yapılmış kolayca ayırt edebilelim.Bunun için değişkenleri kullanacağız.</p>
<p>for /F &#8220;tokens=2,3,4 delims=/ &#8221; %%i in (&#8216;date /t&#8217;) do set datefile=%%i%%j%%k.log<br />
Chkdsk > %datefile%</p>
<p>Buradaki komutla birlikte .log dosyasının ismini sistem tarihine göre ayarlamasını sağladık.Chkdsk komutuda log dosyasını bu değişkene göre oluşturacak</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbatch-file-ile-chkdsk-at-komutu%2F&amp;t=Batch%20File%20ile%20chkdsk%20-%20AT%20komutu" id="facebook_share_button_425" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_425') || document.getElementById('facebook_share_icon_425') || document.getElementById('facebook_share_both_425') || document.getElementById('facebook_share_button_425');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_425') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbatch-file-ile-chkdsk-at-komutu%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbatch-file-ile-chkdsk-at-komutu%2F&amp;text=Batch+File+ile+chkdsk+%E2%80%93+AT+komutu" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/batch-file-ile-chkdsk-at-komutu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Exchange üzerinde email kota ayarı scripti</title>
		<link>http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/</link>
		<comments>http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 17:31:48 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/microsoft-exchange-uzerinde-email-kota-ayari-scripti/</guid>
		<description><![CDATA[on error resume next CONST QUOTA_EXEMPTION = 500000 &#8220;˜* > mDBOverHardQuotaLimit is exempted to use default quota CONST EXEMPTED_WORD = &#8220;œexempted&#8221; Const ADS_SCOPE_SUBTREE = 2 Const ADS_CHASE_REFERRALS_EXTERNAL = &#038;h40 Const ADS_UF_DONT_EXPIRE_PASSWD = &#038;h10000 Const E_ADS_PROPERTY_NOT_FOUND = &#038;h8000500D Const ADS_UF_PASSWD_CANT_CHANGE = &#038;h00040 Const ADS_UF_PASSWORD_EXPIRED = &#038;H80000 Const ADS_UF_LOCKOUT = &#038;h00010 Set rootDSE = GetObject(&#8220;LDAP://RootDSE&#8221;) sObjectDN = [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-uzerinde-email-kota-ayari-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-uzerinde-email-kota-ayari-scripti%2F&amp;text=Microsoft+Exchange+%C3%BCzerinde+email+kota+ayar%C4%B1+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/"></script></span></div><p>on error resume next</p>
<p>CONST QUOTA_EXEMPTION = 500000 &#8220;˜* > mDBOverHardQuotaLimit is exempted to use default quota<br />
CONST EXEMPTED_WORD = &#8220;œexempted&#8221;</p>
<p>Const ADS_SCOPE_SUBTREE = 2<br />
Const ADS_CHASE_REFERRALS_EXTERNAL = &#038;h40<br />
Const ADS_UF_DONT_EXPIRE_PASSWD = &#038;h10000<br />
Const E_ADS_PROPERTY_NOT_FOUND = &#038;h8000500D<br />
Const ADS_UF_PASSWD_CANT_CHANGE = &#038;h00040<br />
Const ADS_UF_PASSWORD_EXPIRED = &#038;H80000<br />
Const ADS_UF_LOCKOUT = &#038;h00010</p>
<p>Set rootDSE = GetObject(&#8220;LDAP://RootDSE&#8221;)<br />
sObjectDN = &#8220;œLDAP://&#8221; &#038; rootDSE.Get(&#8220;defaultNamingContext&#8221;)<span id="more-479"></span><br />
Set rootDSE = Nothing<br />
Set oIADs = GetObject(sObjectDN)<br />
set con=createobject(&#8220;ADODB.Connection&#8221;)<br />
set com =createobject(&#8220;ADODB.Command&#8221;)<br />
Set WshShell = Wscript.CreateObject(&#8220;Wscript.Shell&#8221;)<br />
Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)</p>
<p>con.Provider = &#8220;œADsDSOObject&#8221;<br />
con.Open &#8220;œActive Directory Provider&#8221;</p>
<p>Set Com.ActiveConnection = con</p>
<p>sMsg = &#8220;œselect AdsPath,CN,Name,samAccountName from &#8220;˜&#8221; &#038; oIADs.ADsPath<br />
sMsg = sMsg &#038; &#8220;œ&#8221;˜ where objectCategory=’user’ order by Name&#8221;</p>
<p>Com.CommandText = sMsg<br />
Com.Properties(&#8220;searchscope&#8221;) = ADS_SCOPE_SUBTREE<br />
Com.Properties(&#8220;Chase referrals&#8221;) = ADS_CHASE_REFERRALS_EXTERNAL<br />
Com.Properties(&#8220;Cache Results&#8221;) = False</p>
<p>Set rs = Com.Execute<br />
i = 0</p>
<p>While Not rs.EOF<br />
&#8220;˜ wscript.echo rs.Fields(&#8220;fieldname&#8221;)<br />
DoWorkOnUser rs.Fields(&#8220;AdsPath&#8221;)<br />
i = i + 1<br />
rs.MoveNext<br />
Wend</p>
<p>rs.Close</p>
<p>Sub DoWorkOnUser(strUser)</p>
<p>Set objUser = GetObject(strUser)<br />
Err.Clear</p>
<p>If len(objUser.DisplayName)=0 Then<br />
wscript.echo objUser.Name &#038; &#8220; &#8211; No Access !!!!!!!!!!&#8221;<br />
Else<br />
if objUser.MDBUseDefaults = &#8220;œFalse&#8221; then<br />
Wscript.echo &#8220;œ&#8221;”-&#8221;<br />
Wscript.echo &#8220;œDisplayName &#8211; &#8220; &#038; objUser.DisplayName<br />
Wscript.echo &#8220;œmDBOverHardQuotaLimit &#8211; &#8220; &#038; objUser.mDBOverHardQuotaLimit<br />
Wscript.echo &#8220;œmDBOverQuotaLimit &#8211; &#8220; &#038; objUser.mDBOverQuotaLimit<br />
Wscript.echo &#8220;œmDBStorageQuota &#8211; &#8220; &#038; objUser.mDBStorageQuota<br />
Wscript.echo &#8220;œmDBUseDefaults &#8211; &#8220; &#038; objUser.mDBUseDefaults<br />
lsResult = objUser.mDBUseDefaults<br />
If objUser.mDBOverHardQuotaLimit >= QUOTA_EXEMPTION Then<br />
Wscript.echo &#8220;œEXEMPTED: &#8220; &#038; objUser.mDBOverHardQuotaLimit &#038; &#8220; is over default quota &#8220; &#038; QUOTA_EXEMPTION &#038; &#8220;œ.&#8221;<br />
lsResult = lsResult &#038; EXEMPTED_WORD<br />
End If<br />
&#8220;˜SET THE QUOTAS TO DEFAULT!<br />
SetMbxQuotas strUser<br />
Wscript.echo &#8220;œ&#8221;”-&#8221;<br />
end if<br />
End If<br />
Set objUser = nothing<br />
&#8220;˜ RetrieveUserSettings = lsResult</p>
<p>End sub</p>
<p>&#8220;˜* &#8220;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”<br />
&#8220;˜* Function: Set User Settings<br />
&#8220;˜* &#8220;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”&#8221;”<br />
Sub SetMbxQuotas (strUser)</p>
<p>wscript.echo &#8220;œSetting mDBUseDefaults to True.&#8221;<br />
Set SetUser = GetObject(strUser)<br />
SetUser.Put &#8220;œmDBUseDefaults&#8221;, True<br />
SetUser.Put &#8220;œmDBOverHardQuotaLimit&#8221;, 0<br />
SetUser.Put &#8220;œmDBOverQuotaLimit&#8221;, 0<br />
SetUser.Put &#8220;œmDBStorageQuota&#8221;, 0<br />
SetUser.SetInfo<br />
If err.number > 0 Then<br />
wscript.echo &#8220;œError setting account attribute: &#8220; &#038; lsAttribute<br />
err.Clear<br />
on error goto 0<br />
Else<br />
wscript.echo &#8220;œSet to True successfully.&#8221;<br />
End If<br />
Set SetUser = nothing</p>
<p>End Sub</p>
<p>wscript.quit</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-uzerinde-email-kota-ayari-scripti%2F&amp;t=Microsoft%20Exchange%20%C3%BCzerinde%20email%20kota%20ayar%C4%B1%20scripti" id="facebook_share_button_479" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_479') || document.getElementById('facebook_share_icon_479') || document.getElementById('facebook_share_both_479') || document.getElementById('facebook_share_button_479');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_479') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-uzerinde-email-kota-ayari-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-uzerinde-email-kota-ayari-scripti%2F&amp;text=Microsoft+Exchange+%C3%BCzerinde+email+kota+ayar%C4%B1+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/microsoft-exchange-uzerinde-email-kota-ayari-scripti/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Active Directory Users Export</title>
		<link>http://www.anilerduran.com/index.php/2007/active-directory-users-export/</link>
		<comments>http://www.anilerduran.com/index.php/2007/active-directory-users-export/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 06:16:35 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/active-directory-users-export/</guid>
		<description><![CDATA[Active Directory üzerindeki tüm kullanıcıları bir excel dosyasına export etmek için aşağıdaki scripti kullanabiliriz. Eğer Office sürümü ingilizce ise script içindeki &#8220;sayfa1&#8243; değerini &#8220;sheet1&#8243; olarak değiştirmeliyiz. http://anilerduran.com/ad-export.vbs Share]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Factive-directory-users-export%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/active-directory-users-export/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Factive-directory-users-export%2F&amp;text=Active+Directory+Users+Export" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/active-directory-users-export/"></script></span></div><p>Active Directory üzerindeki tüm kullanıcıları bir excel dosyasına export etmek için aşağıdaki scripti kullanabiliriz.<br />
Eğer Office sürümü ingilizce ise script içindeki &#8220;sayfa1&#8243; değerini &#8220;sheet1&#8243; olarak değiştirmeliyiz.</p>
<p><a href="http://anilerduran.com/ad-export.vbs">http://anilerduran.com/ad-export.vbs</a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Factive-directory-users-export%2F&amp;t=Active%20Directory%20Users%20Export" id="facebook_share_button_401" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_401') || document.getElementById('facebook_share_icon_401') || document.getElementById('facebook_share_both_401') || document.getElementById('facebook_share_button_401');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_401') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Factive-directory-users-export%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/active-directory-users-export/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Factive-directory-users-export%2F&amp;text=Active+Directory+Users+Export" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/active-directory-users-export/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/active-directory-users-export/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oturum açma-kapama işlemini loglama</title>
		<link>http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/</link>
		<comments>http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 09:19:40 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/oturum-acma-kapama-islemini-loglama/</guid>
		<description><![CDATA[Networkümüzde bulunan istemci makinalara hangi tarihte kim saat kaçta oturum açmış yada kapamış gibi bilgilere erişmek için ufak bir script kullanabiliriz. echo Oturum Açma %username% %computername% %date% %time% >> \\192.168.x.x\sysvol\OTURUM_ACMA_KAYITLARI\%username%.txt Bu komut ile oturum açan kullanıcılar belirttiğimiz ip adresindeki OTURUM_ACMA_KAYITLARI klasörü altına kullanıcı isimleri kullanılarak loglanacaktır. echo Oturum Kapama %username% %computername% %date% %time% >> \\192.168.x.x\sysvol\OTURUM_KAPAMA_KAYITLARI\%username%.txt [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Foturum-acma-kapama-islemini-loglama%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Foturum-acma-kapama-islemini-loglama%2F&amp;text=Oturum+a%C3%A7ma-kapama+i%C5%9Flemini+loglama" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/"></script></span></div><p>Networkümüzde bulunan istemci makinalara hangi tarihte kim saat kaçta oturum açmış yada kapamış gibi bilgilere erişmek için ufak bir script kullanabiliriz.</p>
<p><strong>echo Oturum Açma %username% %computername% %date% %time% >> \\192.168.x.x\sysvol\OTURUM_ACMA_KAYITLARI\%username%.txt</strong></p>
<p>Bu komut ile oturum açan kullanıcılar belirttiğimiz ip adresindeki OTURUM_ACMA_KAYITLARI klasörü altına kullanıcı isimleri kullanılarak loglanacaktır.</p>
<p><strong>echo Oturum Kapama %username% %computername% %date% %time% >> \\192.168.x.x\sysvol\OTURUM_KAPAMA_KAYITLARI\%username%.txt</strong></p>
<p>Burada ise aynı işlemi oturum kapama için kullanıyoruz.Sondaki .txt uzantısını .cvs yaparak excel ile daha ayrıntılı bir tablo elde edebiliriz.</p>
<p>Scriptleri hazırladıktan sonra yapmamız gerekn GPO ile logon ve logoff script olarak tüm organizasyona bunu atamak.Aşağıda anlatımı mevcut..</p>
<p><a href="http://www.anilerduran.com/index.php/logon-scripts/">http://www.anilerduran.com/index.php/logon-scripts/</a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Foturum-acma-kapama-islemini-loglama%2F&amp;t=Oturum%20a%C3%A7ma-kapama%20i%C5%9Flemini%20loglama%20" id="facebook_share_button_399" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_399') || document.getElementById('facebook_share_icon_399') || document.getElementById('facebook_share_both_399') || document.getElementById('facebook_share_button_399');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_399') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Foturum-acma-kapama-islemini-loglama%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Foturum-acma-kapama-islemini-loglama%2F&amp;text=Oturum+a%C3%A7ma-kapama+i%C5%9Flemini+loglama" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/oturum-acma-kapama-islemini-loglama/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailbox boyutları belirtilen değerden daha büyük olan alıcıların listesi için script</title>
		<link>http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/</link>
		<comments>http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 17:35:15 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/</guid>
		<description><![CDATA[strComputer = &#8220;œ.&#8221; intMailboxSize = 2048 ’size in KB, all recipient who exceeds this amount will be displayed Set objWMIService = GetObject(&#8220;winmgmts:&#8221; &#038; &#8220;œ{impersonationLevel=impersonate}!\\&#8221; &#038; strComputer &#038; _ &#8220;œ\ROOT\MicrosoftExchangeV2&#8243;³) Set colItems = objWMIService.ExecQuery(&#8220;Select * from Exchange_Mailbox where size > &#8220; &#038; intMailboxSize) if colItems.count = 0 then &#8220;˜no recipients were found wscript.echo &#8220;œNo items were [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script%2F&amp;text=Mailbox+boyutlar%C4%B1+belirtilen+de%C4%9Ferden+daha+b%C3%BCy%C3%BCk+olan+al%C4%B1c%C4%B1lar%C4%B1n+listesi+i%C3%A7in+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/"></script></span></div><p>strComputer = &#8220;œ.&#8221;<br />
intMailboxSize = 2048 ’size in KB, all recipient who exceeds this amount will be displayed</p>
<p>Set objWMIService = GetObject(&#8220;winmgmts:&#8221; &#038; &#8220;œ{impersonationLevel=impersonate}!\\&#8221; &#038; strComputer &#038; _<br />
&#8220;œ\ROOT\MicrosoftExchangeV2&#8243;³)</p>
<p>Set colItems = objWMIService.ExecQuery(&#8220;Select * from Exchange_Mailbox where size > &#8220; &#038; intMailboxSize)<br />
if colItems.count = 0 then &#8220;˜no recipients were found<br />
wscript.echo &#8220;œNo items were found&#8221;<br />
wscript.quit<br />
end if</p>
<p>mbs_len = len(&#8220;MAILBOX SIZE(KB)&#8221;)<br />
mbdn_len = len(&#8220;MAILBOX DISPLAY NAME&#8221;)<br />
wscript.echo &#8220;œMAILBOX DISPLAY NAME&#8221; &#038; space(30 &#8211; mbdn_len) &#038; &#8220;œMAILBOX SIZE(KB)&#8221;</p>
<p>For Each objItem in colItems<br />
if len(objItem.MailboxDisplayName) > 30 then<br />
padding = 0<br />
Wscript.stdOut.write left(objItem.MailboxDisplayName,27) &#038; &#8220;œ&#8221;¦&#8221; &#038; space(padding)<br />
else<br />
padding = 30 &#8211; len(objItem.MailboxDisplayName)<br />
Wscript.stdOut.write objItem.MailboxDisplayName &#038; space(padding)<br />
end if<br />
Wscript.stdOut.write space(mbs_len &#8211; len(cstr(objItem.Size))) &#038; objItem.Size<br />
wscript.echo<br />
next</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script%2F&amp;t=Mailbox%20boyutlar%C4%B1%20belirtilen%20de%C4%9Ferden%20daha%20b%C3%BCy%C3%BCk%20olan%20al%C4%B1c%C4%B1lar%C4%B1n%20listesi%20i%C3%A7in%20script" id="facebook_share_button_482" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_482') || document.getElementById('facebook_share_icon_482') || document.getElementById('facebook_share_both_482') || document.getElementById('facebook_share_button_482');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_482') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script%2F&amp;text=Mailbox+boyutlar%C4%B1+belirtilen+de%C4%9Ferden+daha+b%C3%BCy%C3%BCk+olan+al%C4%B1c%C4%B1lar%C4%B1n+listesi+i%C3%A7in+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/mailbox-boyutlari-belirtilen-degerden-daha-buyuk-olan-alicilarin-listesi-icin-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange servislerinin otomatik durdurulması</title>
		<link>http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/</link>
		<comments>http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/#comments</comments>
		<pubDate>Mon, 07 May 2007 14:21:42 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/exchange-servislerinin-otomatik-durdurulmasi/</guid>
		<description><![CDATA[Exchange 2003 bulunan serverımızı restart etmek istediğimizde bir müddet bizi bekleticektir çünkü exchange servislerinin durdurulması biraz sürer. Bu sebeple yada başka bir sebeple exchange servislerini durdurmamız gerekirse aşağıdaki komutları batch file olarak kaydedip tek bir tıkla bunu halledebiliriz. net stop &#8220;Microsoft Exchange Information Store&#8221; /y net stop &#8220;Microsoft Exchange System Attendant&#8221; /y net stop &#8220;Microsoft [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fexchange-servislerinin-otomatik-durdurulmasi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fexchange-servislerinin-otomatik-durdurulmasi%2F&amp;text=Exchange+servislerinin+otomatik+durdurulmas%C4%B1" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/"></script></span></div><p>Exchange 2003 bulunan serverımızı restart etmek istediğimizde bir müddet bizi bekleticektir çünkü exchange servislerinin durdurulması biraz sürer.<br />
Bu sebeple yada başka bir sebeple exchange servislerini durdurmamız gerekirse aşağıdaki komutları batch file olarak kaydedip tek bir tıkla bunu halledebiliriz.</p>
<p><strong>net stop &#8220;Microsoft Exchange Information Store&#8221; /y<br />
net stop &#8220;Microsoft Exchange System Attendant&#8221; /y<br />
net stop &#8220;Microsoft Exchange IMAP4&#8243; /y<br />
net stop &#8220;Microsoft Exchange Routing Engine&#8221; /y<br />
net stop &#8220;Microsoft Exchange POP3&#8243; /y<br />
net stop &#8220;Microsoft Exchange Management&#8221; /y</strong></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fexchange-servislerinin-otomatik-durdurulmasi%2F&amp;t=Exchange%20servislerinin%20otomatik%20durdurulmas%C4%B1" id="facebook_share_button_206" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_206') || document.getElementById('facebook_share_icon_206') || document.getElementById('facebook_share_both_206') || document.getElementById('facebook_share_button_206');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_206') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fexchange-servislerinin-otomatik-durdurulmasi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fexchange-servislerinin-otomatik-durdurulmasi%2F&amp;text=Exchange+servislerinin+otomatik+durdurulmas%C4%B1" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/exchange-servislerinin-otomatik-durdurulmasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bağlantısı kesilen mailboxların purge edilmesi scripti</title>
		<link>http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/</link>
		<comments>http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 17:34:38 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/</guid>
		<description><![CDATA[&#8220;˜ On Error Resume Next Dim cComputerName Dim objWMIService Dim oDisMbox Dim mBox Dim dmBoxes Dim strAnswer Const cWMINameSpace = &#8220;œroot/MicrosoftExchangeV2&#8243;³ Const cWMIInstance = &#8220;œExchange_Mailbox&#8221; cComputerName = &#8220;œSRVEXC01&#8243;³ strWinMgmts = &#8220;œwinmgmts:{impersonationLevel=impersonate}!//&#8221;&#038; _ cComputerName &#038; &#8220;œ/&#8221; &#038; cWMINameSpace Set objWMIService = GetObject(strWinMgmts) Set oDisMbox = objWMIService.ExecQuery(&#8220;Select * from Exchange_Mailbox WHERE DateDiscoveredAbsentInDS IS NOT Null&#8221;) if oDisMbox.count [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbaglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbaglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti%2F&amp;text=Ba%C4%9Flant%C4%B1s%C4%B1+kesilen+mailboxlar%C4%B1n+purge+edilmesi+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/"></script></span></div><p>&#8220;˜ On Error Resume Next<br />
Dim cComputerName<br />
Dim objWMIService<br />
Dim oDisMbox<br />
Dim mBox<br />
Dim dmBoxes<br />
Dim strAnswer<br />
Const cWMINameSpace = &#8220;œroot/MicrosoftExchangeV2&#8243;³<br />
Const cWMIInstance = &#8220;œExchange_Mailbox&#8221;<br />
cComputerName = &#8220;œSRVEXC01&#8243;³<span id="more-481"></span></p>
<p>strWinMgmts = &#8220;œwinmgmts:{impersonationLevel=impersonate}!//&#8221;&#038; _<br />
cComputerName &#038; &#8220;œ/&#8221; &#038; cWMINameSpace<br />
Set objWMIService = GetObject(strWinMgmts)<br />
Set oDisMbox = objWMIService.ExecQuery(&#8220;Select * from Exchange_Mailbox WHERE DateDiscoveredAbsentInDS IS NOT Null&#8221;)<br />
if oDisMbox.count > 0 then<br />
Set objExplorer = WScript.CreateObject(&#8220;InternetExplorer.Application&#8221;)<br />
objExplorer.Navigate &#8220;œabout:blank&#8221;<br />
objExplorer.ToolBar = 0<br />
objExplorer.StatusBar = 0<br />
objExplorer.Width=400<br />
objExplorer.Height = 100<br />
objExplorer.Left = 0<br />
objExplorer.Top = 0</p>
<p>Do While (objExplorer.Busy)<br />
Wscript.Sleep 200<br />
Loop</p>
<p>objExplorer.Visible = 1<br />
objExplorer.Document.Body.InnerHTML = &#8220;œMailboxen worden ingelezen, moment&#8221;¦.&#8221;</p>
<p>For each mBox in oDisMbox<br />
dmBoxes = dmBoxes &#038; mBox.MailboxDisplayName &#038; &#8220;œ, &#8220;<br />
Next</p>
<p>strAnswer = MsgBox(&#8220;Volgende disconnected Mailboxen gevonden: &#8220; &#038; vbCr &#038; vbCr &#038; dmBoxes &#038; vbCr &#038; vbCr &#038; &#8220; DOORGAAN ?&#8221; , 20, &#8220;œPurgen ?&#8221;)<br />
If strAnswer = 6 Then<br />
For each mBox in oDisMbox<br />
objExplorer.Document.Body.InnerHTML = &#8220;œMailbox being purged: &#8220; &#038; mBox.MailboxDisplayName<br />
mBox.Purge<br />
Next<br />
objExplorer.Document.Body.InnerHTML = &#8220;œVolgende disconnected mailboxen zijn purged :&#8221; &#038; vbCr &#038; vbCr &#038; dmBoxes<br />
Else<br />
objExplorer.Quit<br />
Msgbox &#8220;œNothing done&#8221;¦&#8221;<br />
Wscript.quit<br />
End If<br />
else<br />
Wscript.echo &#8220;œNo Disconnected Mailboxes found !&#8221;<br />
End if<br />
Wscript.Echo &#8220;œDone !&#8221;<br />
Wscript.Sleep 3000<br />
objExplorer.Quit</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbaglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti%2F&amp;t=Ba%C4%9Flant%C4%B1s%C4%B1%20kesilen%20mailboxlar%C4%B1n%20purge%20edilmesi%20scripti" id="facebook_share_button_481" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_481') || document.getElementById('facebook_share_icon_481') || document.getElementById('facebook_share_both_481') || document.getElementById('facebook_share_button_481');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_481') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbaglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbaglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti%2F&amp;text=Ba%C4%9Flant%C4%B1s%C4%B1+kesilen+mailboxlar%C4%B1n+purge+edilmesi+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/baglantisi-kesilen-mailboxlarin-purge-edilmesi-scripti/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft Exchange Mailboxlarına erişim sağlayan kullanıcıların listesi için script</title>
		<link>http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/</link>
		<comments>http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 17:33:12 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/</guid>
		<description><![CDATA[&#8220;˜Who Has Access &#8211; By Alan Mosley, ThatsIT Solutions Australia &#8220;˜Writes report to text file, showing who has access to Exchange users mailboxes &#8220;˜Must be run on email Server Const DOMAIN = &#8220;œIT&#8221; Const EMAIL_SERVER = &#8220;œHANK&#8221; Const LDAP_DOMAIN = &#8220;œLDAP://dc=ThatsIT,dc=local&#8221; Dim objUser Dim oSecurityDescriptor Dim dacl Dim ace Dim fso:Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;) set [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script%2F&amp;text=Microsoft+Exchange+Mailboxlar%C4%B1na+eri%C5%9Fim+sa%C4%9Flayan+kullan%C4%B1c%C4%B1lar%C4%B1n+listesi+i%C3%A7in+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/"></script></span></div><p>&#8220;˜Who Has Access &#8211; By Alan Mosley, ThatsIT Solutions Australia</p>
<p>&#8220;˜Writes report to text file, showing who has access to Exchange users mailboxes<br />
&#8220;˜Must be run on email Server</p>
<p>Const DOMAIN = &#8220;œIT&#8221;<br />
Const EMAIL_SERVER = &#8220;œHANK&#8221;<br />
Const LDAP_DOMAIN = &#8220;œLDAP://dc=ThatsIT,dc=local&#8221;<span id="more-480"></span></p>
<p>Dim objUser<br />
Dim oSecurityDescriptor<br />
Dim dacl<br />
Dim ace</p>
<p>Dim fso:Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
set tf = fso.CreateTextFile(&#8220;WhoHasAccess.txt&#8221;,true)<br />
getUsers(DOMAIN)<br />
tf.WriteLine &#8220;œWho Has Access &#8211; By Alan Mosley, ThatsIT Solutions Australia&#8221;<br />
tf.close</p>
<p>Sub getUsers( strDomain )<br />
Set objComputer = GetObject(&#8220;WinNT://&#8221; &#038; strDomain )<br />
objComputer.Filter = Array( &#8220;œUser&#8221; )<br />
For Each objUser In objComputer<br />
writeACEs objUser.Name<br />
Next<br />
End Sub</p>
<p>sub writeACEs(userName)<br />
On Error Resume Next<br />
Const ADS_SCOPE_SUBTREE = 10<br />
Set objConnection = CreateObject(&#8220;ADODB.Connection&#8221;)<br />
Set objCommand = CreateObject(&#8220;ADODB.Command&#8221;)<br />
objConnection.Provider = &#8220;œADsDSOObject&#8221;<br />
objConnection.Open &#8220;œActive Directory Provider&#8221;<br />
Set objCommand.ActiveConnection = objConnection<br />
objCommand.Properties(&#8220;Page Size&#8221;) = 1000<br />
objCommand.Properties(&#8220;Searchscope&#8221;) = ADS_SCOPE_SUBTREE<br />
objCommand.CommandText = _<br />
&#8220;œSELECT distinguishedName FROM &#8220;˜&#8221;&#038; LDAP_DOMAIN &#038;&#8221;&#8221;˜ WHERE objectCategory=’user’ &#8220; &#038; _<br />
&#8220;œAND sAMAccountName=’&#8221;&#038; userName &#038;&#8221;&#8221;˜&#8221;<br />
Set objRecordSet = objCommand.Execute<br />
dim ans<br />
objRecordSet.MoveFirst<br />
Do Until objRecordSet.EOF<br />
ans = objRecordSet.Fields(&#8220;distinguishedName&#8221;).Value<br />
objRecordSet.MoveNext<br />
Loop<br />
set objUser = GetObject(&#8220;LDAP://&#8221;&#038; EMAIL_SERVER &#038;&#8221;/&#8221;&#038; ans)<br />
Dim fullName:fullName = Trim( objUser.FullName)<br />
if objUser.HomeMDB <> &#8220;œ&#8221; then<br />
Set oSecurityDescriptor = objUser.MailboxRights<br />
Set dacl = oSecurityDescriptor.DiscretionaryAcl<br />
tf.WriteLine objUser.FullName<br />
tf.WriteLine spaceIt(&#8220;Trustee&#8221;,30) &#038; spaceIt(&#8220;AccessMask&#8221;,11) &#038; spaceIt(&#8220;ACEType&#8221;,11) &#038; _<br />
spaceIt(&#8220;ACEFlags&#8221;,11) &#038; spaceIt(&#8220;Flags&#8221;,11)<br />
For Each ace In dacl<br />
tf.WriteLine spaceIt(ace.Trustee,30) &#038; spaceIt(ace.AccessMask,11) &#038; _<br />
spaceIt(ace.AceType,11) &#038; spaceIt(ace.AceFlags,11) &#038; spaceIt(ace.Flags,11)<br />
Next<br />
tf.WriteLine<br />
tf.WriteLine<br />
end if<br />
end sub</p>
<p>function spaceIt(val,spaceCount)<br />
dim aLine , dLen<br />
aLine = val<br />
dLen = len(aLine)<br />
dLen = spaceCount &#8211; dLen<br />
for i = 1 to dLen<br />
aLine = aLine &#038; &#8220; &#8220;<br />
next<br />
spaceIt = aLine<br />
end function</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script%2F&amp;t=Microsoft%20Exchange%20Mailboxlar%C4%B1na%20eri%C5%9Fim%20sa%C4%9Flayan%20kullan%C4%B1c%C4%B1lar%C4%B1n%20listesi%20i%C3%A7in%20script" id="facebook_share_button_480" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_480') || document.getElementById('facebook_share_icon_480') || document.getElementById('facebook_share_both_480') || document.getElementById('facebook_share_button_480');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_480') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fmicrosoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script%2F&amp;text=Microsoft+Exchange+Mailboxlar%C4%B1na+eri%C5%9Fim+sa%C4%9Flayan+kullan%C4%B1c%C4%B1lar%C4%B1n+listesi+i%C3%A7in+script" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/microsoft-exchange-mailboxlarina-erisim-saglayan-kullanicilarin-listesi-icin-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kullanılmayan Computer Account&#8217;ların silinmesi</title>
		<link>http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/</link>
		<comments>http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 06:49:40 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/kullanilmayan-computer-accountlarin-silinmesi/</guid>
		<description><![CDATA[Şu adresten indirebileceğimiz script sayesinde 90 gün içinde herhangi bir işlem yapmamış olan bilgisayar hesaplarını .html olarak rapor alabilir ve ardından silme işlemini gerçekleştirebiliriz.Komut satırına düştüğümüzde toplam 3 komuttan oluşuyor. oldcmp.exe /report oldcmp.exe /disable oldcmp.exe /delete Share]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fkullanilmayan-computer-accountlarin-silinmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fkullanilmayan-computer-accountlarin-silinmesi%2F&amp;text=Kullan%C4%B1lmayan+Computer+Account%E2%80%99lar%C4%B1n+silinmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/"></script></span></div><p><a href="http://www.joeware.net/downloads/files/OldCmp.zip ">Şu</a> adresten indirebileceğimiz script sayesinde 90 gün içinde herhangi bir işlem yapmamış olan bilgisayar hesaplarını .html olarak rapor alabilir ve ardından silme işlemini gerçekleştirebiliriz.Komut satırına düştüğümüzde toplam 3 komuttan oluşuyor.<br />
oldcmp.exe /report<br />
oldcmp.exe /disable<br />
oldcmp.exe /delete</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fkullanilmayan-computer-accountlarin-silinmesi%2F&amp;t=Kullan%C4%B1lmayan%20Computer%20Account%27lar%C4%B1n%20silinmesi" id="facebook_share_button_109" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_109') || document.getElementById('facebook_share_icon_109') || document.getElementById('facebook_share_both_109') || document.getElementById('facebook_share_button_109');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_109') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fkullanilmayan-computer-accountlarin-silinmesi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fkullanilmayan-computer-accountlarin-silinmesi%2F&amp;text=Kullan%C4%B1lmayan+Computer+Account%E2%80%99lar%C4%B1n+silinmesi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/kullanilmayan-computer-accountlarin-silinmesi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paylaşımdan Printer ekleme scripti</title>
		<link>http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/</link>
		<comments>http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 14:18:03 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/paylasimdan-printer-ekleme-scripti/</guid>
		<description><![CDATA[Bir grup kullanıcı farklı makinalarda oturum açtığında belli başlı 3 yazıcının tanıtılması istenebilir.Bunun için her seferinde uğraşmamak için logon script olarak şunu kullanabiliriz. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Set objNetwork = CreateObject(&#8220;WScript.Network&#8221;) objNetwork.AddWindowsPrinterConnection &#8220;\\banko3\hpLaserJ&#8221; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Share]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fpaylasimdan-printer-ekleme-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fpaylasimdan-printer-ekleme-scripti%2F&amp;text=Payla%C5%9F%C4%B1mdan+Printer+ekleme+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/"></script></span></div><p>Bir grup kullanıcı farklı makinalarda oturum açtığında belli başlı 3 yazıcının tanıtılması istenebilir.Bunun için her seferinde uğraşmamak için logon script olarak şunu kullanabiliriz.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Set objNetwork = CreateObject(&#8220;WScript.Network&#8221;)<br />
objNetwork.AddWindowsPrinterConnection &#8220;\\banko3\hpLaserJ&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fpaylasimdan-printer-ekleme-scripti%2F&amp;t=Payla%C5%9F%C4%B1mdan%20Printer%20ekleme%20scripti" id="facebook_share_button_92" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_92') || document.getElementById('facebook_share_icon_92') || document.getElementById('facebook_share_both_92') || document.getElementById('facebook_share_button_92');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_92') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fpaylasimdan-printer-ekleme-scripti%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fpaylasimdan-printer-ekleme-scripti%2F&amp;text=Payla%C5%9F%C4%B1mdan+Printer+ekleme+scripti" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/paylasimdan-printer-ekleme-scripti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Networkde bulunan diğer PC&#8217;leri scriptle kapamak.</title>
		<link>http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/</link>
		<comments>http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 13:35:30 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/networkde-bulunan-diger-pcleri-scriptle-kapamak/</guid>
		<description><![CDATA[Networkümüzde gerekli haklarımız tanımlanmışsa uzak bir makineyi kapatabilir,restart yada logoff edebiliriz.Bruce Walton &#8216;ın hazırladığı script: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; msg=&#8221;Yapmak istediginiz islemi seciniz:&#8221; &#038; vbcrlf &#038; &#8220;0 &#8211; Log off&#8221; &#038; vbcrlf &#038; _ &#8220;1 &#8211; Shutdown&#8221; &#038; vbcrlf &#038; &#8220;2 &#8211; Reboot&#8221; &#038; vbcrlf &#038; &#8220;8 &#8211; Power Off&#8221; flag=inputbox(msg) if flag0 and flag1 and flag2 and [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fnetworkde-bulunan-diger-pcleri-scriptle-kapamak%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fnetworkde-bulunan-diger-pcleri-scriptle-kapamak%2F&amp;text=Networkde+bulunan+di%C4%9Fer+PC%E2%80%99leri+scriptle+kapamak." target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/"></script></span></div><p>Networkümüzde gerekli haklarımız tanımlanmışsa uzak bir makineyi kapatabilir,restart yada logoff edebiliriz.Bruce Walton &#8216;ın hazırladığı script:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<font color="red"><b></p>
<p>msg=&#8221;Yapmak istediginiz islemi seciniz:&#8221; &#038; vbcrlf &#038; &#8220;0 &#8211; Log off&#8221; &#038; vbcrlf &#038; _<br />
    &#8220;1 &#8211; Shutdown&#8221; &#038; vbcrlf &#038; &#8220;2 &#8211; Reboot&#8221; &#038; vbcrlf &#038; &#8220;8 &#8211; Power Off&#8221;</p>
<p>flag=inputbox(msg)</p>
<p>if flag<>0 and flag<>1 and flag<>2 and flag<>8 then<br />
    msgbox &#8220;Incorrect selection&#8221;<br />
    wscript.quit<br />
end if</p>
<p>Servers=array(&#8220;computer1&#8243;, &#8220;computer2&#8243;, &#8220;computer3&#8243;)<br />
for x=lbound(servers) to ubound(servers)<br />
    for each OS in getobject (&#8220;winmgmts:{(Shutdown)}//&#8221; &#038; servers(x) &#038; _<br />
        &#8220;/root/cimv2&#8243;).InstancesOf(&#8220;Win32_OperatingSystem&#8221;)</p>
<p>        set Security = OS.Security_<br />
        set PrivObj = Security.Privileges<br />
        PrivObj.Add(18)</p>
<p>        RetVal = OS.Win32ShutDown(flag,0)<br />
    next<br />
    if RetVal = 0 then<br />
        wscript.echo &#8220;Shutdown &#8221; &#038; servers(x)<br />
    else<br />
        wscript.echo &#8220;Unable to shutdown &#8221; &#038; servers(x)<br />
    end if<br />
next<br />
</font color></b></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fnetworkde-bulunan-diger-pcleri-scriptle-kapamak%2F&amp;t=Networkde%20bulunan%20di%C4%9Fer%20PC%27leri%20scriptle%20kapamak.%20" id="facebook_share_button_91" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_91') || document.getElementById('facebook_share_icon_91') || document.getElementById('facebook_share_both_91') || document.getElementById('facebook_share_button_91');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_91') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fnetworkde-bulunan-diger-pcleri-scriptle-kapamak%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fnetworkde-bulunan-diger-pcleri-scriptle-kapamak%2F&amp;text=Networkde+bulunan+di%C4%9Fer+PC%E2%80%99leri+scriptle+kapamak." target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/networkde-bulunan-diger-pcleri-scriptle-kapamak/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bilgisayar Hesaplarını otomatik , istenilen OU&#8217;ya taşımak</title>
		<link>http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/</link>
		<comments>http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/#comments</comments>
		<pubDate>Fri, 16 Mar 2007 16:51:16 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Windows Server Family]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/</guid>
		<description><![CDATA[Google gruplarında bir arkadaşın sorusu üzerine araştırıp bulduğum bir script gerçekten beni çok şaşırttı. Şöyle bir senaryo düşünelim.3 Tane OU&#8217;muz var. Muhasebe-Finans-Yönetim Bir de computers container&#8217;ımız var built-in gelen.Şimdi Muhasebe grubuna bilgisayar üzerinden bir policy çakmak istiyoruz.Ama bilgisayar isimleri oldukça karmaşık ve hepsi default gelen computers grubunun altında.Bu durumda bir scriptle işimizi çok kolaylaştırabiliriz. &#8216; [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak%2F&amp;text=Bilgisayar+Hesaplar%C4%B1n%C4%B1+otomatik+%2C+istenilen+OU%E2%80%99ya+ta%C5%9F%C4%B1mak" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/"></script></span></div><p>Google gruplarında bir arkadaşın sorusu üzerine araştırıp bulduğum bir script gerçekten beni çok şaşırttı.<br />
Şöyle bir senaryo düşünelim.3 Tane OU&#8217;muz var.</p>
<p>Muhasebe-Finans-Yönetim<br />
Bir de computers container&#8217;ımız var built-in gelen.Şimdi Muhasebe grubuna bilgisayar üzerinden bir policy çakmak istiyoruz.Ama bilgisayar isimleri oldukça karmaşık ve hepsi default gelen computers grubunun altında.Bu durumda bir scriptle işimizi çok <span id="more-86"></span>kolaylaştırabiliriz.</p>
<p><font color="red"><center><br />
<strong>&#8216; Constants required for name translate<br />
Const ADS_NAME_INITTYPE_GC = 3<br />
Const ADS_NAME_TYPE_NT4 = 3<br />
Const ADS_NAME_TYPE_1779 = 1</p>
<p>&#8216; ADsPath of the container object (OU) where you want to move the<br />
&#8216; current PC<br />
strContainer = &#8220;LDAP://ou=YeniOU,dc=domain,dc=com&#8221;</p>
<p>&#8216;Get the NETBIOS name of the domain<br />
Set objSystemInfo = CreateObject(&#8220;ADSystemInfo&#8221;)<br />
strDomain = objSystemInfo.DomainShortName</p>
<p>&#8216; Get the name of the computer<br />
set objNetwork = createobject(&#8220;Wscript.Network&#8221;)<br />
strComputer = objNetwork.ComputerName</p>
<p>&#8216; Call function to return the distinguished name (DN) of the computer<br />
strComputerDN = getComputerDN(strComputer,strDomain)</p>
<p>&#8216; Bind to the container object (OU)<br />
set objContainer = getobject(strContainer)<br />
&#8216; Move computer to OU<br />
objContainer.MoveHere &#8220;LDAP://&#8221; &#038; strComputerDN, vbNullString</p>
<p>function getComputerDN(byval strComputer,byval strDomain)<br />
	&#8216; Function to get the distinguished name of a computer<br />
	&#8216; from the NETBIOS name of the computer (strcomputer)<br />
	&#8216; and the NETBIOS name of the domain (strDomain) using<br />
	&#8216; name translate</p>
<p>	Set objTrans = CreateObject(&#8220;NameTranslate&#8221;)<br />
	&#8216; Initialize name translate using global catalog<br />
	objTrans.Init ADS_NAME_INITTYPE_GC, &#8220;&#8221;<br />
	&#8216; Input computer name (NT Format)<br />
	objTrans.Set ADS_NAME_TYPE_NT4, strDomain &#038; &#8220;\&#8221; &#038; strComputer &#038; &#8220;$&#8221;<br />
	&#8216; Get Distinguished Name.<br />
	getComputerDN = objTrans.Get(ADS_NAME_TYPE_1779)</p>
<p>end function</strong></font color></center></p>
<p>Bu scriptteki Domain ve Ou isimlerini kendimize göre düzenleyip .vbs uzantısıyla kaydederiz.Ardından Logon script olarak tüm muhasebe grubuna group policy uygularız.<br />
Artık Muhasebe grubu bilgisayarları logon oldukları anda kendi bilgisayar isimlerini YeniOU altına otomatik kopyalayacaktır.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak%2F&amp;t=Bilgisayar%20Hesaplar%C4%B1n%C4%B1%20otomatik%20%2C%20istenilen%20OU%27ya%20ta%C5%9F%C4%B1mak" id="facebook_share_button_86" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_86') || document.getElementById('facebook_share_icon_86') || document.getElementById('facebook_share_both_86') || document.getElementById('facebook_share_button_86');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_86') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fbilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak%2F&amp;text=Bilgisayar+Hesaplar%C4%B1n%C4%B1+otomatik+%2C+istenilen+OU%E2%80%99ya+ta%C5%9F%C4%B1mak" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/bilgisayar-hesaplarini-otomatik-istenilen-ouya-tasimak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Domain Controller Teyidi</title>
		<link>http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/</link>
		<comments>http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/#comments</comments>
		<pubDate>Sun, 25 Feb 2007 12:27:04 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Scriptler]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/domain-controller-teyidi/</guid>
		<description><![CDATA[Herhangi bir user&#8217;ın hangi Domain Controller&#8217;dan logon olduğunu öğrenmek için komut isteminde şu komutu kullanırız. &#8220;set logonserver&#8221; echo %logonserver% komutunuda script olarak kullanabiliriz Share]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fdomain-controller-teyidi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fdomain-controller-teyidi%2F&amp;text=Domain+Controller+Teyidi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/"></script></span></div><p>Herhangi bir user&#8217;ın hangi Domain Controller&#8217;dan logon olduğunu öğrenmek için komut isteminde şu komutu kullanırız.</p>
<p><strong>&#8220;set logonserver&#8221;</strong></p>
<p><strong>echo %logonserver%</strong> komutunuda script olarak kullanabiliriz</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fdomain-controller-teyidi%2F&amp;t=Domain%20Controller%20Teyidi" id="facebook_share_button_56" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_56') || document.getElementById('facebook_share_icon_56') || document.getElementById('facebook_share_both_56') || document.getElementById('facebook_share_button_56');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_56') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fdomain-controller-teyidi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2007%2Fdomain-controller-teyidi%2F&amp;text=Domain+Controller+Teyidi" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2007/domain-controller-teyidi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

