<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>AideXchange</title>
	
	<link>http://aidexchange.fr</link>
	<description>L'administration avec PowerShell.</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:47:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/aidexchange" /><feedburner:info uri="aidexchange" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Importer les cmdlets Active Directory 2008</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/aiimP1SkGgo/importer-les-cmdlets-active-directory-2008.html</link>
		<comments>http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 10:47:54 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CmdLets]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[R2]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2802</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Active_Directory.png" width="70" height="70" alt="" title="Active Directory" /><br/>Pour importer les module Active Directory sur un serveur Windows 2008 R2. Par exemple sur votre serveur Exchange, vous voulez avoir accès aux cmdlets Active Directory 2008. Il suffit de lancer dans Exchange Management Shell la commande: Import-Module ActiveDirectory Related posts: CmdLets PowerShell pour Active Directory Importer une liste d&#8217;utilisateurs dans Active Directory Poster Active [...]
Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/poster-des-commandes-powershell-pour-active-directory.html' rel='bookmark' title='CmdLets PowerShell pour Active Directory'>CmdLets PowerShell pour Active Directory</a></li>
<li><a href='http://aidexchange.fr/active-directory/importer-une-liste-dutilisateurs-dans-active-directory.html' rel='bookmark' title='Importer une liste d&#8217;utilisateurs dans Active Directory'>Importer une liste d&#8217;utilisateurs dans Active Directory</a></li>
<li><a href='http://aidexchange.fr/active-directory/poster-active-directory-2008.html' rel='bookmark' title='Poster Active Directory 2008'>Poster Active Directory 2008</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Active_Directory.png" width="70" height="70" alt="" title="Active Directory" /><br/><p>Pour importer les module Active Directory sur un serveur Windows 2008 R2.<br />
Par exemple sur votre serveur Exchange, vous voulez avoir accès aux cmdlets Active Directory 2008.<br />
Il suffit de lancer dans Exchange Management Shell la commande:</p>

<div class="wp_codebox"><table><tr id="p28022"><td class="code" id="p2802code2"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Import-Module</span> ActiveDirectory</pre></td></tr></table></div>

