<?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>DA-HI // Ağ Günlüğü &#187; profil</title>
	<atom:link href="http://www.da-hi.net/index.php/tag/profil/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.da-hi.net</link>
	<description>Ağlar, bilgisayarlar, donanım, güvenlik ve programlama  hakkında…</description>
	<lastBuildDate>Sat, 14 Jan 2012 09:55:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Logon Script ile Uzaktan Outlook Profili Tanımlama</title>
		<link>http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/</link>
		<comments>http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 20:36:29 +0000</pubDate>
		<dc:creator>Barış BAYRAM</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[gpo logon script]]></category>
		<category><![CDATA[logon script]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[prf]]></category>
		<category><![CDATA[profil]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sysvol]]></category>
		<category><![CDATA[tanımlama]]></category>
		<category><![CDATA[vbs]]></category>

		<guid isPermaLink="false">http://www.da-hi.net/?p=104</guid>
		<description><![CDATA[exchange ayarlarını uzaktan kullanıcı profiline tanımlama.<p class="read-more"><a href="http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/">Sonraki Sayfa &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/" title="Logon Script ile Uzaktan Outlook Profili Tanımlama"></a><p>Bir Exchange organizasyonunda yaşanan büyük sıkıntılardan birisi, kullanıcının farklı bilgisayarlarda oturum açması karşısında posta kutularına ulaşamamasıdır.<br />
Her bilgisayar için ayrı ayrı tanımlanması gereken profil ayarları <em>Logon Script</em> ile de mümkün olmakta.<br />
Kendi denemelerimde ilk oturum açılışında Outlook otomatik olarak profil sorguladığı için hata verebiliyor. Ancak ilk oturumu kapatıp yeniden oturum açıldığında herhangi bir sorun yaşanmıyor.<br />
İlk iş olarak <a href="http://www.da-hi.net/?p=88">Custom Maintenance Wizard ve Office 2003/2007 Özelleştirmeleri</a> linkinden elde ettiğimiz .prf dosyasını sunucu üzerinden paylaşıma açmalıyız.<br />
Ardından aşağıdaki kodları .vbs olarak kaydederek,<br />
 <em>strValue = &#8220;\\sunucu_adi\SYSVOL\etkialani.com\SCRIPTS\PRF\otomatikoutlook.PRF&#8221;</em> satırını kendinize göre düzenleyiniz.<br />
<span id="more-104"></span></p>
<p><strong><em>const HKEY_CURRENT_USER = &#038;H80000001<br />
strComputer = &#8220;.&#8221;<br />
Set StdOut = WScript.StdOut</p>
<p>Set oReg=GetObject(&#8220;winmgmts:{impersonationLevel=impersonate}!\\&#8221; &#038;_<br />
strComputer &#038; &#8220;\root\default:StdRegProv&#8221;)</p>
<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Dim strKeyPath<br />
strKeyPathMS=&#8221;Software\Microsoft&#8221;<br />
strKeyPathOffice=&#8221;Software\Microsoft\Office&#8221;<br />
strKeyPathOffice11=&#8221;Software\Microsoft\Office\11.0&#8243;<br />
strKeyPathOffice10=&#8221;Software\Microsoft\Office\10.0&#8243;</p>
<p>okMS=false<br />
ok11=false<br />
ok10=false<br />
ok11Outlook=false</p>
<p>&#8216;HKEY_CURRENT_USER\Software\Microsoft\Office varmı?<br />
oReg.EnumKey HKEY_CURRENT_USER, strKeyPathMS, arrSubKeys<br />
For Each subkey In arrSubKeys<br />
   if subkey = &#8220;Office&#8221; then<br />
        okMS=true<br />
	exit for<br />
   end if<br />
Next</p>
<p>If okMS=true then</p>
<p>   &#8216;HKEY_CURRENT_USER\Software\Microsoft\Office\11.0 varmı?<br />
   oReg.EnumKey HKEY_CURRENT_USER, strKeyPathOffice, arrSubKeys<br />
   For Each subkey In arrSubKeys<br />
       if subkey = &#8220;11.0&#8243; then<br />
          ok11=true<br />
	  exit for<br />
      end if<br />
   Next</p>
<p>   &#8216;HKEY_CURRENT_USER\Software\Microsoft\Office\10.0 varmı?<br />
   oReg.EnumKey HKEY_CURRENT_USER, strKeyPathOffice, arrSubKeys<br />
   For Each subkey In arrSubKeys<br />
       if subkey = &#8220;10.0&#8243; then<br />
          ok10=true<br />
          exit for<br />
       end if<br />
   Next</p>
<p>   If ok11 = true then  &#8216;Office 2003 Kurulu<br />
      oReg.EnumKey HKEY_CURRENT_USER, strKeyPathOffice11, arrSubKeys<br />
      For Each subkey In arrSubKeys&#8217;HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook varmı?<br />
          if subkey = &#8220;Outlook&#8221; then<br />
	     ok11Outlook=true<br />
	     exit for<br />
          end if<br />
      Next</p>
<p>      If ok11Outlook=true Then<br />
         strKeyPath=&#8221;SOFTWARE\Microsoft\Office\11.0\Outlook\Setup&#8221;<br />
         EditRegistry()<br />
      Else<br />
          Check10Outlook()<br />
      End If</p>
<p>   Else<br />
       Check10Outlook()<br />
   End If</p>
<p>End If</p>
<p>Sub Check10Outlook()<br />
  If ok10=true Then<br />
     oReg.EnumKey HKEY_CURRENT_USER, strKeyPathOffice10,arrSubKeys<br />
     For Each subkey In arrSubKeys<br />
         if subkey = &#8220;Outlook&#8221; then<br />
            strKeyPath=&#8221;SOFTWARE\Microsoft\Office\10.0\Outlook\Setup&#8221;<br />
	    EditRegistry()<br />
	    exit for<br />
   	 end if<br />
      Next<br />
   End If<br />
End Sub<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Sub EditRegistry()<br />
   oReg.CreateKey HKEY_CURRENT_USER,strKeyPath<br />
   &#8216;strKeyPath = &#8220;SOFTWARE\Microsoft\Office\10.0\Outlook\Setup&#8221;<br />
   strValueName = &#8220;ImportPRF&#8221;<br />
   strValue = &#8220;\\sunucu_adi\SYSVOL\etkialani.com\SCRIPTS\PRF\otomatikoutlook.PRF&#8221;<br />
   oReg.SetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue</p>
<p>   strBINARYValueName = &#8220;First-Run&#8221;<br />
   oReg.DeleteValue HKEY_CURRENT_USER,strKeyPath,strBINARYValueName<br />
&#8216; Default Profile isminin değiştirilmesi<br />
   Set WshShell=WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br />
   dim p<br />
   p=&#8221;HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\&#8221;<br />
   WShShell.RegWrite p &#038; &#8220;DefaultProfile&#8221;,&#8221;DEFAULT_EXCHANGE&#8221;,&#8221;REG_SZ&#8221;</p>
<p>End Sub</em></strong></p>
<strong>Bu yazıyı paylaş:</strong><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Logon Script ile Uzaktan Outlook Profili Tanımlama&amp;body=http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/" target="_blank"><img src="http://www.da-hi.net/img/mail.png" alt="Bu yazıyı arkadaşınıza eposta ile yollayın" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/" target="_blank"><img src="http://www.da-hi.net/img/Facebook.png" alt="Bu makaleyi Facebook'ta paylaş" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/ target="_blank"><img src="http://www.da-hi.net/img/Twitter.png" alt="Bu makaleyi Twitter'de paylaş" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/&amp;title=Logon Script ile Uzaktan Outlook Profili Tanımlama&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.da-hi.net/img/Digg.png" alt="Bu yazıyı Digg.com'da paylaş" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/&amp;title=Logon Script ile Uzaktan Outlook Profili Tanımlama" target="_blank"><img src="http://www.da-hi.net/img/Delicious.png" alt="Bu yazıyı Delicious'ta paylaş" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.da-hi.net/index.php/2009/07/21/logon-script-ile-uzaktan-outlook-profili-tanimlama/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

