<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DAC Powershell Samples</title><link>http://blogs.msdn.com/b/managingsql/archive/2010/04/28/dac-powershell-samples.aspx</link><description>All the samples in this document are based on the DAC module that you can download from the attached zip folder ( DACModule.zip) .To import the modules, 
 Step 1) check your Module Path 
 PS &amp;gt; dir Env:PSModulePath 
 Step 2) chose any of the module</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: DAC Powershell Samples</title><link>http://blogs.msdn.com/b/managingsql/archive/2010/04/28/dac-powershell-samples.aspx#10402072</link><pubDate>Wed, 13 Mar 2013 18:44:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10402072</guid><dc:creator>Carl Prothman</dc:creator><description>&lt;p&gt;To get past the &amp;quot;is not digitally signed. The script will not execute on the system&amp;quot;, see:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://dmitrysotnikov.wordpress.com/2010/12/30/unblocking-powergui-add-ons-and-powershell-modules/"&gt;dmitrysotnikov.wordpress.com/.../unblocking-powergui-add-ons-and-powershell-modules&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10402072" width="1" height="1"&gt;</description></item><item><title>re: DAC Powershell Samples</title><link>http://blogs.msdn.com/b/managingsql/archive/2010/04/28/dac-powershell-samples.aspx#10401778</link><pubDate>Tue, 12 Mar 2013 22:33:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10401778</guid><dc:creator>Carl Prothman</dc:creator><description>&lt;p&gt;Import-Module : File DACModule.psm1 cannot be loaded.&lt;/p&gt;
&lt;p&gt;The file DACModule.psm1 is not digitally signed. The script will not execute on the system. &lt;/p&gt;
&lt;p&gt;For more information, see about_Execution_Policies at&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://go.microsoft.com/fwlink/?LinkID=135170"&gt;go.microsoft.com/fwlink&lt;/a&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10401778" width="1" height="1"&gt;</description></item><item><title>re: DAC Powershell Samples</title><link>http://blogs.msdn.com/b/managingsql/archive/2010/04/28/dac-powershell-samples.aspx#10292014</link><pubDate>Mon, 09 Apr 2012 20:57:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10292014</guid><dc:creator>Tye Akoiye</dc:creator><description>&lt;p&gt;Are all the outlined steps the actual order you need to follow in order to deploy DAC via PS? When I attempt to &amp;quot;Build-Dac&amp;quot; and pipe it to Save-DAC&amp;quot;, I receive the following error:&lt;/p&gt;
&lt;p&gt;$serverConnection = Get-ServerConnection –serverName “MySQLServerInstance”&lt;/p&gt;
&lt;p&gt;$path = &amp;quot;C:\Temp\My PowerShell\DAC\&amp;quot;&lt;/p&gt;
&lt;p&gt;$buildFile1 = &amp;quot;C:\Temp\My PowerShell\DAC\&amp;quot;&lt;/p&gt;
&lt;p&gt;$buildFile2 = &amp;quot;C:\Temp\My PowerShell\DAC\&amp;quot;&lt;/p&gt;
&lt;p&gt;$dacType = Build-Dac –dacTypeName &amp;quot;DacCompile&amp;quot; –files @($buildFile1, $buildFile2)&lt;/p&gt;
&lt;p&gt;Save-DacType –dacType $dacType –dacpackPath $path&lt;/p&gt;
&lt;p&gt;#$dacType = Extract-DAC –serverConnection $serverConnection –databaseName &amp;quot;dba_admin&amp;quot; –dacTypeName &amp;quot;dba_admin&amp;quot; –dacTypeVersion &amp;quot;1.0.0.0&amp;quot; –dacPackPath $path&lt;/p&gt;
&lt;p&gt;Save-DacType : Cannot process argument transformation on parameter &amp;#39;dacType&amp;#39;. Cannot convert the &amp;quot;System.Object[]&amp;quot; value of type &amp;quot;System.Object[]&amp;quot; to type &amp;quot;Microsoft.SqlServer.Management.Dac.DacType&amp;quot;.&lt;/p&gt;
&lt;p&gt;At line:9 char:22&lt;/p&gt;
&lt;p&gt;+ Save-DacType –dacType &amp;lt;&amp;lt;&amp;lt;&amp;lt; &amp;nbsp;$dacType –dacpackPath $path&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: InvalidData: (:) [Save-DacType], ParameterBindin...mationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Save-DacType&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10292014" width="1" height="1"&gt;</description></item></channel></rss>