<p>Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/poster-des-commandes-powershell-pour-active-directory.html' rel='bookmark' title='CmdLets PowerShell pour Active Directory'>CmdLets PowerShell pour Active Directory</a></li>
<li><a href='http://aidexchange.fr/active-directory/importer-une-liste-dutilisateurs-dans-active-directory.html' rel='bookmark' title='Importer une liste d&#8217;utilisateurs dans Active Directory'>Importer une liste d&#8217;utilisateurs dans Active Directory</a></li>
<li><a href='http://aidexchange.fr/active-directory/poster-active-directory-2008.html' rel='bookmark' title='Poster Active Directory 2008'>Poster Active Directory 2008</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/aiimP1SkGgo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html</feedburner:origLink></item>
		<item>
		<title>Activer l’éditeur PowerShell sur Windows 2008 R2</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/VyLR3aGRS94/activer-editeur-powershell-sur-windows-2008-r2.html</link>
		<comments>http://aidexchange.fr/powershell/activer-editeur-powershell-sur-windows-2008-r2.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 18:35:18 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Edition]]></category>
		<category><![CDATA[ISE]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2781</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/>Par défaut, l’éditeur PowerShell ISE sur Windows 2008 R2 ou Seven qui possèdent nativement PowerShell V2 n&#8217;est pas accessible. Il faut l&#8217;installer. Rien à télécharger, tout est déja disponible en local. Il suffit juste de lancer la commande. Import-Module ServerManager;Add-WindowsFeature PowerShell-ISE Et comme par magie Powershell ISE apparait dans le menu démarrer. &#160; &#160; Il [...]
Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html' rel='bookmark' title='Importer les cmdlets Active Directory 2008'>Importer les cmdlets Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/powershell/raccourcir-prompt-powershell.html' rel='bookmark' title='Raccourcir le prompt de Powershell.'>Raccourcir le prompt de Powershell.</a></li>
<li><a href='http://aidexchange.fr/powershell/utiliser-internet-explorer-avec-powershell.html' rel='bookmark' title='Utiliser Internet Explorer avec Powershell'>Utiliser Internet Explorer avec Powershell</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/><p>Par défaut, l’éditeur PowerShell ISE sur Windows 2008 R2 ou Seven qui possèdent nativement PowerShell V2 n&#8217;est pas accessible.<br />
Il faut l&#8217;installer. Rien à télécharger, tout est déja disponible en local. Il suffit juste de lancer la commande.</p>

<div class="wp_codebox"><table><tr id="p27814"><td class="code" id="p2781code4"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Import-Module</span> ServerManager;Add<span style="color: pink;">-</span>WindowsFeature PowerShell<span style="color: pink;">-</span>ISE</pre></td></tr></table></div>

<p>Et comme par magie Powershell ISE apparait dans le menu démarrer.<br />
&nbsp;<br />
<a href="http://img1.aidexchange.fr/wp-content/uploads/2012/01/PowerShell_ISE.png"><img class="aligncenter size-medium wp-image-2783" title="PowerShell_ISE" src="http://img1.aidexchange.fr/wp-content/uploads/2012/01/PowerShell_ISE-224x300.png" alt="" width="224" height="300" /></a></p>
<p>&nbsp;</p>
<p>Il vous permettra de faire en local vos petites modifications de script.<br />
&nbsp;<br />
<a href="http://img2.aidexchange.fr/wp-content/uploads/2012/01/PowerShell_ISE_Home1.png"><img class="aligncenter size-full wp-image-2786" title="PowerShell_ISE_Home" src="http://img2.aidexchange.fr/wp-content/uploads/2012/01/PowerShell_ISE_Home1.png" alt="" width="670" height="auto" /></a><br />
&nbsp;<br />
Pour les autres versions de Windows il faudra passer par l&#8217;installation de PowerShell V2.</p>
<p>Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html' rel='bookmark' title='Importer les cmdlets Active Directory 2008'>Importer les cmdlets Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/powershell/raccourcir-prompt-powershell.html' rel='bookmark' title='Raccourcir le prompt de Powershell.'>Raccourcir le prompt de Powershell.</a></li>
<li><a href='http://aidexchange.fr/powershell/utiliser-internet-explorer-avec-powershell.html' rel='bookmark' title='Utiliser Internet Explorer avec Powershell'>Utiliser Internet Explorer avec Powershell</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/VyLR3aGRS94" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/powershell/activer-editeur-powershell-sur-windows-2008-r2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/powershell/activer-editeur-powershell-sur-windows-2008-r2.html</feedburner:origLink></item>
		<item>
		<title>Exporter le taux d’occupation des disques des VM</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/GJZvxh_pSg8/exporter-le-taux-doccupation-des-disques-des-vm.html</link>
		<comments>http://aidexchange.fr/vmware/exporter-le-taux-doccupation-des-disques-des-vm.html#comments</comments>
		<pubDate>Tue, 03 Jan 2012 18:57:48 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Disque]]></category>
		<category><![CDATA[Machine Virtuelle]]></category>
		<category><![CDATA[Occupation]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2770</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/>Pour prévenir des problèmes de saturation des disques des machines virtuelles dans un environnement important, je voulais un script qui m&#8217;exporte dans un fichier le taux d&#8217;occupation des volumes de chacune de VMs sous Windows ou Linux. Ce script PowerCli consulte toutes les VMs l&#8217;architecture et fait un état de chaque disque. Il calcul l&#8217;espace [...]
Related posts:<ol>
<li><a href='http://aidexchange.fr/exchange-2007/exporter-les-mailcontacts.html' rel='bookmark' title='Exporter les MailContacts.'>Exporter les MailContacts.</a></li>
<li><a href='http://aidexchange.fr/ocs-2007/exporter-la-configuration-ocs-des-utilisateurs-dune-ou.html' rel='bookmark' title='Exporter la configuration OCS des utilisateurs d&#8217;une OU.'>Exporter la configuration OCS des utilisateurs d&#8217;une OU.</a></li>
<li><a href='http://aidexchange.fr/exchange-2007/exporter-les-boites-avec-forwards.html' rel='bookmark' title='Exporter les boites avec forwards.'>Exporter les boites avec forwards.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/><p>Pour prévenir des problèmes de saturation des disques des machines virtuelles dans un environnement important, je voulais un script qui m&#8217;exporte dans un fichier le taux d&#8217;occupation des volumes de chacune de VMs sous Windows ou Linux.</p>
<p>Ce script PowerCli consulte toutes les VMs l&#8217;architecture et fait un état de chaque disque. Il calcul l&#8217;espace en GB et le pourcentage de disque libre.</p>

<div class="wp_codebox"><table><tr id="p27706"><td class="code" id="p2770code6"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$date</span> <span style="color: pink;">=</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Get-Date</span><span style="color: #000000;">&#41;</span>.ToString<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;ddMMyyyyhhmmss&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #800080;">$file</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;.\Export_vS\&quot;</span> <span style="color: pink;">+</span> <span style="color: #800080;">$date</span> <span style="color: pink;">+</span> <span style="color: #800000;">&quot;-VMDisksState.csv&quot;</span>
<span style="color: #800080;">$resfile</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Item</span> <span style="color: #008080; font-style: italic;">-ItemType</span> file <span style="color: #008080; font-style: italic;">-Path</span> <span style="color: #800080;">$file</span> <span style="color: #008080; font-style: italic;">-Force</span>
<span style="color: #008080; font-weight: bold;">Add-Content</span> <span style="color: #008080; font-style: italic;">-Path</span> <span style="color: #800080;">$resfile</span> <span style="color: #008080; font-style: italic;">-Value</span> <span style="color: #800000;">&quot;Name;Volume;GB Libre;% Libre&quot;</span>
Get<span style="color: pink;">-</span>VM  <span style="color: pink;">|</span> <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#123;</span> 
&nbsp;
<span style="color: #800080;">$disks</span> <span style="color: pink;">=</span> <a href="about:blank"><span style="color: #000080;">$_</span></a>.guest.disks
&nbsp;
<span style="color: #0000FF;">Foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$disk</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$disks</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
<span style="color: #800080;">$FreeSpace</span> <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>math<span style="color: #000000;">&#93;</span>::round<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>int64<span style="color: #000000;">&#93;</span><span style="color: #800080;">$disk</span>.FreeSpace<span style="color: pink;">/</span>1GB<span style="color: pink;">,</span><span style="color: #804000;">2</span><span style="color: #000000;">&#41;</span>
<span style="color: #800080;">$Pourcent</span> <span style="color: pink;">=</span>  <span style="color: #000000;">&#91;</span>math<span style="color: #000000;">&#93;</span>::round<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>int64<span style="color: #000000;">&#93;</span><span style="color: #800080;">$disk</span>.FreeSpace<span style="color: pink;">*</span><span style="color: #804000;">100</span><span style="color: #000000;">&#41;</span><span style="color: pink;">/</span><span style="color: #800080;">$disk</span>.Capacity<span style="color: #000000;">&#41;</span>
<span style="color: #008080; font-weight: bold;">Add-Content</span> <span style="color: #008080; font-style: italic;">-Path</span> <span style="color: #800080;">$resfile</span> <span style="color: #008080; font-style: italic;">-Value</span> <span style="color: #800000;">&quot;$($_.name);$($disk.path);$($FreeSpace);$($pourcent)&quot;</span>
&nbsp;
<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Related posts:<ol>
<li><a href='http://aidexchange.fr/exchange-2007/exporter-les-mailcontacts.html' rel='bookmark' title='Exporter les MailContacts.'>Exporter les MailContacts.</a></li>
<li><a href='http://aidexchange.fr/ocs-2007/exporter-la-configuration-ocs-des-utilisateurs-dune-ou.html' rel='bookmark' title='Exporter la configuration OCS des utilisateurs d&#8217;une OU.'>Exporter la configuration OCS des utilisateurs d&#8217;une OU.</a></li>
<li><a href='http://aidexchange.fr/exchange-2007/exporter-les-boites-avec-forwards.html' rel='bookmark' title='Exporter les boites avec forwards.'>Exporter les boites avec forwards.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/GJZvxh_pSg8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/vmware/exporter-le-taux-doccupation-des-disques-des-vm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/vmware/exporter-le-taux-doccupation-des-disques-des-vm.html</feedburner:origLink></item>
		<item>
		<title>Se connecter au vCenter Server avec PowerCli</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/eovvZUBwuzE/se-connecter-au-vcenter-server-avec-powercli.html</link>
		<comments>http://aidexchange.fr/vmware/se-connecter-au-vcenter-server-avec-powercli.html#comments</comments>
		<pubDate>Mon, 02 Jan 2012 12:33:19 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Connexion]]></category>
		<category><![CDATA[PowerCli]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2749</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/>La première ligne de commande après avoir lancer PowerCli, elle vous permet de vous connecter au vCenter Server et c&#8217;est ensuite que vous pourrez agir. Connect-VIServer -Server 127.0.0.1 -User &#34;domain\vcmadmin&#34; -Password &#34;P@ssW0rd&#34; -Protocol &#34;https&#34; No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/><p>La première ligne de commande après avoir lancer PowerCli, elle vous permet de vous connecter au vCenter Server et c&#8217;est ensuite que vous pourrez agir.</p>

<div class="wp_codebox"><table><tr id="p27498"><td class="code" id="p2749code8"><pre class="powershell" style="font-family:monospace;">Connect<span style="color: pink;">-</span>VIServer <span style="color: #008080; font-style: italic;">-Server</span> 127.0.0.1 <span style="color: #008080; font-style: italic;">-User</span> <span style="color: #800000;">&quot;domain\vcmadmin&quot;</span> <span style="color: pink;">-</span>Password <span style="color: #800000;">&quot;P@ssW0rd&quot;</span> <span style="color: pink;">-</span>Protocol <span style="color: #800000;">&quot;https&quot;</span></pre></td></tr></table></div>

<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/eovvZUBwuzE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/vmware/se-connecter-au-vcenter-server-avec-powercli.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/vmware/se-connecter-au-vcenter-server-avec-powercli.html</feedburner:origLink></item>
		<item>
		<title>Récupérer la date sur un système distant</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/oNMYUWy-YrI/recuperer-la-date-sur-systeme-distant.html</link>
		<comments>http://aidexchange.fr/windows/recuperer-la-date-sur-systeme-distant.html#comments</comments>
		<pubDate>Tue, 27 Dec 2011 14:07:21 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Distance]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2740</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Server.png" width="70" height="70" alt="" title="Windows" /><br/>En deux lignes, voici comment contrôler l&#8217;heure et la date sur un serveur distant avec PowerShell. $rtime = Get-WmiObject -Class Win32_OperatingSystem -ComputerName &#34;ServerName&#34; Write-Host $rtime.ConvertToDateTime&#40;$rtime.LocalDateTime&#41; No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Server.png" width="70" height="70" alt="" title="Windows" /><br/><p>En deux lignes, voici comment contrôler l&#8217;heure et la date sur un serveur distant avec PowerShell.</p>

