<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PowerShell dig (nslookup) Cmdlet!</title>
	<atom:link href="http://huddledmasses.org/powershell-dig-nslookup-cmdlet/feed/" rel="self" type="application/rss+xml" />
	<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/</link>
	<description>You can do more than breathe for free...</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:27:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joel 'Jaykul' Bennett</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-197906</link>
		<dc:creator>Joel 'Jaykul' Bennett</dc:creator>
		<pubDate>Wed, 24 Sep 2008 02:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-197906</guid>
		<description>Hm? Was I not supposed to be able to do that? 8O

Well, I&#039;m honestly not sure what I did differently than anyone else. It&#039;s a pretty straight-forward 32bit assembly project, with my cut-and paste version of a PSSnapin module. Anyone who wants to, is, of course, free to work from my GPL project template :D</description>
		<content:encoded><![CDATA[<p>Hm? Was I not supposed to be able to do that?  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt='8O' class='wp-smiley' /> </p>
<p>Well, I&#8217;m honestly not sure what I did differently than anyone else. It&#8217;s a pretty straight-forward 32bit assembly project, with my cut-and paste version of a PSSnapin module. Anyone who wants to, is, of course, free to work from my <span class="caps">GPL</span> project template  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seaJhawk</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-197663</link>
		<dc:creator>seaJhawk</dc:creator>
		<pubDate>Tue, 23 Sep 2008 12:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-197663</guid>
		<description>That worked great!

And amazingly, you managed to do something that the big boys (err... other big boys) can&#039;t seem to do - you provided one snapin that works in both 32-bit and 64-bit PowerShell. I&#039;m not sure if you intended to do that or not, but explaining it would sure make a great blog post because there are a lot of folks out there who need some help.

You Rock!
-Chris</description>
		<content:encoded><![CDATA[<p>That worked great!</p>
<p>And amazingly, you managed to do something that the big boys (err&#8230; other big boys) can&#8217;t seem to do &#8211; you provided one snapin that works in both 32-bit and 64-bit PowerShell. I&#8217;m not sure if you intended to do that or not, but explaining it would sure make a great blog post because there are a lot of folks out there who need some help.</p>
<p>You Rock!<br />
-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel 'Jaykul' Bennett</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-197505</link>
		<dc:creator>Joel 'Jaykul' Bennett</dc:creator>
		<pubDate>Tue, 23 Sep 2008 01:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-197505</guid>
		<description>Ok, the install.ps1 script just registers the snapin (although it should have made a copy named &quot;PoshNet_installed.dll&quot; not just &quot;_installed.dll&quot;, so that&#039;s weird).

Basically, it just runs InstallUtil.exe and it&#039;s really for my purposes in development, because it copies the dll before registering it, so I can recompile even if the dll is loaded in a host.

Assuming the install worked correctly, neither of the commands you ran is the right one to find it.  You need to check for *registered* snapins, because the Install.ps1 script doesn&#039;t @Add-PSSnapin@ unless you pass it the @-Add@ parameter.

The full process is like this, and if you&#039;re on Vista, you have to run install.ps1 in an elevated console.  I&#039;ve added this to the main post, but basically, you need to do something like this:

&lt;code lang=&quot;posh&quot;&gt;
Extract-Archive PoshNet.zip      # Unzip the archive somewhere...
.\Install.ps1 PoshNet.dll        # Run InstallUtil on the assembly
Get-PsSnapin -registered PoshNet # Verify that PoshNet is installed
Add-PsSnapin PoshNet             # Load it. (Add this to your profile?)
Get-Command -PsSnapin PoshNet    # Verify that it is loaded...&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Ok, the install.ps1 script just registers the snapin (although it should have made a copy named &#8220;PoshNet_installed.dll&#8221; not just &#8220;_installed.dll&#8221;, so that&#8217;s weird).</p>
<p>Basically, it just runs InstallUtil.exe and it&#8217;s really for my purposes in development, because it copies the dll before registering it, so I can recompile even if the dll is loaded in a host.</p>
<p>Assuming the install worked correctly, neither of the commands you ran is the right one to find it.  You need to check for <strong>registered</strong> snapins, because the Install.ps1 script doesn&#8217;t <code>Add-PSSnapin</code> unless you pass it the <code>-Add</code> parameter.</p>
<p>The full process is like this, and if you&#8217;re on Vista, you have to run install.ps1 in an elevated console.  I&#8217;ve added this to the main post, but basically, you need to do something like this:</p>
<div class="posh code posh" style="font-family:monospace;">
Extract<span style="color: #66cc66;">-</span>Archive PoshNet.<span style="color: #003366;">zip</span> &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># Unzip the archive somewhere...</span><br />
.\Install.<span style="color: #003366;">ps1</span> PoshNet.<span style="color: #003366;">dll</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># Run InstallUtil on the assembly</span><br />
<span style="color: #0066cc; font-style: italic;">Get-<span style="font-style: normal;">PsSnapin</span></span> <span style="color: #000066;">-registered</span> PoshNet <span style="color: #666666; font-style: italic;"># Verify that PoshNet is installed</span><br />
<span style="color: #0066cc; font-style: italic;">Add-<span style="font-style: normal;">PsSnapin</span></span> PoshNet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Load it. (Add this to your profile?)</span><br />
<span style="color: #0066cc; font-style: italic;">Get-<span style="font-style: normal;">Command</span></span> <span style="color: #000066;">-PsSnapin</span> PoshNet &nbsp; &nbsp;<span style="color: #666666; font-style: italic;"># Verify that it is loaded...</span></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: seaJhawk</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-197302</link>
		<dc:creator>seaJhawk</dc:creator>
		<pubDate>Mon, 22 Sep 2008 13:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-197302</guid>
		<description>I&#039;m having some issues on PS1 with the install. After running the install script I don&#039;t see any new snapins or the get-dns cmdlet.

I&#039;ve pasted the results of the install here and the contents of the _installed.InstallLog file follows.

PS C:\toolbox\Scripts\dlls&gt; .\install-poshnet.ps1 .\poshnet.dll
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.1434
Copyright (c) Microsoft Corporation.  All rights reserved.


The uninstall is beginning.
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#039;s progress.
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.
Uninstalling assembly &#039;C:\toolbox\Scripts\dlls\_installed.dll&#039;.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll
   showcallstack =
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog

The uninstall has completed.
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.1434
Copyright (c) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#039;s progress.
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.
Installing assembly &#039;C:\toolbox\Scripts\dlls\_installed.dll&#039;.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll
   showcallstack =
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#039;s progress.
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.
Committing assembly &#039;C:\toolbox\Scripts\dlls\_installed.dll&#039;.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll
   showcallstack =
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog

The Commit phase completed successfully.

The transacted install has completed.
PS C:\toolbox\Scripts\dlls&gt; Get-PSSnapin


Name        : Microsoft.PowerShell.Core
PSVersion   : 1.0
Description : This Windows PowerShell snap-in contains Windows PowerShell management cmdlets used to manage components of Windows
               PowerShell.

Name        : Microsoft.PowerShell.Host
PSVersion   : 1.0
Description : This Windows PowerShell snap-in contains cmdlets used by the Windows PowerShell host.

Name        : Microsoft.PowerShell.Management
PSVersion   : 1.0
Description : This Windows PowerShell snap-in contains management cmdlets used to manage Windows components.

Name        : Microsoft.PowerShell.Security
PSVersion   : 1.0
Description : This Windows PowerShell snap-in contains cmdlets to manage Windows PowerShell security.

Name        : Microsoft.PowerShell.Utility
PSVersion   : 1.0
Description : This Windows PowerShell snap-in contains utility Cmdlets used to manipulate data.


PS C:\toolbox\Scripts\dlls&gt; gcm *dns* -commandType cmdlet

**Nothing Returned**

h6. trimmed by Jaykul ;)</description>
		<content:encoded><![CDATA[<p>I&#8217;m having some issues on PS1 with the install. After running the install script I don&#8217;t see any new snapins or the get-dns cmdlet.</p>
<p>I&#8217;ve pasted the results of the install here and the contents of the _installed.InstallLog file follows.</p>
<p>PS C:\toolbox\Scripts\dlls&gt; .\install-poshnet.ps1 .\poshnet.dll<br />
Microsoft&#174; .<span class="caps">NET</span> Framework Installation utility Version 2.0.50727.1434<br />
Copyright&#169; Microsoft Corporation.  All rights reserved.</p>
<p>The uninstall is beginning.<br />
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#8217;s progress.<br />
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.<br />
Uninstalling assembly &#8216;C:\toolbox\Scripts\dlls\_installed.dll&#8217;.<br />
Affected parameters are:<br />
   logtoconsole =<br />
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll<br />
   showcallstack =<br />
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog</p>
<p>The uninstall has completed.<br />
Microsoft&#174; .<span class="caps">NET</span> Framework Installation utility Version 2.0.50727.1434<br />
Copyright&#169; Microsoft Corporation.  All rights reserved.</p>
<p>Running a transacted installation.</p>
<p>Beginning the Install phase of the installation.<br />
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#8217;s progress.<br />
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.<br />
Installing assembly &#8216;C:\toolbox\Scripts\dlls\_installed.dll&#8217;.<br />
Affected parameters are:<br />
   logtoconsole =<br />
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll<br />
   showcallstack =<br />
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog</p>
<p>The Install phase completed successfully, and the Commit phase is beginning.<br />
See the contents of the log file for the C:\toolbox\Scripts\dlls\_installed.dll assembly&#8217;s progress.<br />
The file is located at C:\toolbox\Scripts\dlls\_installed.InstallLog.<br />
Committing assembly &#8216;C:\toolbox\Scripts\dlls\_installed.dll&#8217;.<br />
Affected parameters are:<br />
   logtoconsole =<br />
   assemblypath = C:\toolbox\Scripts\dlls\_installed.dll<br />
   showcallstack =<br />
   logfile = C:\toolbox\Scripts\dlls\_installed.InstallLog</p>
<p>The Commit phase completed successfully.</p>
<p>The transacted install has completed.<br />
PS C:\toolbox\Scripts\dlls&gt; Get-PSSnapin</p>
<p>Name        : Microsoft.PowerShell.Core<br />
PSVersion   : 1.0<br />
Description : This Windows PowerShell snap-in contains Windows PowerShell management cmdlets used to manage components of Windows<br />
               PowerShell.</p>
<p>Name        : Microsoft.PowerShell.Host<br />
PSVersion   : 1.0<br />
Description : This Windows PowerShell snap-in contains cmdlets used by the Windows PowerShell host.</p>
<p>Name        : Microsoft.PowerShell.Management<br />
PSVersion   : 1.0<br />
Description : This Windows PowerShell snap-in contains management cmdlets used to manage Windows components.</p>
<p>Name        : Microsoft.PowerShell.Security<br />
PSVersion   : 1.0<br />
Description : This Windows PowerShell snap-in contains cmdlets to manage Windows PowerShell security.</p>
<p>Name        : Microsoft.PowerShell.Utility<br />
PSVersion   : 1.0<br />
Description : This Windows PowerShell snap-in contains utility Cmdlets used to manipulate data.</p>
<p>PS C:\toolbox\Scripts\dlls&gt; gcm <strong>dns</strong> -commandType cmdlet</p>
<p><b>Nothing Returned</b></p>
<h6>trimmed by Jaykul  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=';)' class='wp-smiley' /> </h6>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel 'Jaykul' Bennett</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-196661</link>
		<dc:creator>Joel 'Jaykul' Bennett</dc:creator>
		<pubDate>Sat, 20 Sep 2008 23:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-196661</guid>
		<description>*@seaJhawk* You&#039;re welcome ;-)

*@Lance Robinson*  Yeah, &quot;hobbyist&quot; licenses remind me a bit of the whole &quot;first hit&#039;s free&quot; marketing plan ;) ... but I didn&#039;t even think theirs might support looking up different types at once, good job.

I should check theirs out to see how they format their output. This class from CodePlex is dying for a decent ps1xml format file with some scripting to unwrap things. ;)</description>
		<content:encoded><![CDATA[<p><strong>@seaJhawk</strong> You&#8217;re welcome  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=';-)' class='wp-smiley' /> </p>
<p><strong>@Lance Robinson</strong>  Yeah, &#8220;hobbyist&#8221; licenses remind me a bit of the whole &#8220;first hit&#8217;s free&#8221; marketing plan  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=';)' class='wp-smiley' />  ... but I didn&#8217;t even think theirs might support looking up different types at once, good job.</p>
<p>I should check theirs out to see how they format their output. This class from CodePlex is dying for a decent ps1xml format file with some scripting to unwrap things.  <img src='http://huddledmasses.org/wordpress/wp-includes/' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seaJhawk</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-196599</link>
		<dc:creator>seaJhawk</dc:creator>
		<pubDate>Sat, 20 Sep 2008 19:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-196599</guid>
		<description>thanks joel!

i&#039;m sure &#039;somebody&#039; is very happy that you did this!

- somebody</description>
		<content:encoded><![CDATA[<p>thanks joel!</p>
<p>i&#8217;m sure &#8216;somebody&#8217; is very happy that you did this!</p>
<p>- somebody</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance Robinson</title>
		<link>http://huddledmasses.org/powershell-dig-nslookup-cmdlet/comment-page-1/#comment-196224</link>
		<dc:creator>Lance Robinson</dc:creator>
		<pubDate>Fri, 19 Sep 2008 21:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/?p=677#comment-196224</guid>
		<description>You can also do this with the get-dns cmdlet that is included in NetCmdlets.  

NetCmdlets has a free hobbyist license listed on its sales page too.</description>
		<content:encoded><![CDATA[<p>You can also do this with the get-dns cmdlet that is included in NetCmdlets.  </p>
<p>NetCmdlets has a free hobbyist license listed on its sales page too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

