<?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>James&#039; Tools and Tricks &#187; adobe acrobat reader</title>
	<atom:link href="http://jrudd.org/tag/adobe-acrobat-reader/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrudd.org</link>
	<description>Tools, Tips and Hints for managing a network.</description>
	<lastBuildDate>Sun, 08 Jan 2012 03:50:05 +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>Pre-populate Users names and email address in Office and Acrobat</title>
		<link>http://jrudd.org/2010/07/pre-populate-users-names-and-email-address-in-office-and-acrobat/</link>
		<comments>http://jrudd.org/2010/07/pre-populate-users-names-and-email-address-in-office-and-acrobat/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 07:01:58 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Adobe Acrobat]]></category>
		<category><![CDATA[adobe acrobat reader]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[simple vbscript]]></category>
		<category><![CDATA[vbscript]]></category>
		<category><![CDATA[Windows Registry]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=211</guid>
		<description><![CDATA[Often you would like some personal information filled in for the user before they start the application. E.g. Why have Office or Acrobat ask for the users name when it is already stored in active directory? Here are some simple VBScripts that can be added to a log on script or similar to pre-fill these <a href='http://jrudd.org/2010/07/pre-populate-users-names-and-email-address-in-office-and-acrobat/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Often you would like some personal information filled in for the user before they start the application. E.g. Why have Office or Acrobat ask for the users name when it is already stored in active directory?</p>
<p>Here are some simple VBScripts that can be added to a log on script or similar to pre-fill these for the user. Once you know the registry location where the identity information is  stored it is quite easy to fill those values as part of a login script.</p>
<h3>Microsoft Office</h3>
<pre class="brush: vb; title: ; notranslate">' Original MS Office script written by David Isaacs
Set oShell = CreateObject(&quot;WScript.Shell&quot;)

On Error Resume Next

strUsername = oShell.ExpandEnvironmentStrings(&quot;%USERNAME%&quot;)
strUserdomain = oShell.ExpandEnvironmentStrings(&quot;%USERDOMAIN%&quot;)

Set oUser = GetObject(&quot;WinNT://&quot; &amp; strUserdomain &amp; &quot;/&quot; &amp; strUsername &amp; &quot;,user&quot;)

oShell.RegWrite &quot;HKCU\Software\Microsoft\Office\Common\UserInfo\UserInitials&quot;, strUsername
oShell.RegWrite &quot;HKCU\Software\Microsoft\Office\Common\UserInfo\UserName&quot;, oUser.Fullname</pre>
<h3>Adobe Acrobat Pro and Reader</h3>
<p>This will set the full name, office, email address and your company for multiple versions of Acrobat and Acrobat reader. You can add even more versions by adding extra lines to the array.</p>
<p>Also if you modified Acrobat to install with Acrobat.com disabled, but  now wish to enable it this will enable it. We originally had it disabled, but found email and network form  submission did not work properly until it was enabled.</p>
<p>The method for accessing the AD User object was posted by Mike Walker in this <a href="http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d2d9bf23-e27f-4f30-9199-42833d6919a4">thread</a>.</p>
<pre class="brush: vb; title: ; notranslate">' Configure Adobe Acrobat default settings
' Written by James Rudd
Set oShell = CreateObject(&quot;WScript.Shell&quot;)
Set oFso = CreateObject(&quot;Scripting.FileSystemObject&quot;)

' Set the different registry paths for Acrobat
Dim regPaths(2)
regPaths(0) = &quot;HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\&quot;  'For Acrobat Pro 9
regPaths(1) = &quot;HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\&quot;  'For Acrobat Reader 9
regPaths(2) = &quot;HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\8.0\&quot;  'Same for Acrobat Reader 8

On Error Resume Next

' Create the ADSystem Information Object
Set objADSystemInfo = CreateObject(&quot;ADSystemInfo&quot;)
' Get the current information into a new Object
Set objUser = GetObject(&quot;LDAP://&quot; &amp; objADSystemInfo.UserName)

For Each regPath In regPaths
 'Enable Acrobat.com by deleting key that contains disabling entries.
 oShell.regdelete regPath &amp; &quot;Workflows\&quot;

 'Set Acrobat Identity Info
 oShell.RegWrite regPath &amp; &quot;Identity\tEMail&quot;, objUser.mail, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tName&quot;, objUser.givenName &amp; &quot; &quot; &amp; objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tFirstName&quot;, objUser.givenName, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tLastName&quot;, objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tCorporation&quot;, &quot;Your Company Name&quot;, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tDepartment&quot;, objUser.physicalDeliveryOfficeName, &quot;REG_SZ&quot;

 'Set Default Acrobat Collaboration details
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tEMail&quot;, objUser.mail, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tFullName&quot;, objUser.givenName &amp; &quot; &quot; &amp; objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tCorporation&quot;, &quot;Your Company Name&quot;, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tDepartment&quot;, objUser.physicalDeliveryOfficeName, &quot;REG_SZ&quot;
Next
</pre>
<h3>Combined</h3>
<p>The following script combines both Office and Acrobat data in to one, and reuses the same data objects rather than use two different connection techniques.</p>
<pre class="brush: vb; title: ; notranslate">
' Configure Adobe Acrobat and MS Office user settings
' Written by James Rudd

Const strCompanyName = &quot;Your School Name&quot;

Set oShell = CreateObject(&quot;WScript.Shell&quot;)
Set oFso = CreateObject(&quot;Scripting.FileSystemObject&quot;)

' Create the ADSystem Information Object
Set objADSystemInfo = CreateObject(&quot;ADSystemInfo&quot;)
' Get the current information into a new Object
Set objUser = GetObject(&quot;LDAP://&quot; &amp; objADSystemInfo.UserName)

On Error Resume Next

'Office Details
oShell.RegWrite &quot;HKCU\Software\Microsoft\Office\Common\UserInfo\UserInitials&quot;, objUser.sAMAccountName, &quot;REG_SZ&quot;
oShell.RegWrite &quot;HKCU\Software\Microsoft\Office\Common\UserInfo\UserName&quot;, objUser.givenName &amp; &quot; &quot; &amp; objUser.sn, &quot;REG_SZ&quot;
' If set by installer Company Name is overidden on load.
oShell.RegWrite &quot;HKCU\Software\Microsoft\Office\Common\UserInfo\Company&quot;, strCompanyName, &quot;REG_SZ&quot;

' Set the different registry paths for Acrobat
Dim regPaths(2)
regPaths(0) = &quot;HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\&quot;  'For Acrobat Pro 9
regPaths(1) = &quot;HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\&quot;  'For Acrobat Reader 9
regPaths(2) = &quot;HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\8.0\&quot;  'Same for Acrobat Reader 8

For Each regPath In regPaths
 'Enable Acrobat.com by deleting key that contains disabling entries.
 oShell.regdelete regPath &amp; &quot;Workflows\&quot;

 'Set Acrobat Identity Info
 oShell.RegWrite regPath &amp; &quot;Identity\tEMail&quot;, objUser.mail, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tName&quot;, objUser.givenName &amp; &quot; &quot; &amp; objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tFirstName&quot;, objUser.givenName, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tLastName&quot;, objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tCorporation&quot;, &quot;Your Company Name&quot;, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;Identity\tDepartment&quot;, objUser.physicalDeliveryOfficeName, &quot;REG_SZ&quot;

 'Set Default Acrobat Collaboration details
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tEMail&quot;, objUser.mail, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tFullName&quot;, objUser.givenName &amp; &quot; &quot; &amp; objUser.sn, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tCorporation&quot;, strCompanyName, &quot;REG_SZ&quot;
 oShell.RegWrite regPath &amp; &quot;ShareIdentity\tDepartment&quot;, objUser.physicalDeliveryOfficeName, &quot;REG_SZ&quot;
Next
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/2010/07/pre-populate-users-names-and-email-address-in-office-and-acrobat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