<div class="wp_codebox"><table><tr id="p274010"><td class="code" id="p2740code10"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$rtime</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">Get-WmiObject</span> <span style="color: #008080; font-style: italic;">-Class</span> Win32_OperatingSystem <span style="color: #008080; font-style: italic;">-ComputerName</span> <span style="color: #800000;">&quot;ServerName&quot;</span>
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800080;">$rtime</span>.ConvertToDateTime<span style="color: #000000;">&#40;</span><span style="color: #800080;">$rtime</span>.LocalDateTime<span style="color: #000000;">&#41;</span></pre></td></tr></table></div>

<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/oNMYUWy-YrI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/windows/recuperer-la-date-sur-systeme-distant.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/windows/recuperer-la-date-sur-systeme-distant.html</feedburner:origLink></item>
		<item>
		<title>Lister les 10 plus grosses boites aux lettres</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/X8L26d636yY/lister-les-10-grosses-boites-aux-lettres.html</link>
		<comments>http://aidexchange.fr/exchange-2010/lister-les-10-grosses-boites-aux-lettres.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:44:12 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Boite aux lettres]]></category>
		<category><![CDATA[Taille]]></category>
		<category><![CDATA[Top]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2705</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Exchange_2010.png" width="70" height="70" alt="" title="Exchange 2010" /><br/>Voici une commande pour récupérer le top 10 des boites Exchange de votre organistation. Get-Mailbox -ResultSize unlimited &#124; Get-MailboxStatistics &#124; Sort-Object -Descending -Property TotalItemSize &#124; Select-Object DisplayName,TotalItemSize -First 10 No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Exchange_2010.png" width="70" height="70" alt="" title="Exchange 2010" /><br/><p>Voici une commande pour récupérer le top 10 des boites Exchange de votre organistation.</p>

<div class="wp_codebox"><table><tr id="p270512"><td class="code" id="p2705code12"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Get-Mailbox</span> <span style="color: #008080; font-style: italic;">-ResultSize</span> unlimited <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Get-MailboxStatistics</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Sort-Object</span> <span style="color: #008080; font-style: italic;">-Descending</span> <span style="color: #008080; font-style: italic;">-Property</span> TotalItemSize <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Select-Object</span> DisplayName<span style="color: pink;">,</span>TotalItemSize <span style="color: #008080; font-style: italic;">-First</span> <span style="color: #804000;">10</span></pre></td></tr></table></div>

<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/X8L26d636yY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/exchange-2010/lister-les-10-grosses-boites-aux-lettres.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/exchange-2010/lister-les-10-grosses-boites-aux-lettres.html</feedburner:origLink></item>
		<item>
		<title>Variables d’environnement avec PowerShell</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/gZxzvSp_ueA/variables-environnement-avec-powershell.html</link>
		<comments>http://aidexchange.fr/powershell/variables-environnement-avec-powershell.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 08:39:23 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Variables d'environnement]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2670</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/>Voici comment utiliser les variables d&#8217;environnement avec PowerShell. Afficher les variables d&#8217;environnement: Get-ChildItem Env: Afficher une variable d&#8217;environnement: $Env:os Utiliser les variables d&#8217;environnement: Set-Location $env:USERPROFILE No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/><p>Voici comment utiliser les variables d&#8217;environnement avec PowerShell.</p>
<p>Afficher les variables d&#8217;environnement:</p>

<div class="wp_codebox"><table><tr id="p267016"><td class="code" id="p2670code16"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Get-ChildItem</span> Env:</pre></td></tr></table></div>

<p>Afficher une variable d&#8217;environnement:</p>

<div class="wp_codebox"><table><tr id="p267017"><td class="code" id="p2670code17"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$Env</span>:os</pre></td></tr></table></div>

<p>Utiliser les variables d&#8217;environnement:</p>

<div class="wp_codebox"><table><tr id="p267018"><td class="code" id="p2670code18"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Set-Location</span> <span style="color: #800080;">$env</span>:USERPROFILE</pre></td></tr></table></div>

<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/gZxzvSp_ueA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/powershell/variables-environnement-avec-powershell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/powershell/variables-environnement-avec-powershell.html</feedburner:origLink></item>
		<item>
		<title>Gérer VMware vSphere avec Powershell</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/T2crnLZugG0/gerer-vmware-vsphere-avec-powershell.html</link>
		<comments>http://aidexchange.fr/vmware/gerer-vmware-vsphere-avec-powershell.html#comments</comments>
		<pubDate>Wed, 16 Nov 2011 14:00:36 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCli]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2646</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/>Voici un guide de référence PowerCli pour VMware vSphere 4.1. Il vous donne les bases pour gérer vShere avec Powershell. No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/vsphere.png" width="70" height="70" alt="" title="VMware" /><br/><p>Voici un guide de référence PowerCli pour VMware vSphere 4.1.<br />
