<?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>Unattend It! &#187; Uncategorized</title>
	<atom:link href="http://www.unattendit.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unattendit.com</link>
	<description>Automate Everything!</description>
	<lastBuildDate>Mon, 14 Jun 2010 07:21:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Deploying AutoCAD 2010</title>
		<link>http://www.unattendit.com/2009/12/03/deploying-autocad-2010/</link>
		<comments>http://www.unattendit.com/2009/12/03/deploying-autocad-2010/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 03:06:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[silent installation]]></category>
		<category><![CDATA[unattend]]></category>
		<category><![CDATA[unattended]]></category>

		<guid isPermaLink="false">http://www.unattendit.com/?p=42</guid>
		<description><![CDATA[Installing AutoCAD 2010 with scripts is fairly painless. First use the setup utility to create a new &#8220;Deployment,&#8221; saving the deployment to a network path. Once you have created a new deployment browse to the network path you saved it to. In this folder you should have three items, a folder called &#8220;AdminImage&#8221;, a folder [...]]]></description>
			<content:encoded><![CDATA[<p>Installing AutoCAD 2010 with scripts is fairly painless. First use the setup utility to create a new &#8220;Deployment,&#8221; saving the deployment to a network path. Once you have created a new deployment browse to the network path you saved it to. In this folder you should have three items, a folder called &#8220;AdminImage&#8221;, a folder called &#8220;Tools&#8221;, and a shortcut with the name of your deployment. View the properties of the shortcut and copy the &#8220;Target&#8221; field.</p>
<p>The target field should be simular to the following (One Line):</p>
<blockquote><p>\\server\share\AutoCAD_2010\AdminImage\setup.exe /qb /I \\server\share\AutoCAD_2010\AdminImage\AutoCAD_2010_x86.ini /language en-us</p></blockquote>
<p>Append this line with /wait to acheive a result simular to the following (one line):</p>
<blockquote><p>\\server\share\AutoCAD_2010\AdminImage\setup.exe /qb /I \\server\share\AutoCAD_2010\AdminImage\AutoCAD_2010_x86.ini /language en-us /wait</p></blockquote>
<p>Now just execute the command above from your scripts!</p>
<p>The AutoDesk Documentation is available <a title="AutoCAD 2010 Network Administrator's Guide" href="http://images.autodesk.com/adsk/files/acad_nag0.pdf" target="_blank">here</a> (pdf), but the document only provides an example in visual basic script.</p>
<h2>Bonus:</h2>
<p>If you wish to deploy the Visual C Runtime, DirectX, .NET 3.5 SP1, etc separately you can edit the .ini file referenced in the command above to remove this functionality (&#8220;\AdminImage\AutoCAD_2010_x86.ini&#8221; in this example). Simply open the file in a plain text editor and remove the references to the components you do not wish to have the setup install on the &#8220;PREREQUISITE&#8221; lines in the &#8220;[ACAD]&#8221; and &#8220;[ADR]&#8221; sections.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unattendit.com/2009/12/03/deploying-autocad-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unattended Installation of Network Printers using printui.dll for All Users</title>
		<link>http://www.unattendit.com/2009/10/17/unattended-installation-of-network-printers-using-printui-dll-for-all-users/</link>
		<comments>http://www.unattendit.com/2009/10/17/unattended-installation-of-network-printers-using-printui-dll-for-all-users/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 00:25:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.unattendit.com/?p=26</guid>
		<description><![CDATA[
Log in to the domain with an administrative account.
Type the following into the command prompt:&#8220;rundll32 printui.dll,PrintUIEntry /ga /n\\%server_name%\%printer_name%&#8220;. In other words, if your server is named server1 and your printer&#8217;s name is printer2 then replace %server_name% with &#8220;server1&#8243; and %printer_name% with &#8220;printer2&#8243;. The Command to add the printer &#8220;printer2&#8243; on the server &#8220;server1&#8243; would be:
rundll32 [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Log in to the domain with an administrative account.</li>
<li>Type the following into the command prompt:<em>&#8220;rundll32 printui.dll,PrintUIEntry /ga /n\\%server_name%\%printer_name%</em>&#8220;. In other words, if your server is named server1 and your printer&#8217;s name is printer2 then replace %server_name% with &#8220;server1&#8243; and %printer_name% with &#8220;printer2&#8243;. The Command to add the printer &#8220;printer2&#8243; on the server &#8220;server1&#8243; would be:<br />
<blockquote><p>rundll32 printui.dll,PrintUIEntry /ga /n\\server1\printer2</p></blockquote>
</li>
<li>The printer is now available to all users who log in with a domain account.</li>
</ol>
<p>The usage of rundll32 printui.dll,PrintUIEntry is as follows:</p>
<blockquote><p>Usage: rundll32 printui.dll,PrintUIEntry [options] [@commandfile]<br />
/a[file] binary file name<br />
/b[name] base printer name<br />
/c[name] unc machine name if the action is on a remote machine<br />
/dl delete local printer<br />
/dn delete network printer connection<br />
/dd delete printer driver<br />
/e display printing preferences<br />
/f[file] either inf file or output file<br />
/F[file] location of an INF file that the INF file specified with /f may depend on<br />
/ga add per machine printer connections (the connection will be propagated to the user upon logon)<br />
/ge enum per machine printer connections<br />
/gd delete per machine printer connections (the connection will be deleted upon user logon)<br />
/h[arch] driver architecture one of the following, x86 or x64 or Itanium<br />
/ia install printer driver using inf file<br />
/id install printer driver using add printer driver wizard<br />
/if install printer using inf file<br />
/ii install printer using add printer wizard with an inf file<br />
/il install printer using add printer wizard<br />
/in add network printer connection<br />
/ip install printer using network printer installation wizard<br />
/j[provider] print provider name<br />
/k print test page to specified printer, cannot be combined with command when installing a printer<br />
/l[path] printer driver source path<br />
/m[model] printer driver model name<br />
/n[name] printer name<br />
/o display printer queue view<br />
/p display printer properties<br />
/q quiet mode, do not display error messages<br />
/r[port] port name<br />
/s display server properties<br />
/Ss Store printer settings into a file<br />
/Sr Restore printer settings from a file<br />
Store or restore printer settings option flags that must be placed at the end of command:<br />
2    PRINTER_INFO_2<br />
7    PRINTER_INFO_7<br />
c    Color Profile<br />
d    PrinterData<br />
s    Security descriptor<br />
g    Global DevMode<br />
m    Minimal settings<br />
u    User DevMode<br />
r    Resolve name conflicts<br />
f    Force name<br />
p    Resolve port<br />
i    Driver name conflict<br />
/u use the existing printer driver if it&#8217;s already installed<br />
/t[#] zero based index page to start on<br />
/v[version] driver version one of the following, &#8220;Type 2 &#8211; Kernel Mode&#8221; or &#8220;Type 3 &#8211; User Mode&#8221;<br />
/w prompt the user for a driver if specified driver is not found in the inf<br />
/y set printer as the default<br />
/Xg get printer settings<br />
/Xs set printer settings<br />
/z do not auto share this printer<br />
/Y do not auto generate a printer name<br />
/K changes the meaning of /h to accept 2,3,4 for x86 or x64 or Itanium and /v to accept 3 for &#8220;Type 3 &#8211; User Mode&#8221;<br />
/Z share this printer, can only be used with the /if option<br />
/? help this message<br />
@[file] command line argument file<br />
/Mw[message] show a warning message before committing the command<br />
/Mq[message] show a confirmation message before committing the command<br />
/W[flags] specifies flags and switches for the wizards (for APW &amp; APDW)<br />
r    make the wizards to be restart-able from the last page<br />
/G[flags] specifies global flags and switches<br />
w    suppress setup driver warnings UI (super quiet mode)</p>
<p>Examples:<br />
Run server properties:<br />
rundll32 printui.dll,PrintUIEntry /s /t1 /c\\machine<br />
Run printer properties:<br />
rundll32 printui.dll,PrintUIEntry /p /n\\machine\printer<br />
Run add printer wizard localy:<br />
rundll32 printui.dll,PrintUIEntry /il<br />
Run add printer wizard on \\machine:<br />
rundll32 printui.dll,PrintUIEntry /il /c\\machine<br />
Run queue view:<br />
rundll32 printui.dll,PrintUIEntry /o /n\\machine\printer<br />
Run inf install:<br />
rundll32 printui.dll,PrintUIEntry /if /b &#8220;Test Printer&#8221; /f C:\InfPath\InfFile.inf /r &#8220;lpt1:&#8221; /m &#8220;Apollo P-1200&#8243;<br />
Run inf install (with inf dependency).  In the example, prnao001.inf depends on ntprint.inf<br />
rundll32 printui.dll, PrintUIEntry /ia /m &#8220;Apollo P-1200&#8243; /K /h x64 /v 3 /f &#8220;c:\InfPath\prnao001.inf&#8221; /F &#8220;c:\InfPath\ntprint.inf&#8221;<br />
Run add printer wizard using inf:<br />
rundll32 printui.dll,PrintUIEntry /ii /f C:\InfPath\InfFile.inf<br />
Add printer using inbox printer driver:<br />
rundll32 printui.dll,PrintUIEntry /if /b &#8220;Test Printer&#8221; /r &#8220;lpt1:&#8221; /m &#8220;Apollo P-1200&#8243;<br />
Add per machine printer connection (the connection will be propagated to the user upon logon):<br />
rundll32 printui.dll,PrintUIEntry /ga /c\\machine /n\\machine\printer /j&#8221;LanMan Print Services&#8221;<br />
Delete per machine printer connection (the connection will be deleted upon user logon):<br />
rundll32 printui.dll,PrintUIEntry /gd /c\\machine /n\\machine\printer<br />
Enumerate per machine printer connections:<br />
rundll32 printui.dll,PrintUIEntry /ge /c\\machine<br />
Add printer driver using inf:<br />
rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m &#8220;Apollo P-1200&#8243; /h &#8220;x86&#8243; /v &#8220;Type 3 &#8211; User Mode&#8221; /f C:\InfPath\InfFile.inf<br />
Add printer driver using inf:<br />
rundll32 printui.dll,PrintUIEntry /ia /K /c\\machine /m &#8220;Apollo P-1200&#8243; /h &#8220;x86&#8243; /v 3<br />
Add inbox printer driver:<br />
rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m &#8220;Apollo P-1200&#8243; /h &#8220;Intel&#8221; /v &#8220;Type 3 &#8211; Kernel Mode&#8221;<br />
Remove printer driver:<br />
rundll32 printui.dll,PrintUIEntry /dd /c\\machine /m &#8220;Apollo P-1200&#8243; /h &#8220;x86&#8243; /v &#8220;Type 3 &#8211; User Mode&#8221;<br />
Remove printer driver:<br />
rundll32 printui.dll,PrintUIEntry /dd /K /c\\machine /m &#8220;Apollo P-1200&#8243; /h &#8220;x86&#8243; /v 3<br />
Set printer as default:<br />
rundll32 printui.dll,PrintUIEntry /y /n &#8220;printer&#8221;<br />
Set printer comment:<br />
rundll32 printui.dll,PrintUIEntry /Xs /n &#8220;printer&#8221; comment &#8220;My Cool Printer&#8221;<br />
Get printer settings:<br />
rundll32 printui.dll,PrintUIEntry /Xg /n &#8220;printer&#8221;<br />
Get printer settings saving results in a file:<br />
rundll32 printui.dll,PrintUIEntry /f &#8220;results.txt&#8221; /Xg /n &#8220;printer&#8221;<br />
Set printer settings command usage:<br />
rundll32 printui.dll,PrintUIEntry /Xs /n &#8220;printer&#8221; ?<br />
Store all printer settings into a file:<br />
rundll32 printui.dll,PrintUIEntry /Ss /n &#8220;printer&#8221; /a &#8220;file.dat&#8221;<br />
Restore all printer settings from a file:<br />
rundll32 printui.dll,PrintUIEntry /Sr /n &#8220;printer&#8221; /a &#8220;file.dat&#8221;<br />
Store printer information on level 2 into a file :<br />
rundll32 printui.dll,PrintUIEntry /Ss /n &#8220;printer&#8221; /a &#8220;file.dat&#8221; 2<br />
Restore  from a file printer security descriptor:<br />
rundll32 printui.dll,PrintUIEntry /Sr /n &#8220;printer&#8221; /a &#8220;file.dat&#8221; s<br />
Restore  from a file printer global devmode and printer data:<br />
rundll32 printui.dll,PrintUIEntry /Sr /n &#8220;printer&#8221; /a &#8220;file.dat&#8221; g d<br />
Restore  from a file minimum settings and resolve port name:<br />
rundll32 printui.dll,PrintUIEntry /Sr /n &#8220;printer&#8221; /a &#8220;file.dat&#8221; m p<br />
Enable Client Side Rendering for a printer:<br />
rundll32 printui.dll,PrintUIEntry /Xs /n &#8220;printer&#8221; ClientSideRender enabled<br />
Disable Client Side Rendering for a printer:<br />
rundll32 printui.dll,PrintUIEntry /Xs /n &#8220;printer&#8221; ClientSideRender disabled</p></blockquote>
<p>[<a href="http://maisonbisson.com/blog/post/11106/" target="_blank">Source</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unattendit.com/2009/10/17/unattended-installation-of-network-printers-using-printui-dll-for-all-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
