<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7.0  - PowerShell</title><link>http://forums.iis.net/1151.aspx</link><description>All about IIS 7.0 PowerShell integration. Use this forum to ask PowerShell questions, discuss issues, request features and yell at IIS team members.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: An easy one</title><link>http://forums.iis.net/thread/1896143.aspx</link><pubDate>Tue, 10 Mar 2009 09:36:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896143</guid><dc:creator>daemonoid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1896143.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1896143</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, forgot about this help request. Thanks for the reply, my understanding has moved on a lot now.&lt;/p&gt;&lt;p&gt;&amp;nbsp;My problem was not the powershell command, but the registering of the COM object itself.&amp;nbsp; It turns out that powershell was caching the dll meaning when i did:&lt;/p&gt;&lt;p&gt;.\&lt;span class="il"&gt;gacutil&lt;/span&gt;.exe /u MyDll&lt;br /&gt;.\RegAsm.exe /u MyDll.dll&lt;br /&gt;
.\RegAsm.exe MyDll.dll&lt;br /&gt;.\&lt;span class="il"&gt;gacutil&lt;/span&gt;.exe /if MyDll.dll&lt;/p&gt;&lt;p&gt;I was actually re-installing the same dll. Simply closing powershell and doing the aforementioned commands then loaded the correct dll. This issue was compounded by the fact I&amp;#39;d changed my com object name very early on so could not figure out what was going on.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: An easy one</title><link>http://forums.iis.net/thread/1896128.aspx</link><pubDate>Tue, 10 Mar 2009 05:15:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896128</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1896128.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1896128</wfw:commentRss><description>&lt;p&gt;If you have managed DLL, and not COM object, you shouldn&amp;#39;t use -ComObject parameter, use just a class name from loaded assembly, or fully qualified name of class from assembly located in GAC, just like you would do in c#.&lt;/p&gt;
&lt;p&gt;[sergeia-64]: PS C:\Users\sergeia\Documents&amp;gt; $o = new-object System.Text.StringBuilder&lt;br /&gt;[sergeia-64]: PS C:\Users\sergeia\Documents&amp;gt; $o | gm&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; TypeName: System.Text.StringBuilder&lt;/p&gt;
&lt;p&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MemberType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Definition&lt;br /&gt;----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------&lt;br /&gt;Append&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder Append(char value, int repeatCount), System.Text.Stri...&lt;br /&gt;AppendFormat&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder AppendFormat(System.IFormatProvider provider, string ...&lt;br /&gt;AppendLine&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder AppendLine(), System.Text.StringBuilder AppendLine(st...&lt;br /&gt;CopyTo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Void CopyTo(int sourceIndex, char[] destination, int destinationIndex, i...&lt;br /&gt;EnsureCapacity Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int EnsureCapacity(int capacity)&lt;br /&gt;Equals&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool Equals(System.Text.StringBuilder sb), bool Equals(System.Object obj)&lt;br /&gt;GetHashCode&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int GetHashCode()&lt;br /&gt;GetType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type GetType()&lt;br /&gt;Insert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder Insert(int index, string value, int count), System.Te...&lt;br /&gt;Remove&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder Remove(int startIndex, int length)&lt;br /&gt;Replace&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Text.StringBuilder Replace(string oldValue, string newValue, int startIn...&lt;br /&gt;ToString&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ToString(), string ToString(int startIndex, int length)&lt;br /&gt;Chars&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParameterizedProperty char Chars(int index) {get;set;}&lt;br /&gt;Capacity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Property&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Int32 Capacity {get;set;}&lt;br /&gt;Length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Property&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Int32 Length {get;set;}&lt;br /&gt;MaxCapacity&amp;nbsp;&amp;nbsp;&amp;nbsp; Property&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Int32 MaxCapacity {get;}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: An easy one</title><link>http://forums.iis.net/thread/1893497.aspx</link><pubDate>Mon, 16 Feb 2009 08:53:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893497</guid><dc:creator>daemonoid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1893497.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1893497</wfw:commentRss><description>&lt;p&gt;Thanks Paul, but it&amp;#39;s not really the problem I have. I actually have to use regasm rather than regsvr32 as my dll is managed .Net code.&lt;/p&gt;&lt;p&gt;&amp;nbsp;My problem comes after the registering of the .dll - a quick registry search shows that my classes within the .dll are registered. It&amp;#39;s the powershell step:&lt;/p&gt;&lt;blockquote&gt;&lt;pre class="libCScode"&gt;&lt;font&gt;&lt;font&gt;&lt;font&gt;&lt;font face="Courier New"&gt;$yourProviderConfig = new-object –ComObject&lt;br /&gt;      &amp;#39;Your.BlobProviderConfig.1&amp;#39;&lt;br /&gt;$yourProviderConfig.Active = $false&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;I just don&amp;#39;t understand what is expected in place of &amp;#39;Your.BlobProviderConfig.1&amp;#39;, is it the class name? In which case why am I getting the parameter not found error? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: An easy one</title><link>http://forums.iis.net/thread/1893493.aspx</link><pubDate>Mon, 16 Feb 2009 08:07:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893493</guid><dc:creator>Paul Lynch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1893493.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1893493</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Try this :&lt;/p&gt;&lt;p&gt;&lt;a href="http://huddledmasses.org/register-dll-calling-regsvr32-without-messageboxes-in-powershell/"&gt;http://huddledmasses.org/register-dll-calling-regsvr32-without-messageboxes-in-powershell/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Regards, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>An easy one</title><link>http://forums.iis.net/thread/1893471.aspx</link><pubDate>Sun, 15 Feb 2009 23:25:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893471</guid><dc:creator>daemonoid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1893471.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1893471</wfw:commentRss><description>&lt;p&gt;Probably...&lt;/p&gt;&lt;p&gt;I&amp;#39;m completely new to powershell, I just need to perform a simple set of commands to get my dll installed and integrated with my server ( http://msdn.microsoft.com/en-us/library/bb802799.aspx ).&lt;/p&gt;&lt;p&gt;I&amp;#39;m stuck on the first powershell step:&lt;/p&gt;&lt;blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&lt;font&gt;&lt;font face="Courier New"&gt;$yourProviderConfig = new-object –ComObject&lt;br /&gt;      &amp;#39;Your.BlobProviderConfig.1&amp;#39;&lt;br /&gt;$yourProviderConfig.Active = $false&lt;/font&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;I&amp;#39;m not sure what the parameters should be, I&amp;#39;ve tried a lot of variations such as:&lt;/pre&gt;&lt;blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&lt;font face="Courier New"&gt;PS G:\temp&amp;gt; $yourProviderConfig = new-object -ComObject ISPExternalBinaryProvider.MyProvider&lt;/font&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;But i get the error:&lt;/pre&gt;&lt;blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&lt;font face="Courier New"&gt;New-Object : A parameter cannot be found that matches parameter name &amp;#39;ISPExtern&lt;/font&gt;&lt;font face="Courier New"&gt;alBinaryProvider.MyProvider&amp;#39;.&lt;/font&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;At line:1 char:33&lt;/font&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;+ $yourProviderConfig = new-object&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt; - ComObject ISPExternalBinaryProvider.&lt;/font&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;MyProvider&lt;/font&gt; &lt;/pre&gt;&lt;/blockquote&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;Does anyone have any ideas? Powershell is completely new to me and I don&amp;#39;t really know where to start; unfortunately I have a tight deadline so don&amp;#39;t have time to read up about it as much as I&amp;#39;d like.&lt;/pre&gt;&lt;pre class="libCScode" style="white-space:pre-wrap;"&gt;&amp;nbsp;Thanks in advance... &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>