Il vous donne les bases pour gérer vShere avec Powershell.</p>
<p><a href="http://img1.aidexchange.fr/wp-content/uploads/2011/11/PowerCli-Quick_Reference.jpg"><img src="http://img1.aidexchange.fr/wp-content/uploads/2011/11/PowerCli-Quick_Reference-th.jpg" alt="PowerCli-Quick_Reference" title="PowerCli-Quick_Reference" width="670" height="auto" class="aligncenter size-large wp-image-2652" /></a></p>
<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/T2crnLZugG0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/vmware/gerer-vmware-vsphere-avec-powershell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/vmware/gerer-vmware-vsphere-avec-powershell.html</feedburner:origLink></item>
		<item>
		<title>CmdLets PowerShell pour Active Directory</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/7lvwESsS-0E/poster-des-commandes-powershell-pour-active-directory.html</link>
		<comments>http://aidexchange.fr/active-directory/poster-des-commandes-powershell-pour-active-directory.html#comments</comments>
		<pubDate>Tue, 01 Nov 2011 00:15:08 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CmdLets]]></category>
		<category><![CDATA[Commandes]]></category>
		<category><![CDATA[Poster]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2478</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Active_Directory.png" width="70" height="70" alt="" title="Active Directory" /><br/>Le poster des commandes Powershell pour Active Directory. Ces CmdLets Active Directory sont disponibles sur Windows Server 2008 R2 mais nécessite Active Directory Management Gateway Service pour les autres versions. Related posts: Importer les cmdlets Active Directory 2008 Poster Active Directory 2008 Retrouver un message dans les logs d&#8217;un HUB.
Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html' rel='bookmark' title='Importer les cmdlets Active Directory 2008'>Importer les cmdlets Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/active-directory/poster-active-directory-2008.html' rel='bookmark' title='Poster Active Directory 2008'>Poster Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/exchange-2007/retrouver-un-message-dans-les-logs-dun-hub.html' rel='bookmark' title='Retrouver un message dans les logs d&#8217;un HUB.'>Retrouver un message dans les logs d&#8217;un HUB.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Active_Directory.png" width="70" height="70" alt="" title="Active Directory" /><br/><p>Le poster des commandes <strong>Powershell</strong> pour <strong>Active Directory</strong>.<br />
Ces CmdLets Active Directory sont disponibles sur Windows Server 2008 R2 mais nécessite Active Directory Management Gateway Service pour les autres versions.</p>
<p style="text-align: center;"><a href="http://aidexchange.fr/wp-content/uploads/2011/10/poster_powershell_active_directory.png" target="_blank"><img class="aligncenter size-full wp-image-433" title="Poster PowerShell Active Directory" src="http://aidexchange.fr/wp-content/uploads/2011/10/poster_powershell_active_directory.png" alt="Poster PowerShell Active Directory" width="640" height="auto" /></a></p>
<p>Related posts:<ol>
<li><a href='http://aidexchange.fr/active-directory/importer-les-cmdlets-active-directory-2008.html' rel='bookmark' title='Importer les cmdlets Active Directory 2008'>Importer les cmdlets Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/active-directory/poster-active-directory-2008.html' rel='bookmark' title='Poster Active Directory 2008'>Poster Active Directory 2008</a></li>
<li><a href='http://aidexchange.fr/exchange-2007/retrouver-un-message-dans-les-logs-dun-hub.html' rel='bookmark' title='Retrouver un message dans les logs d&#8217;un HUB.'>Retrouver un message dans les logs d&#8217;un HUB.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/7lvwESsS-0E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/active-directory/poster-des-commandes-powershell-pour-active-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/active-directory/poster-des-commandes-powershell-pour-active-directory.html</feedburner:origLink></item>
		<item>
		<title>Transfert vers un serveur FTP avec Powershell</title>
		<link>http://feedproxy.google.com/~r/aidexchange/~3/TX6xDvnG7VM/transfert-vers-serveur-ftp-avec-powershell.html</link>
		<comments>http://aidexchange.fr/powershell/transfert-vers-serveur-ftp-avec-powershell.html#comments</comments>
		<pubDate>Mon, 31 Oct 2011 22:53:24 +0000</pubDate>
		<dc:creator>Christophe</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Transfert]]></category>
		<category><![CDATA[Upload]]></category>

		<guid isPermaLink="false">http://aidexchange.fr/?p=2472</guid>
		<description><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/>Voici un script PowerShell qui permet de transférer un dossier vers un serveur FTP. Ce script upload le dossier avec tous les sous dossiers et les fichiers. $user = &#34;guest&#34; $password = &#34;Powershell&#34; $localdir = &#34;C:\Scripts&#34; $ftpdir = &#34;ftp://ftp.server.com/uploads/&#34; &#160; $client = New-Object System.Net.WebClient $client.Credentials = New-Object System.Net.NetworkCredential&#40;$user,$password&#41; &#160; $parentfolder = $localdir.split&#40;&#34;\&#34;&#41;&#91;-1&#93; Write-Host &#34;Création de [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://aidexchange.fr/wp-content/plugins/category-icons/icons/Powershell.png" width="70" height="70" alt="" title="Powershell" /><br/><p>Voici un script <strong>PowerShell</strong> qui permet de transférer un dossier vers un serveur <strong>FTP</strong>.<br />
