<?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>Jean-Benoit Paux's blog &#187; PowerShell</title>
	<atom:link href="http://blog.paux.fr/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.paux.fr</link>
	<description>Blog about Technology, Life and whatever</description>
	<lastBuildDate>Sat, 19 Dec 2009 16:44:12 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to manage a Server Core (Windows Server 2008 / 2008 R2)</title>
		<link>http://blog.paux.fr/2009/12/how-to-manage-a-server-core-windows-server-2008-2008-r2/</link>
		<comments>http://blog.paux.fr/2009/12/how-to-manage-a-server-core-windows-server-2008-2008-r2/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 16:13:36 +0000</pubDate>
		<dc:creator>Jean-Benoit Paux</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows server Core]]></category>

		<guid isPermaLink="false">http://blog.paux.fr/2009/12/how-to-manage-a-server-core-windows-server-2008-2008-r2/</guid>
		<description><![CDATA[From the release of Windows Server 2008 you can choose when you install the OS between the Full or the Core version of Windows. The Core version has most of the functionnalities of the Full but lose its graphical interface (GUI). In this particular configuration, most of Windows administrator will be lost. You can hopefully [...]]]></description>
			<content:encoded><![CDATA[<p>From the release of Windows Server 2008 you can choose when you install the OS between the Full or the Core version of Windows. The Core version has most of the functionnalities of the Full but lose its graphical interface (GUI).</p>
<p>In this particular configuration, most of Windows administrator will be lost. You can hopefully manage remotely the server using the well known MMC consoles but there are a lot of basic tasks that will require manual configuration.</p>
<p>If you try this savor you’ll find some included scripts to enable/disable Windows Update or Remote Desktop but that’s all.</p>
<p><strong>There is however a tool named “</strong><a href="http://coreconfig.codeplex.com/" target="_blank"><strong>Core Configurator</strong></a><strong>” available in 2 version (2.0 for R2 and 1.1 for R1) that enable you to easily configure your Server Core.</strong></p>
<p>The following can be done:</p>
<ul>
<li>Product Licensing <a href="http://blog.paux.fr/wp-uploads/2009/12/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" border="0" alt="image" align="right" src="http://blog.paux.fr/wp-uploads/2009/12/image_thumb.png" width="324" height="247" /></a></li>
<li>Networking Features </li>
<li>DCPromo Tool </li>
<li>ISCSI Settings </li>
<li>Server Roles and Features </li>
<li>User and Group Permissions </li>
<li>Share Creation and Deletion </li>
<li>Dynamic Firewall settings </li>
<li>Display | Screensaver Settings </li>
<li>Add &amp; Remove Drivers </li>
<li>Proxy settings </li>
<li>Windows Updates (Including WSUS) </li>
<li>Multipath I/O </li>
<li>Hyper-V including virtual machine thumbnails </li>
<li>JoinDomain and Computer rename </li>
<li>Add/remove programs </li>
<li>Services </li>
<li>WinRM </li>
<li>Complete logging of all commands executed</li>
</ul>
<p>&#160;</p>
<p><strong>There is another tool (in command line this time) named </strong><a href="http://www.nullsession.com/2009/10/17/core-configuration-console-r2/" target="_blank"><strong>Core Configuration Console R2</strong></a><strong> (also exist for R1).</strong> It does most of the jobs (perhaps more than Core Configurator) and it’s worth having a look on it.</p>
<p><a href="http://blog.paux.fr/wp-uploads/2009/12/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.paux.fr/wp-uploads/2009/12/image_thumb1.png" width="605" height="335" /></a> </p>
<p>&#160;</p>
<p><strong>Keep in mind that you can also manage Server Core using:</strong></p>
<ul>
<li><strong>GPO</strong> (for Firewall settings, WSUS, Service configuration, screensaver etc.)</li>
<li><strong>Custom scripts </strong>(in PowerShell since Windows Server 2008 R2) <strong>so they can be reusable and be part of your documentation </strong>(it’s always easier to launch a script than going through multiple screens)</li>
</ul>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;bodytext=From%20the%20release%20of%20Windows%20Server%202008%20you%20can%20choose%20when%20you%20install%20the%20OS%20between%20the%20Full%20or%20the%20Core%20version%20of%20Windows.%20The%20Core%20version%20has%20most%20of%20the%20functionnalities%20of%20the%20Full%20but%20lose%20its%20graphical%20interface%20%28GUI%29.%20%20In%20this%20particular%20" title="Digg"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;notes=From%20the%20release%20of%20Windows%20Server%202008%20you%20can%20choose%20when%20you%20install%20the%20OS%20between%20the%20Full%20or%20the%20Core%20version%20of%20Windows.%20The%20Core%20version%20has%20most%20of%20the%20functionnalities%20of%20the%20Full%20but%20lose%20its%20graphical%20interface%20%28GUI%29.%20%20In%20this%20particular%20" title="del.icio.us"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;t=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29" title="Facebook"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;annotation=From%20the%20release%20of%20Windows%20Server%202008%20you%20can%20choose%20when%20you%20install%20the%20OS%20between%20the%20Full%20or%20the%20Core%20version%20of%20Windows.%20The%20Core%20version%20has%20most%20of%20the%20functionnalities%20of%20the%20Full%20but%20lose%20its%20graphical%20interface%20%28GUI%29.%20%20In%20this%20particular%20" title="Google Bookmarks"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;source=Jean-Benoit+Paux%27s+blog+Blog+about+Technology%2C+Life+and+whatever&amp;summary=From%20the%20release%20of%20Windows%20Server%202008%20you%20can%20choose%20when%20you%20install%20the%20OS%20between%20the%20Full%20or%20the%20Core%20version%20of%20Windows.%20The%20Core%20version%20has%20most%20of%20the%20functionnalities%20of%20the%20Full%20but%20lose%20its%20graphical%20interface%20%28GUI%29.%20%20In%20this%20particular%20" title="LinkedIn"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29" title="Live"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;body=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F" title="email"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F&amp;t=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29" title="MySpace"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F" title="Netvibes"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20manage%20a%20Server%20Core%20%28Windows%20Server%202008%20%2F%202008%20R2%29%20-%20http%3A%2F%2Fblog.paux.fr%2F2009%2F12%2Fhow-to-manage-a-server-core-windows-server-2008-2008-r2%2F" title="Twitter"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.paux.fr/2009/12/how-to-manage-a-server-core-windows-server-2008-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment faire une résolution DNS en PowerShell (Nom vers IP et inversement) ?</title>
		<link>http://blog.paux.fr/2009/08/comment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement/</link>
		<comments>http://blog.paux.fr/2009/08/comment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 22:13:03 +0000</pubDate>
		<dc:creator>Jean-Benoit Paux</dc:creator>
				<category><![CDATA[Français]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.paux.fr/?p=79</guid>
		<description><![CDATA[PowerShell utilise la puissance du Framework .Net et permet donc d’utiliser les classes de celui-ci avec une très grande facilité dans vos scripts. Dans cet exemple, je vais vous montrer comment faire une résolution DNS à partir de la classe Net.Dns du Framework. [System.Net.Dns]::GetHostentry(&#34;blog.paux.fr&#34;) Le résultat sera (en fonction si votre entrée est un simple [...]]]></description>
			<content:encoded><![CDATA[<p>PowerShell utilise la puissance du Framework .Net et permet donc d’utiliser les classes de celui-ci avec une très grande facilité dans vos scripts.</p>
<p>Dans cet exemple, je vais vous montrer comment faire une résolution DNS à partir de la classe <a href="http://msdn.microsoft.com/en-us/library/system.net.dns.aspx">Net.Dns</a> du Framework.</p>
<pre class="brush: powershell;">[System.Net.Dns]::GetHostentry(&quot;blog.paux.fr&quot;)</pre>
<p>Le résultat sera (en fonction si votre entrée est un simple alias ou un vrai nom d’hôte) :</p>
<pre>HostName                  Aliases            AddressList
--------                  -------            -----------
dedibox2.jeanb-net.com    {}                 {88.191.92.204}</pre>
<p>On peut biensûr décorer un peu tout ça en pipant une liste de nom d’hôtes depuis un fichier, rediriger ça dans une grille via out-gridview (nouveauté PS2.0 !). (A noter que si vous voulez non pas avoir le nom d’hôte mais vraiment votre input, vous pouvez le rajouter via la commande Add-Member, testez avec et sans vous verrez).</p>
<pre class="brush: powershell;">gc .\hosts.txt |% { [System.Net.Dns]::GetHostentry($_) | Add-Member -Name Host -MemberType NoteProperty -Value $_ -PassThru } | Select Host,AddressList | out-gridview</pre>
<p><a href="http://blog.paux.fr/wp-uploads/2009/08/image.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" src="http://blog.paux.fr/wp-uploads/2009/08/image-thumb.png" border="0" alt="image" width="449" height="274" /></a></p>
<p>On peut biensûr faire des résolutions inverses (IPv4 ou IPv6).</p>
<pre class="brush: powershell;">[System.Net.Dns]::GetHostentry(&quot;2001:4860:a005::68&quot;;)</pre>
<p>La classe Dns du Framework reste sommaire, il n’est pas possible de résoudre autre chose que ça (impossible de récupérer les NS, MX, SOA, TXT etc.) mais on peut pour cela utiliser d’autres classes qui implémentent un <a href="http://www.codeproject.com/KB/IP/DNS_NET_Resolver.aspx" target="_blank">autre resolver</a> (<a href="http://www.wintoolzone.com/PermaLink.aspx?ID=72" target="_blank">ou utilisant de manière plus approfondie celui de Windows</a>)</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;bodytext=PowerShell%20utilise%20la%20puissance%20du%20Framework%20.Net%20et%20permet%20donc%20d%E2%80%99utiliser%20les%20classes%20de%20celui-ci%20avec%20une%20tr%C3%A8s%20grande%20facilit%C3%A9%20dans%20vos%20scripts.%0D%0A%0D%0ADans%20cet%20exemple%2C%20je%20vais%20vous%20montrer%20comment%20faire%20une%20r%C3%A9solution%20DNS%20%C3%A0%20partir%20de%20la%20classe" title="Digg"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;notes=PowerShell%20utilise%20la%20puissance%20du%20Framework%20.Net%20et%20permet%20donc%20d%E2%80%99utiliser%20les%20classes%20de%20celui-ci%20avec%20une%20tr%C3%A8s%20grande%20facilit%C3%A9%20dans%20vos%20scripts.%0D%0A%0D%0ADans%20cet%20exemple%2C%20je%20vais%20vous%20montrer%20comment%20faire%20une%20r%C3%A9solution%20DNS%20%C3%A0%20partir%20de%20la%20classe" title="del.icio.us"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;t=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F" title="Facebook"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;annotation=PowerShell%20utilise%20la%20puissance%20du%20Framework%20.Net%20et%20permet%20donc%20d%E2%80%99utiliser%20les%20classes%20de%20celui-ci%20avec%20une%20tr%C3%A8s%20grande%20facilit%C3%A9%20dans%20vos%20scripts.%0D%0A%0D%0ADans%20cet%20exemple%2C%20je%20vais%20vous%20montrer%20comment%20faire%20une%20r%C3%A9solution%20DNS%20%C3%A0%20partir%20de%20la%20classe" title="Google Bookmarks"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;source=Jean-Benoit+Paux%27s+blog+Blog+about+Technology%2C+Life+and+whatever&amp;summary=PowerShell%20utilise%20la%20puissance%20du%20Framework%20.Net%20et%20permet%20donc%20d%E2%80%99utiliser%20les%20classes%20de%20celui-ci%20avec%20une%20tr%C3%A8s%20grande%20facilit%C3%A9%20dans%20vos%20scripts.%0D%0A%0D%0ADans%20cet%20exemple%2C%20je%20vais%20vous%20montrer%20comment%20faire%20une%20r%C3%A9solution%20DNS%20%C3%A0%20partir%20de%20la%20classe" title="LinkedIn"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F" title="Live"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;body=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F" title="email"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F&amp;t=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F" title="MySpace"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F" title="Netvibes"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Comment%20faire%20une%20r%C3%A9solution%20DNS%20en%20PowerShell%20%28Nom%20vers%20IP%20et%20inversement%29%20%3F%20-%20http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fcomment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement%2F" title="Twitter"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.paux.fr/2009/08/comment-faire-une-resolution-dns-en-powershell-nom-vers-ip-et-inversement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make DNS resolutions in PowerShell ? (Host to IP and IP to host)</title>
		<link>http://blog.paux.fr/2009/08/how-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host/</link>
		<comments>http://blog.paux.fr/2009/08/how-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 21:20:00 +0000</pubDate>
		<dc:creator>Jean-Benoit Paux</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.paux.fr/?p=72</guid>
		<description><![CDATA[PowerShell uses the power of .Net Framework thus you can leverage .Net classes in your PowerShell scripts. In this example I’ll show you how you can perform DNS lookups using the Net.Dns class : [System.Net.Dns]::GetHostentry(“blog.paux.fr”) The result will be (depending if your input is a A or CNAME) : HostName Aliases AddressList -------- ------- ----------- [...]]]></description>
			<content:encoded><![CDATA[<p>PowerShell uses the power of .Net Framework thus you can leverage .Net classes in your PowerShell scripts.</p>
<p>In this example I’ll show you how you can perform DNS lookups using the <a href="http://msdn.microsoft.com/en-us/library/system.net.dns.aspx" target="_blank">Net.Dns</a> class :</p>
<pre class="brush: powershell;">[System.Net.Dns]::GetHostentry(“blog.paux.fr”)</pre>
<p>The result will be (depending if your input is a A or CNAME) :</p>
<pre>HostName                  Aliases            AddressList
--------                  -------            -----------
dedibox2.jeanb-net.com    {}                 {88.191.92.204}</pre>
<p>You can obviously pipe a list of hostname to this command and if you need to keep the original name you can add it to the resulted object and display it in a grid (new to PS2.0 !):</p>
<pre class="brush: powershell;">gc .\hosts.txt |% { [System.Net.Dns]::GetHostentry($_) | Add-Member -Name Host -MemberType NoteProperty -Value $_ -PassThru } | Select Host,AddressList | out-gridview</pre>
<p><a href="http://blog.paux.fr/wp-uploads/2009/08/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://blog.paux.fr/wp-uploads/2009/08/image-thumb.png" border="0" alt="image" width="449" height="274" /></a></p>
<p>You can of course do the same with an IP address (or an IPv6 address):</p>
<pre class="brush: powershell;">[System.Net.Dns]::GetHostentry(&quot;2001:4860:a005::68&quot;)</pre>
<p>The class in .Net Framework stay basic so you can&#8217;t resolve NS, SOA, MX or TXT records for example but you can try to use other classes as <a href="http://www.codeproject.com/KB/IP/DNS_NET_Resolver.aspx" target="_blank">this implementation of a resolver in C#</a> or using <a href="http://www.wintoolzone.com/PermaLink.aspx?ID=72" target="_blank">this one</a> (that use the internal DNS resolver of Windows)</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;bodytext=PowerShell%20uses%20the%20power%20of%20.Net%20Framework%20thus%20you%20can%20leverage%20.Net%20classes%20in%20your%20PowerShell%20scripts.%0D%0A%0D%0AIn%20this%20example%20I%E2%80%99ll%20show%20you%20how%20you%20can%20perform%20DNS%20lookups%20using%20the%20Net.Dns%20class%20%3A%0D%0A%0D%0A%5Bcode%20lang%3D%22ps%22%5D%5BSystem.Net.Dns%5D%3A%3AGetHostentry%28" title="Digg"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;notes=PowerShell%20uses%20the%20power%20of%20.Net%20Framework%20thus%20you%20can%20leverage%20.Net%20classes%20in%20your%20PowerShell%20scripts.%0D%0A%0D%0AIn%20this%20example%20I%E2%80%99ll%20show%20you%20how%20you%20can%20perform%20DNS%20lookups%20using%20the%20Net.Dns%20class%20%3A%0D%0A%0D%0A%5Bcode%20lang%3D%22ps%22%5D%5BSystem.Net.Dns%5D%3A%3AGetHostentry%28" title="del.icio.us"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;t=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29" title="Facebook"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;annotation=PowerShell%20uses%20the%20power%20of%20.Net%20Framework%20thus%20you%20can%20leverage%20.Net%20classes%20in%20your%20PowerShell%20scripts.%0D%0A%0D%0AIn%20this%20example%20I%E2%80%99ll%20show%20you%20how%20you%20can%20perform%20DNS%20lookups%20using%20the%20Net.Dns%20class%20%3A%0D%0A%0D%0A%5Bcode%20lang%3D%22ps%22%5D%5BSystem.Net.Dns%5D%3A%3AGetHostentry%28" title="Google Bookmarks"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;source=Jean-Benoit+Paux%27s+blog+Blog+about+Technology%2C+Life+and+whatever&amp;summary=PowerShell%20uses%20the%20power%20of%20.Net%20Framework%20thus%20you%20can%20leverage%20.Net%20classes%20in%20your%20PowerShell%20scripts.%0D%0A%0D%0AIn%20this%20example%20I%E2%80%99ll%20show%20you%20how%20you%20can%20perform%20DNS%20lookups%20using%20the%20Net.Dns%20class%20%3A%0D%0A%0D%0A%5Bcode%20lang%3D%22ps%22%5D%5BSystem.Net.Dns%5D%3A%3AGetHostentry%28" title="LinkedIn"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29" title="Live"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;body=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F" title="email"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F&amp;t=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29" title="MySpace"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F" title="Netvibes"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20make%20DNS%20resolutions%20in%20PowerShell%20%3F%20%28Host%20to%20IP%20and%20IP%20to%20host%29%20-%20http%3A%2F%2Fblog.paux.fr%2F2009%2F08%2Fhow-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host%2F" title="Twitter"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.paux.fr/2009/08/how-to-make-dns-resolutions-in-powershell-host-to-ip-and-ip-to-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export content in Powershell to Excel ?</title>
		<link>http://blog.paux.fr/2009/07/how-to-export-content-in-powershell-to-excel/</link>
		<comments>http://blog.paux.fr/2009/07/how-to-export-content-in-powershell-to-excel/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 18:48:58 +0000</pubDate>
		<dc:creator>Jean-Benoit Paux</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Astuce]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.paux.fr/2009/07/how-to-export-content-in-powershell-to-excel/</guid>
		<description><![CDATA[If you often use PowerShell as script language you well know the out-* and export-* cmdlets. I often use export-csv and open the result in Excel or out-GridView in PowerShell v2 (useful cmdlet BTW) for a nice graphical interface. I sometime use Excel API to create an Excel sheet directly or to import data but [...]]]></description>
			<content:encoded><![CDATA[<p>If you often use PowerShell as script language you well know the out-* and export-* cmdlets.</p>
<p>I often use export-csv and open the result in Excel or out-GridView in PowerShell v2 (useful cmdlet BTW) for a nice graphical interface. I sometime use Excel API to create an Excel sheet directly or to import data but something was missing : simplicity.</p>
<p>These are an excellent solutions but why don’t we use Excel directly with an out-excel cmdlet ?</p>
<p>I just found this cmdlet there : <a title="http://pathologicalscripter.wordpress.com/out-excel/" href="http://pathologicalscripter.wordpress.com/out-excel/">http://pathologicalscripter.wordpress.com/out-excel/</a> and it is working very well ! So have fun using it.</p>



Share and Enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;bodytext=If%20you%20often%20use%20PowerShell%20as%20script%20language%20you%20well%20know%20the%20out-%2A%20and%20export-%2A%20cmdlets.%20%20I%20often%20use%20export-csv%20and%20open%20the%20result%20in%20Excel%20or%20out-GridView%20in%20PowerShell%20v2%20%28useful%20cmdlet%20BTW%29%20for%20a%20nice%20graphical%20interface.%20I%20sometime%20use%20Exce" title="Digg"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;notes=If%20you%20often%20use%20PowerShell%20as%20script%20language%20you%20well%20know%20the%20out-%2A%20and%20export-%2A%20cmdlets.%20%20I%20often%20use%20export-csv%20and%20open%20the%20result%20in%20Excel%20or%20out-GridView%20in%20PowerShell%20v2%20%28useful%20cmdlet%20BTW%29%20for%20a%20nice%20graphical%20interface.%20I%20sometime%20use%20Exce" title="del.icio.us"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;t=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F" title="Facebook"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;annotation=If%20you%20often%20use%20PowerShell%20as%20script%20language%20you%20well%20know%20the%20out-%2A%20and%20export-%2A%20cmdlets.%20%20I%20often%20use%20export-csv%20and%20open%20the%20result%20in%20Excel%20or%20out-GridView%20in%20PowerShell%20v2%20%28useful%20cmdlet%20BTW%29%20for%20a%20nice%20graphical%20interface.%20I%20sometime%20use%20Exce" title="Google Bookmarks"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;source=Jean-Benoit+Paux%27s+blog+Blog+about+Technology%2C+Life+and+whatever&amp;summary=If%20you%20often%20use%20PowerShell%20as%20script%20language%20you%20well%20know%20the%20out-%2A%20and%20export-%2A%20cmdlets.%20%20I%20often%20use%20export-csv%20and%20open%20the%20result%20in%20Excel%20or%20out-GridView%20in%20PowerShell%20v2%20%28useful%20cmdlet%20BTW%29%20for%20a%20nice%20graphical%20interface.%20I%20sometime%20use%20Exce" title="LinkedIn"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F" title="Live"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;body=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F" title="email"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F&amp;t=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F" title="MySpace"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F&amp;url=http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F" title="Netvibes"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=How%20to%20export%20content%20in%20Powershell%20to%20Excel%20%3F%20-%20http%3A%2F%2Fblog.paux.fr%2F2009%2F07%2Fhow-to-export-content-in-powershell-to-excel%2F" title="Twitter"><img src="http://blog.paux.fr/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.paux.fr/2009/07/how-to-export-content-in-powershell-to-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