Ce script upload le dossier avec tous les sous dossiers et les fichiers.</p>

<div class="wp_codebox"><table><tr id="p247220"><td class="code" id="p2472code20"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$user</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;guest&quot;</span>
<span style="color: #800080;">$password</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;Powershell&quot;</span>
<span style="color: #800080;">$localdir</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;C:\Scripts&quot;</span>
<span style="color: #800080;">$ftpdir</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;ftp://ftp.server.com/uploads/&quot;</span>
&nbsp;
<span style="color: #800080;">$client</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Net.WebClient 
<span style="color: #800080;">$client</span>.Credentials <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Net.NetworkCredential<span style="color: #000000;">&#40;</span><span style="color: #800080;">$user</span><span style="color: pink;">,</span><span style="color: #800080;">$password</span><span style="color: #000000;">&#41;</span> 
&nbsp;
<span style="color: #800080;">$parentfolder</span> <span style="color: pink;">=</span> <span style="color: #800080;">$localdir</span>.split<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;\&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: pink;">-</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span>
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Création de $parentfolder&quot;</span>
<span style="color: #800080;">$makedir</span> <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>System.Net.WebRequest<span style="color: #000000;">&#93;</span>::Create<span style="color: #000000;">&#40;</span><span style="color: #800080;">$ftpdir</span><span style="color: pink;">+</span><span style="color: #800080;">$parentfolder</span><span style="color: #000000;">&#41;</span>;
<span style="color: #800080;">$makedir</span>.Credentials <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Net.NetworkCredential<span style="color: #000000;">&#40;</span><span style="color: #800080;">$user</span><span style="color: pink;">,</span><span style="color: #800080;">$password</span><span style="color: #000000;">&#41;</span> 
<span style="color: #800080;">$makedir</span>.Method <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>System.Net.WebRequestMethods<span style="color: pink;">+</span>FTP<span style="color: #000000;">&#93;</span>::MakeDirectory;
<span style="color: #800080;">$makedir</span>.GetResponse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$item</span> <span style="color: #0000FF;">in</span> <span style="color: #008080; font-weight: bold;">Get-ChildItem</span> <span style="color: #008080; font-style: italic;">-recurse</span> <span style="color: #800080;">$localdir</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> 
&nbsp;
    <span style="color: #800080;">$filename</span> <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>system.io.path<span style="color: #000000;">&#93;</span>::GetFullPath<span style="color: #000000;">&#40;</span><span style="color: #800080;">$item</span>.FullName<span style="color: #000000;">&#41;</span>.SubString<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>system.io.path<span style="color: #000000;">&#93;</span>::GetFullPath<span style="color: #000000;">&#40;</span><span style="color: #800080;">$localdir</span><span style="color: #000000;">&#41;</span>.Length <span style="color: pink;">+</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$item</span>.Attributes <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Directory&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
        try<span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Création de $item.Name&quot;</span>
&nbsp;
            <span style="color: #800080;">$makedir</span> <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>System.Net.WebRequest<span style="color: #000000;">&#93;</span>::Create<span style="color: #000000;">&#40;</span><span style="color: #800080;">$ftpdir</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;/&quot;</span><span style="color: pink;">+</span><span style="color: #800080;">$parentfolder</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;/&quot;</span><span style="color: pink;">+</span><span style="color: #800080;">$filename</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #800080;">$makedir</span>.Credentials <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Net.NetworkCredential<span style="color: #000000;">&#40;</span><span style="color: #800080;">$user</span><span style="color: pink;">,</span><span style="color: #800080;">$password</span><span style="color: #000000;">&#41;</span> 
            <span style="color: #800080;">$makedir</span>.Method <span style="color: pink;">=</span> <span style="color: #000000;">&#91;</span>System.Net.WebRequestMethods<span style="color: pink;">+</span>FTP<span style="color: #000000;">&#93;</span>::MakeDirectory;
            <span style="color: #800080;">$makedir</span>.GetResponse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
            <span style="color: #000000;">&#125;</span>
            catch <span style="color: #000000;">&#91;</span>Net.WebException<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800080;">$item</span>.Name probably exists ...
            <span style="color: #000000;">&#125;</span>
&nbsp;
            <span style="color: #0000FF;">continue</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Transfert de $item...&quot;</span>
        <span style="color: #800080;">$file</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Uri<span style="color: #000000;">&#40;</span><span style="color: #800080;">$ftpdir</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;/&quot;</span><span style="color: pink;">+</span><span style="color: #800080;">$parentfolder</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;/&quot;</span><span style="color: pink;">+</span><span style="color: #800080;">$filename</span><span style="color: #000000;">&#41;</span> 
        <span style="color: #800080;">$client</span>.UploadFile<span style="color: #000000;">&#40;</span><span style="color: #800080;">$file</span><span style="color: pink;">,</span> <span style="color: #800080;">$item</span>.FullName<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>.</p>
<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/aidexchange/~4/TX6xDvnG7VM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://aidexchange.fr/powershell/transfert-vers-serveur-ftp-avec-powershell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://aidexchange.fr/powershell/transfert-vers-serveur-ftp-avec-powershell.html</feedburner:origLink></item>
	</channel>
</rss>

