<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2958474539072867183</id><updated>2024-10-24T17:32:49.656+02:00</updated><category term="développement"/><category term="excel"/><category term="Visual Studio"/><category term="office 365"/><category term="powershell"/><category term="vb.net"/><category term="exchange online"/><category term="outlook"/><category term="Apache"/><category term="VS2010"/><category term="automation"/><category term="bug"/><category term="gallery"/><category term="javascript"/><category term="php"/><category term="vba"/><category term="word"/><title type='text'>devNotes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-1252969191983869009</id><published>2014-09-11T18:25:00.000+02:00</published><updated>2014-09-11T18:25:00.479+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="exchange online"/><category scheme="http://www.blogger.com/atom/ns#" term="office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="outlook"/><category scheme="http://www.blogger.com/atom/ns#" term="powershell"/><title type='text'>Office 365 : des listes d&#39;adresses en français</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;
Modifier les noms des listes d&#39;adresses dans Office 365&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Lorsque vous déployez Office 365 un certain nombre de listes d&#39;adresses sont créées dans Echange Online. Vous les retrouvez dans votre carnet d&#39;adresse Outlook. Curieusement ces groupes sont créés en anglais, ce qui nous donne une liste panachant français et anglais... problème mineur, mais qui peut constituer un frein à l&#39;adoption pour certains utilisateurs peu à l&#39;aise avec l&#39;anglais.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4V3bwhDZ46w9o8t4FWsVSBvIDrVVOxcsrVShcjMtn-vjMMwsk-HyjJVgYaSmEiS0wdKLSIKHYY0J1qNOLNbd29ftTdQUuuq3l8JNoD5VMhsIhaga46gEs8hQnUaqEJPXve3Upt61sslo/s1600/offline_address_list.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4V3bwhDZ46w9o8t4FWsVSBvIDrVVOxcsrVShcjMtn-vjMMwsk-HyjJVgYaSmEiS0wdKLSIKHYY0J1qNOLNbd29ftTdQUuuq3l8JNoD5VMhsIhaga46gEs8hQnUaqEJPXve3Upt61sslo/s320/offline_address_list.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Pour pouvoir travailler sur les listes d&#39;adresses vous devez posséder le rôle d&#39;administration &quot;&lt;b&gt;Address Lists&lt;/b&gt;&quot; dans Exchange Online.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Par défaut ce rôle n&#39;est pas attribué, vous devrez donc commencer par créer un nouveau rôle d&#39;administrateur.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Rendez-vous dans le centre d&#39;administration Exchange. Dans le menu &quot;&lt;b&gt;autorisations&lt;/b&gt;&quot; cliquez sur le &quot;&lt;b&gt;+&lt;/b&gt;&quot; pour créer un nouveau rôle. Ajoutez-y le rôle &quot;&lt;b&gt;Address Lists&lt;/b&gt;&quot; et ajoutez votre administrateur dans les membres.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhQIDqYtaKQahZJ4dD4dg_eAXe79FPDDofvAysoi8dWYqmnuRPIAxHsCZvl3mwYLyTD1XpLEsPKd4SKmXGR_iL1_zqvILSFAwBoKA5CtE6kiyKqkA6ggnS1PzPQLWDuJ2BYUI6AASwOc0/s1600/address_lists_role.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhQIDqYtaKQahZJ4dD4dg_eAXe79FPDDofvAysoi8dWYqmnuRPIAxHsCZvl3mwYLyTD1XpLEsPKd4SKmXGR_iL1_zqvILSFAwBoKA5CtE6kiyKqkA6ggnS1PzPQLWDuJ2BYUI6AASwOc0/s1600/address_lists_role.jpg&quot; height=&quot;337&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ouvrez la console PowerShell et connectez-vous à votre tenant.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nous allons utiliser la cmdlet Set-AddressList pour renommer les groupes existants. Afin de ne pas interférer avec d&#39;autres scripts j&#39;ai choisi de ne pas changer le nom du groupe, mais uniquement son nom d&#39;affichage :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;Set-AddressList -Identity &quot;All Contacts&quot; -DisplayName &quot;Tous les contacts&quot;
Set-AddressList -Identity &quot;All Distribution Lists&quot; -DisplayName &quot;Toutes les listes de distribution&quot;
Set-AddressList -Identity &quot;All Rooms&quot; -DisplayName &quot;Toutes les salles&quot;
Set-AddressList -Identity &quot;All Users&quot; -DisplayName &quot;Tous les utilisateurs&quot;
Set-AddressList -Identity &quot;Offline Global Address List&quot; -DisplayName &quot;Liste d&#39;adresses globale hors ligne&quot;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Redémarrez Outlook et vous obtiendrez une liste un peu plus francophone :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIqBqcjbNKcy4ffv6FvZf0vPmu8MARTK_EdApYyF_zaQiAsxTj06bGT2JvNb1rZ0J2CQGvhdSD26Q2J0G8iBBw_n29S_zcJQHKdJ5dEiHLct36Eq7xsAK0_6wqzj3R0zZJZqBMzmF_Z-w/s1600/liste_adresses_globale.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIqBqcjbNKcy4ffv6FvZf0vPmu8MARTK_EdApYyF_zaQiAsxTj06bGT2JvNb1rZ0J2CQGvhdSD26Q2J0G8iBBw_n29S_zcJQHKdJ5dEiHLct36Eq7xsAK0_6wqzj3R0zZJZqBMzmF_Z-w/s1600/liste_adresses_globale.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Reste le problème du &quot;&lt;b&gt;All Address Lists&lt;/b&gt;&quot;... à priori pour l&#39;instant Exchange Online ne propose pas de CmdLet permettant de toucher à cet objet.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/1252969191983869009/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2014/09/office-365-des-listes-dadresses-en.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/1252969191983869009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/1252969191983869009'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2014/09/office-365-des-listes-dadresses-en.html' title='Office 365 : des listes d&#39;adresses en français'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4V3bwhDZ46w9o8t4FWsVSBvIDrVVOxcsrVShcjMtn-vjMMwsk-HyjJVgYaSmEiS0wdKLSIKHYY0J1qNOLNbd29ftTdQUuuq3l8JNoD5VMhsIhaga46gEs8hQnUaqEJPXve3Upt61sslo/s72-c/offline_address_list.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-9195187822692307322</id><published>2014-09-10T19:17:00.000+02:00</published><updated>2014-09-10T19:17:00.482+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="exchange online"/><category scheme="http://www.blogger.com/atom/ns#" term="office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="outlook"/><category scheme="http://www.blogger.com/atom/ns#" term="powershell"/><title type='text'>Office 365 et les groupes dynamiques</title><content type='html'>&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
Qu’est-ce qu’un groupe dynamique&amp;nbsp;?&lt;/h3&gt;
&lt;h2&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Les groupes dynamiques sont des groupes de distributions
auxquels Exchange va assigner des membres en fonctions de critères définis par
l’administrateur.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A la différence des groupes basés sur l&#39;Active Directory, ces groupes sont recalculés à chaque utilisation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Ils vont nous permettre de facilement toucher tous les membres d&#39;un service ou tous les utilisateurs d&#39;un site.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Création d’un groupe dynamique&lt;/h3&gt;
&lt;div&gt;
Les groupes dynamiques peuvent être créés via l&#39;interface d&#39;administration Exchange Online, toutefois lorsque vous aurez la nécessité de créer des filtres plus complexes vous devrez recourir à PowerShell.&lt;/div&gt;
&lt;h4&gt;
Exemple 1&amp;nbsp;: création d’un groupe basé sur l’appartenance à un service
(via Interface)&lt;/h4&gt;
&lt;h3&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Dans l’administration Exchange, sélectionnez le menu
«&amp;nbsp;&lt;b&gt;destinataire&lt;/b&gt;&amp;nbsp;» puis «&amp;nbsp;&lt;b&gt;groupes&amp;nbsp;&lt;/b&gt;».&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Cliquez sur le «&amp;nbsp;&lt;b&gt;+&amp;nbsp;&lt;/b&gt;» et sélectionnez «&amp;nbsp;&lt;b&gt;Groupe
de distribution dynamique&lt;/b&gt;&amp;nbsp;».&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVkcoqMash7AX0PYyk4kPU5sq3WQtx55HNA9E8N4UKpS-ZdM6yDTK81laFSWITja__TIxYGHMZdGUyc7b0MK6pNxkbTR6YPfCKWs08MGmOsLh6x3f9VRquKx1h63Wi82tVMol8xLmCoiM/s1600/groupe_distribution_dynamique_exchange_online.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVkcoqMash7AX0PYyk4kPU5sq3WQtx55HNA9E8N4UKpS-ZdM6yDTK81laFSWITja__TIxYGHMZdGUyc7b0MK6pNxkbTR6YPfCKWs08MGmOsLh6x3f9VRquKx1h63Wi82tVMol8xLmCoiM/s1600/groupe_distribution_dynamique_exchange_online.jpg&quot; height=&quot;130&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Dans le champ «&amp;nbsp;&lt;b&gt;L’appartenance à ce groupe sera
déterminée par les règles configurées ci-dessous&lt;/b&gt;&amp;nbsp;» sélectionnez
«&amp;nbsp;&lt;b&gt;Service&amp;nbsp;&lt;/b&gt;» puis tapez le nom du service pour lequel vous souhaitez
regrouper les membres (dans l’exemple ci-dessous&amp;nbsp;:
«&amp;nbsp;&lt;b&gt;méthodes&lt;/b&gt;&amp;nbsp;»).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMTCy5QJiYcL12kRHharXZzcG_Op_1oD-wXSUOGD9G-nZrnzLbT_6eHTRJ0AW3RjZ7ohijdFvyBHUyMCMIlgrW_az-X74szxGz_Wmz7-lOfyoXUlJIthxalLsKq8jeYDLmLFgBb2M1jJ8/s1600/groupe_selection_service.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMTCy5QJiYcL12kRHharXZzcG_Op_1oD-wXSUOGD9G-nZrnzLbT_6eHTRJ0AW3RjZ7ohijdFvyBHUyMCMIlgrW_az-X74szxGz_Wmz7-lOfyoXUlJIthxalLsKq8jeYDLmLFgBb2M1jJ8/s1600/groupe_selection_service.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h4&gt;
Exemple 2&amp;nbsp;: création d’un groupe basé sur l’appartenance à un service
(via PowerShell)&lt;/h4&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Cet exemple produit le même résultat que l’exemple 1, mais
avec une création en ligne de commande.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Une fois connecté à votre tenant Office 365 exécutez la commande PowerShell
suivante&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;Extraitdecode&quot;&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;New-DynamicDistributionGroup -Name &quot;Nom du groupe&quot; -IncludedRecipients MailboxUsers -ConditionalDepartment &quot;Nom du service&quot;&lt;/pre&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Par exemple&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;Extraitdecode&quot;&gt;
New-DynamicDistributionGroup
-Name &quot;Groupe Service Informatique&quot; -IncludedRecipients MailboxUsers
-ConditionalDepartment Informatique&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;Extraitdecode&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQqn4nfCLbS8ro3mshjji8ZQfnC_b84_xN2LFBLGwzzTg7-x0V6NnU13HHCnuCDp0tmVQ1OlHGRNiEEBjSwWlSnAai14N7tQgjLydCGZYmS7T3elPABepDUtV_0BCpkfXfXwtu3dXXy0/s1600/ps_dynamicdistributiongroup.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQqn4nfCLbS8ro3mshjji8ZQfnC_b84_xN2LFBLGwzzTg7-x0V6NnU13HHCnuCDp0tmVQ1OlHGRNiEEBjSwWlSnAai14N7tQgjLydCGZYmS7T3elPABepDUtV_0BCpkfXfXwtu3dXXy0/s1600/ps_dynamicdistributiongroup.jpg&quot; height=&quot;48&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
Exemple 3&amp;nbsp;: création d’un groupe basé sur le service et la ville&lt;/h4&gt;
&lt;h3&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Dans cet exemple nous allons créer un groupe comprenant tous
les membres du bureau d’études de Paris. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Pour cela nous allons assumer le fait que notre Active Directory n&#39;a pas été renseignée de manière optimale et que le service &quot;bureau d&#39;études&quot; souffre donc de plusieurs formes d&#39;écritures différentes.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Vous noterez également que l&#39;interface web ne permet pas de réaliser de filtrage sur la ville. PowerShell est donc indispensable dans ce cas.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Vous noterez&amp;nbsp;: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;La possibilité d’utiliser un opérateur
«&amp;nbsp;like&amp;nbsp;»&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-indent: -18pt;&quot;&gt;La possibilité d’utiliser un opérateur
«&amp;nbsp;or&amp;nbsp;»&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!--[if !supportLists]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -18.0pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Une fois connecté au tenant exécutez la commande PowerShell
suivante&amp;nbsp;:&lt;/div&gt;
&lt;div class=&quot;Extraitdecode&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;New-DynamicDistributionGroup -Name &quot;Groupe BE Paris&quot; -RecipientFilter {(RecipientType -eq &quot;UserMailbox&quot;) -and (Department -like &quot;BUREAU? ETUDE*&quot; -or Department -like &quot;BE *&quot; -or Department -like &quot;Bureau? d&#39;études&quot;) -and (City -eq &quot;Paris&quot;)}&lt;/pre&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Pour plus d’infos sur les groupes dynamiques : &lt;a href=&quot;http://help.outlook.com/fr-fr/140/Dd264647.aspx&quot;&gt;http://help.outlook.com/fr-fr/140/Dd264647.aspx&lt;/a&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;/div&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h4&gt;
Voir les membres d’un groupe&lt;/h4&gt;
&lt;h2&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Les membres d’un groupe dynamique ne sont pas visibles via
l’interface web.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Une fois connecté au tenant exécuter les commandes
PowerShell suivantes&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;Extraitdecode&quot;&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;$DDG = Get-DynamicDistributionGroup &quot;Nom du groupe&quot;
Get-Recipient -RecipientPreviewFilter $DDG.RecipientFilter&lt;/pre&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/9195187822692307322/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2014/09/office-365-et-les-groupes-dynamiques.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/9195187822692307322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/9195187822692307322'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2014/09/office-365-et-les-groupes-dynamiques.html' title='Office 365 et les groupes dynamiques'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVkcoqMash7AX0PYyk4kPU5sq3WQtx55HNA9E8N4UKpS-ZdM6yDTK81laFSWITja__TIxYGHMZdGUyc7b0MK6pNxkbTR6YPfCKWs08MGmOsLh6x3f9VRquKx1h63Wi82tVMol8xLmCoiM/s72-c/groupe_distribution_dynamique_exchange_online.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-7795859222895673132</id><published>2014-09-10T18:19:00.000+02:00</published><updated>2014-09-10T18:19:00.033+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="powershell"/><title type='text'>Connection PowerShell à un tenant Office 365</title><content type='html'>Ce billet est le premier d&#39;une série consacrée à l&#39;administration d&#39;Office 365. On commence simple, avec l&#39;ouverture d&#39;une session sous PowerShell.&lt;br /&gt;
&lt;h3&gt;
Ouverture de session&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;1 ) Ouvrir
PowerShell&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;2)
S’authentifier via la commande&amp;nbsp;: &lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;$LiveCred = Get-Credential&lt;/pre&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7fcjE-c9nZ4L2-H0VQsDNIGo12gHtnuiM7Pm7KfsxiGaJCFQC_mSMeABTEVhItLbcuAPUFUc8M6RodO3DNdtN3DkGjX3mCVhbKU1Xr5BoXEEzDiSChqvN-yVz_7XDnvehM3bPyxVs7FA/s1600/connection_powershell_office365.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7fcjE-c9nZ4L2-H0VQsDNIGo12gHtnuiM7Pm7KfsxiGaJCFQC_mSMeABTEVhItLbcuAPUFUc8M6RodO3DNdtN3DkGjX3mCVhbKU1Xr5BoXEEzDiSChqvN-yVz_7XDnvehM3bPyxVs7FA/s1600/connection_powershell_office365.jpg&quot; height=&quot;256&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Une boite de dialogue s’ouvre&amp;nbsp;: Saisissez un
identifiant administrateur Office 365.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3) Ouvrez une session sur le tenant Office 365&amp;nbsp;via la
commande :&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri &lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;a href=&quot;https://ps.outlook.com/powershell/&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; mso-ansi-language: EN-US; text-decoration: none; text-underline: none;&quot;&gt;https://ps.outlook.com/powershell/&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt; -Credential $LiveCred -Authentication
Basic –AllowRedirection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGFJHMkaRd-zLIw0CCwATiV0mZD0mskJ7NC7721Hbsn4EdwcsEfoZaAgJnyIc4JjwZExvhqKNdSmDIySanmMG-lMY82DfFCMejlfl1D3AGsJu2i_vpEKEuDHRsO8hXj_Z_DDJpZwUnIcI/s1600/login_office365_powershell.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGFJHMkaRd-zLIw0CCwATiV0mZD0mskJ7NC7721Hbsn4EdwcsEfoZaAgJnyIc4JjwZExvhqKNdSmDIySanmMG-lMY82DfFCMejlfl1D3AGsJu2i_vpEKEuDHRsO8hXj_Z_DDJpZwUnIcI/s1600/login_office365_powershell.jpg&quot; height=&quot;105&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
4) Importez les commandes relatives à Office 365 via la
commande :&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;Import-PSSession $Session&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJqPjihKMGS-xGnlvRETxB4DRQ_YpBeKAJpVZmYs9hLe6RhWPOemB605RrlL3YnroZXluz2SX4PTVasXlgtzkZww-_g2Puk0PUp6D5q7nhlJW75z_S-dEr_GAOU2ZSHpdvCsLiwLax7dA/s1600/powersheel_import_session_o365.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJqPjihKMGS-xGnlvRETxB4DRQ_YpBeKAJpVZmYs9hLe6RhWPOemB605RrlL3YnroZXluz2SX4PTVasXlgtzkZww-_g2Puk0PUp6D5q7nhlJW75z_S-dEr_GAOU2ZSHpdvCsLiwLax7dA/s1600/powersheel_import_session_o365.jpg&quot; height=&quot;138&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Vous êtes maintenant connecté au tenant Office 365.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3&gt;
Fin de session&lt;/h3&gt;
&lt;h1&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
En fin de session il est nécessaire de se déconnecter du
tenant via la commande&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;Remove-PSSession $Session&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Si ce n’est pas fait votre session reste ouverte pendant
15 minutes. Vous ne pourrez pas vous reconnecter pendant ce laps de temps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Créer un profil PowerShell&lt;/h3&gt;
&lt;h1&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Afin d’éviter de retenir et taper ces commandes à chaque
fois il est possible de créer un profil PowerShell.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Vous pouvez récupérer le chemin vers votre profil via la
commande&amp;nbsp;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;VB&quot; name=&quot;code&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;Dir $Profile&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Créez un fichier .PS1 et copiez dedant les commandes d&#39;ouverture de session.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/7795859222895673132/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2014/09/connection-powershell-un-tenant-office.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7795859222895673132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7795859222895673132'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2014/09/connection-powershell-un-tenant-office.html' title='Connection PowerShell à un tenant Office 365'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7fcjE-c9nZ4L2-H0VQsDNIGo12gHtnuiM7Pm7KfsxiGaJCFQC_mSMeABTEVhItLbcuAPUFUc8M6RodO3DNdtN3DkGjX3mCVhbKU1Xr5BoXEEzDiSChqvN-yVz_7XDnvehM3bPyxVs7FA/s72-c/connection_powershell_office365.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-8823528000613003362</id><published>2014-07-28T19:13:00.000+02:00</published><updated>2014-09-10T12:15:46.317+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><title type='text'>Excel : les heures décimales</title><content type='html'>Il vous est probablement déjà arrivé d&#39;effectuer un calcul qui vous renvoie un nombre d&#39;heures sous forme décimale.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Par exemple vous souhaitez vider une piscine qui contient 1000 litres d&#39;eau, votre évacuation permet d&#39;évacuer 500 litres/heure. Vous allez réaliser le petit calcul 1000 / 500 = 0,5 heures soit 0h30 minutes.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Le problème est que vous ne savez pas quoi faire avec ce 0.5... tout le monde sait que ça représente 1/2 heure, mais dans Excel ça coince...&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;
Une heure décimale n&#39;est pas un numéro de série&lt;/h3&gt;
&lt;div&gt;
Si vous avez un peu fouillé dans les fonctions Excel vous êtes probablement tombés sur les fonctions &lt;b&gt;Heure()&lt;/b&gt; et &lt;b&gt;Minute()&lt;/b&gt;, et vous aurez constaté qu&#39;elles prennent en paramètre un numéro de série.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ce que Microsoft appelle un numéro de série est tout simplement une représentation décimale d&#39;une journée : 24h00 = 1.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
La formule pour transformer une heure décimale en numéro de série est donc : &lt;b&gt;heure / 24&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ainsi la fonction &lt;b&gt;Minute()&lt;/b&gt; va s&#39;utiliser ainsi :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTsjpkcJfSN4UJfHU1pcOosY99ub3Dpft0he_dK7wfbWwBhW34h7hbyelJWb0drNSTG8N2cPobafSDWQ2ZjWITW4JtU8q5v79pbal2SRh6w2klboBDcYL4HrK5hXSYo7kZHJ8-Ypk70lQ/s1600/minutes.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTsjpkcJfSN4UJfHU1pcOosY99ub3Dpft0he_dK7wfbWwBhW34h7hbyelJWb0drNSTG8N2cPobafSDWQ2ZjWITW4JtU8q5v79pbal2SRh6w2klboBDcYL4HrK5hXSYo7kZHJ8-Ypk70lQ/s1600/minutes.JPG&quot; height=&quot;152&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Cool... sauf que ce n&#39;est pas ce que nous recherchons... refaite l&#39;essai avec 1.75 (soit 1h45)...&lt;/div&gt;
&lt;h3&gt;
Les fonctions Heure() et Minute()&lt;/h3&gt;
&lt;div&gt;
Contrairement à ce que beaucoup d&#39;utilisateurs pensent les fonctions &lt;b&gt;Heure()&lt;/b&gt; et &lt;b&gt;Minute()&lt;/b&gt; ne vont pas afficher une heure sous la forme hh:mm. Ces fonctions sont prévues pour renvoyer soit l&#39;heure, soit les minutes, d&#39;une heure exprimée sous la forme hh:mm.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ainsi pour une valeur de 1.75 la fonction &lt;b&gt;Heure()&lt;/b&gt; va nous renvoyer 1 :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcRQG5VRIPo1AKKPQnOoZC5u5gNR3I7DOFowKnCb7ERK-VlXMFyVWqkcLXHbZDvyfdqJ2RZu4z4cXb3tBzzL1MB6T9OTNW-Wp_8-_Jg7St1EyCGvDicYFuOzfyJqY6fcERMZ7C-j1ESE/s1600/heure.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrcRQG5VRIPo1AKKPQnOoZC5u5gNR3I7DOFowKnCb7ERK-VlXMFyVWqkcLXHbZDvyfdqJ2RZu4z4cXb3tBzzL1MB6T9OTNW-Wp_8-_Jg7St1EyCGvDicYFuOzfyJqY6fcERMZ7C-j1ESE/s1600/heure.JPG&quot; height=&quot;152&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Et &lt;b&gt;Minute()&lt;/b&gt; nous donnera 45.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bon OK, avec un &lt;b&gt;Concatener()&lt;/b&gt; il serait possible d&#39;obtenir un affichage sous la forme 01h45, mais avouez que ça serait un peu lourd :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLY7gchPHY5XPFMM6bHAEAK8W6fL7BUvwgAWvA7U2vGLjJFA3b0aVENFgHOKjHPRlorRBL-oIVqWZk1s_ajo75ciddUoPLUQHYB8olKtOeWoSsWI_-tbONxLIPeuDXj4g0j4M95shevV0/s1600/concatener.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLY7gchPHY5XPFMM6bHAEAK8W6fL7BUvwgAWvA7U2vGLjJFA3b0aVENFgHOKjHPRlorRBL-oIVqWZk1s_ajo75ciddUoPLUQHYB8olKtOeWoSsWI_-tbONxLIPeuDXj4g0j4M95shevV0/s1600/concatener.JPG&quot; height=&quot;28&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Le format de cellule &quot;Heure&quot;&lt;/h3&gt;
&lt;div&gt;
Et oui... vous étiez tellement plongé dans vos formules que vous en avez oublié la simplicité.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Pour transformer votre 1.75 en 01:45 il vous suffit de le diviser par 24 pour ramener cette valeur en jours, et de vous rendre dans le menu &quot;&lt;b&gt;Format de cellule&lt;/b&gt;&quot;. Sélectionnez &quot;&lt;b&gt;Heure&lt;/b&gt;&quot; dans la liste... et c&#39;est tout !&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZNP_yTdb6GyKA6JxgFRcuCBFx6uJdaTx3IL55htat4L1gSq4DL10gaQWX3-2xE68ZZJZswfmibRH-MrZLly1GYAlI91oHhFiBfyPnaZhI8RbXa8sK3KZ0QpSp4LDbsMC7kYk0YJvMb1A/s1600/format_heure.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZNP_yTdb6GyKA6JxgFRcuCBFx6uJdaTx3IL55htat4L1gSq4DL10gaQWX3-2xE68ZZJZswfmibRH-MrZLly1GYAlI91oHhFiBfyPnaZhI8RbXa8sK3KZ0QpSp4LDbsMC7kYk0YJvMb1A/s1600/format_heure.JPG&quot; height=&quot;318&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/8823528000613003362/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2014/07/excel-les-heures-decimales.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8823528000613003362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8823528000613003362'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2014/07/excel-les-heures-decimales.html' title='Excel : les heures décimales'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTsjpkcJfSN4UJfHU1pcOosY99ub3Dpft0he_dK7wfbWwBhW34h7hbyelJWb0drNSTG8N2cPobafSDWQ2ZjWITW4JtU8q5v79pbal2SRh6w2klboBDcYL4HrK5hXSYo7kZHJ8-Ypk70lQ/s72-c/minutes.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-2703745897240718170</id><published>2014-07-28T18:22:00.000+02:00</published><updated>2014-07-28T18:22:00.772+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><title type='text'>Calculs d&#39;angles avec Excel</title><content type='html'>Beaucoup d&#39;utilisateurs sont décontenancés par le fait qu&#39;Excel ne gère pas les angles en degrés, mais en radians.



&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijyHxNhMaAk2cewOsvW3vtHyHiSZzGNepheSQ0NUQQPkqyY35xM8BzDLppQrdHvI-qhNEhv8-SbPqcN22k9rpjTlBD7O86vesj8sg-wh-xBUJKo5fpR4GsSgEJHNrIjsk7PaSie_Mf2GY/s1600/fenetre_cos.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijyHxNhMaAk2cewOsvW3vtHyHiSZzGNepheSQ0NUQQPkqyY35xM8BzDLppQrdHvI-qhNEhv8-SbPqcN22k9rpjTlBD7O86vesj8sg-wh-xBUJKo5fpR4GsSgEJHNrIjsk7PaSie_Mf2GY/s1600/fenetre_cos.JPG&quot; height=&quot;160&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
Convertir les degrés en radians avec Excel&lt;/h3&gt;
Toutes les fonctions relatives aux angles dans Excel prennent en paramètre des angles exprimés en radians :&lt;br /&gt;
Cos, Sin, Tan,...&lt;br /&gt;
&lt;br /&gt;
Pour convertir vos angles en degrés vers des radians la formule est : Angle * Pi() / 180&lt;br /&gt;
&lt;br /&gt;
Rassurez-vous Microsoft a pensé à tout et à inclus dans Excel une fonction toute prête : RADIANS()&lt;br /&gt;
&lt;br /&gt;
Ce qui donne dans Excel (pour un angle de 45°) :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Rzj5z7AXbxiVLS6010rAIu2L6Xk6T6qdUDiuSAxU4z4oLl0sW4WoILB82fTzAdP7pwC_YuBKEc580xqB9XE3dH9vF1rxh8pKLw9qTV_5hyr7D9dD10GiEM5Z1EPiVK01dty5VsmsR90/s1600/cos45.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Rzj5z7AXbxiVLS6010rAIu2L6Xk6T6qdUDiuSAxU4z4oLl0sW4WoILB82fTzAdP7pwC_YuBKEc580xqB9XE3dH9vF1rxh8pKLw9qTV_5hyr7D9dD10GiEM5Z1EPiVK01dty5VsmsR90/s1600/cos45.JPG&quot; height=&quot;160&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
Convertir les radians en degrés avec Excel&lt;/h3&gt;
En toute logique les résultats fournis par Excel sont eux aussi exprimés en radians.&lt;br /&gt;
&lt;br /&gt;
Pour convertir vos angles en radians vers des degrés la formule est : Angle * 180 / Pi()&lt;br /&gt;
&lt;br /&gt;
Là encore Excel vous propose une fonction toute prête : DEGRES()&lt;br /&gt;
&lt;br /&gt;
Son utilisation est la suivante :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOsqS2AxMjSMyIUDMf5S6vhnzp6fusVA8gKVowC85AFodhbpRg72fai7pbUrVvyWBWDi4njwIpEIbzVFziyvfAP31R1oTGfhQtXk0iFmDQ1p5NnokYuusQQk2ydeR9k06qFAsYQw9DqIU/s1600/acos05.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOsqS2AxMjSMyIUDMf5S6vhnzp6fusVA8gKVowC85AFodhbpRg72fai7pbUrVvyWBWDi4njwIpEIbzVFziyvfAP31R1oTGfhQtXk0iFmDQ1p5NnokYuusQQk2ydeR9k06qFAsYQw9DqIU/s1600/acos05.JPG&quot; height=&quot;181&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/2703745897240718170/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2014/07/calculs-dangles-avec-excel.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/2703745897240718170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/2703745897240718170'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2014/07/calculs-dangles-avec-excel.html' title='Calculs d&#39;angles avec Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijyHxNhMaAk2cewOsvW3vtHyHiSZzGNepheSQ0NUQQPkqyY35xM8BzDLppQrdHvI-qhNEhv8-SbPqcN22k9rpjTlBD7O86vesj8sg-wh-xBUJKo5fpR4GsSgEJHNrIjsk7PaSie_Mf2GY/s72-c/fenetre_cos.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-501055007017972655</id><published>2010-12-09T18:30:00.002+01:00</published><updated>2010-12-10T10:53:10.885+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="automation"/><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="vba"/><category scheme="http://www.blogger.com/atom/ns#" term="word"/><title type='text'>Importer des champs Word dans Excel</title><content type='html'>Vous avez réalisé un formulaire sous Word ? Parfait... mais en toute logique vous n&#39;avez pas envie de ressaisir tous les résultats dans Excel pour en tirer des statistiques.&lt;br /&gt;
&lt;br /&gt;
Le petit boût de code VBA ci-dessous pourra vous aider. Ajoutez le dans une macro Excel et il vous permettra de copier le contenu de tous les champs de votre formulaire Word vers Excel. Sur la première ligne vous retrouverez le nom de vos champs Word.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;Sub ImportWord()

Dim Wd As Word.Application
Dim filename As String
Dim i As Byte
    
    
    &#39;On affiche la boite de dialogue pour sélectionner le fichier
    filename = Application.GetOpenFilename(&quot;Fichier Word (*.doc*),*.doc*&quot;, 1, &quot;Sélectionnez un document Word&quot;, &quot;Ouvrir&quot;, False)
    
    &#39;On vérifie qu&#39;un fichier a été sélectionné
    If filename &amp;lt;&amp;gt; &quot;&quot; Then
        filename = LCase(filename)
        &#39;et qu&#39;il s&#39;agit d&#39;un document word
        If Right(filename, 3) = &quot;doc&quot; Or Right(filename, 4) = &quot;docx&quot; Then
    
            &#39;Créer une instance de word
            Set Wd = New Word.Application
            
            With Wd
                &#39;Empêche Word de s&#39;afficher à l&#39;ouverture
                .Visible = False
                
                &#39;Ouverture du document
                .documents.Open (filename)
                
                &#39;Parcours de la collection de champs
                Dim f As Field
                For Each f In .ActiveDocument.Fields
                    &#39;Nom du champs
                    Cells(1, f.Index).Value = .ActiveDocument.FormFields(f.Index).Name
                    
                    &#39;Valeur du champs si case à cocher
                    If f.Type = 71 Then
                        Cells(2, f.Index).Value = .ActiveDocument.FormFields(f.Index).CheckBox.Value
                    Else &#39;autres champs
                        Cells(2, f.Index).Value = f.Result.Text
                    End If
                Next
                
                &#39;Ferme le document Word
                .Quit False
            End With
            
            &#39;Destruction de l&#39;objet word
            Set Wd = Nothing
        End If
    End If

End Sub
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/501055007017972655/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/12/importer-des-champs-word-dans-excel.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/501055007017972655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/501055007017972655'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/12/importer-des-champs-word-dans-excel.html' title='Importer des champs Word dans Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-540805986854742508</id><published>2010-06-03T20:06:00.008+02:00</published><updated>2010-06-04T09:16:19.347+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>Visual Studio 2010 : La valeur ne peut pas être null.</title><content type='html'>Hier sur un projet j&#39;ai eu la désagréable surprise de recevoir un message &quot;&lt;b&gt;La valeur ne peut pas être null. Nom du paramètre : objectType&lt;/b&gt;&quot; lors de la tentative d&#39;ouverture d&#39;une winforms. Le designer refuse alors d&#39;ouvrir la forms, si vous passez outre l&#39;avertissement la forms s&#39;affiche bien mais toute action est très lente.&lt;br /&gt;
&lt;br /&gt;
Après avoir perdu pas mal de temps à chercher, j&#39;ai découvert que pour corriger ce problème il faut changer le modificateur d&#39;accès de la classe gérant notre formulaire de &quot;&lt;b&gt;Friend&lt;/b&gt;&quot; en &quot;&lt;b&gt;Public&lt;/b&gt;&quot;.&lt;br /&gt;
Ce bug est en cours d&#39;étude par Microsoft.</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/540805986854742508/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/06/visual-studio-2010-la-valeur-ne-peut.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/540805986854742508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/540805986854742508'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/06/visual-studio-2010-la-valeur-ne-peut.html' title='Visual Studio 2010 : La valeur ne peut pas être null.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-8093992679234022867</id><published>2010-05-03T17:57:00.003+02:00</published><updated>2010-05-05T09:06:06.027+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Restaurer les réglages par défaut de Visual Studio 2010</title><content type='html'>En installant la version d&#39;évaluation de Visual Studio 2010 j&#39;ai eu la désagréable surprise de conster que la boîte à outils était vide, et qu&#39;il manquait certaines barres d&#39;icônes (en particulier la barre &quot;Disposition&quot;).&lt;br /&gt;
&lt;br /&gt;
Visiblement lors de la récupération des paramètres de VS2008 il y avait eu un petit soucis.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pour effectuer cette opération vous devez ouvrir la console Visual Studio : allez dans le menu démarrer et dans le dossier &lt;b&gt;Visual Studio 2010&lt;/b&gt; cliquez sur &quot;&lt;b&gt;Visual Studio Tools&lt;/b&gt;&quot; puis &quot;Invite de commande Visual Studio&quot;.&lt;br /&gt;
&lt;br /&gt;
Saisissez ensuite la ligne de commande suivante : &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;devenv /ResetSettings&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Visual Studio va démarrer comme neuf.</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/8093992679234022867/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/05/restaurer-les-reglages-par-defaut-de.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8093992679234022867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8093992679234022867'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/05/restaurer-les-reglages-par-defaut-de.html' title='Restaurer les réglages par défaut de Visual Studio 2010'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-8191060145090158219</id><published>2010-04-02T18:03:00.003+02:00</published><updated>2010-04-02T18:03:00.249+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="développement"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Comment déployer une application avec clickonce sur un serveur Apache ?</title><content type='html'>Pour le déploiement d&#39;applications au sein d&#39;une entreprise la fonctionnalité de déploiement&amp;nbsp;ClickOnce de Visual Studio se révéle à la fois pratique, rapide, et économique... à condition de disposer d&#39;un serveur IIS.&lt;br /&gt;
&lt;br /&gt;
Si votre intranet fonctionne sous Apache il est malgré tout très facile d&#39;utiliser ClickOnce.&lt;br /&gt;
&lt;br /&gt;
Pour cela ajouter une fichier .htaccess dans votre dossier de déploiement.&lt;br /&gt;
&lt;br /&gt;
Ce fichier doit contenir les 3 lignes suivante :&lt;br /&gt;
&lt;pre&gt;AddType application/x-ms-application application
AddType application/x-ms-manifest manifest
AddType application/octet-stream deploy
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/8191060145090158219/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/04/comment-deployer-une-application-avec.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8191060145090158219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8191060145090158219'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/04/comment-deployer-une-application-avec.html' title='Comment déployer une application avec clickonce sur un serveur Apache ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-8779631920284231536</id><published>2010-04-01T18:12:00.002+02:00</published><updated>2010-04-01T18:12:00.747+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="développement"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Comment ajouter dynamiquement des contrôles dans un formulaire ?</title><content type='html'>Il peut arriver que vous ne connaissiez pas à l&#39;avance le nombre de contrôles dont vos utilisateurs auront besoin dans un formulaire.&lt;br /&gt;
&lt;br /&gt;
C&#39;est par exemple le cas lorsque vous devez présenter des informations tabulaire à vos utilisateurs, comme dans cet exemple :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsm37CNsTC94jfDLf6PX5zlNriOIZdACvQoJ43Tx7yFebB1ioSIoksLbuT92Wa_2FZjUaKbBOA1Feel_1YGnRwqyrMkRn1Z77Q6ZVpWrS0IgxC8Hs5Z-Le2U1xxYDVyJMcZdRXmbtnTcE/s1600/liste_options.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsm37CNsTC94jfDLf6PX5zlNriOIZdACvQoJ43Tx7yFebB1ioSIoksLbuT92Wa_2FZjUaKbBOA1Feel_1YGnRwqyrMkRn1Z77Q6ZVpWrS0IgxC8Hs5Z-Le2U1xxYDVyJMcZdRXmbtnTcE/s320/liste_options.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Certes il existe un contrôle datagrid, mais son utilisation n&#39;est pas toujours possible, ou peut se révéler très lourde.&lt;br /&gt;
&lt;br /&gt;
Une solution consiste à ajouter dynamiquement des contrôles :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;&#39;On déclare une liste d&#39;objets &quot;TextBox&quot;
Dim textBoxList As New List(Of TextBox)

Dim x As Integer

For x = 0 To 4
 &#39;On ajoute une nouvelle TextBox dans la liste
 textBoxList.Add(New TextBox)

 &#39;On dimentionne et positionne la TextBox qui vient d&#39;être ajoutée
 With textBoxList.Item(textBoxList.Count - 1)
  .Height = 100
  .Width = 30
  .Location = New System.Drawing.Point(10, textBoxList.Count * 30)
 End With

 &#39;Et on ajoute cette TextBox dans notre formulaire
 Controls.AddRange(New System.Windows.Forms.Control() {textBoxList(textBoxList.Count - 1)})
Next&lt;/pre&gt;&lt;br /&gt;
Naturellement si comme dans l&#39;image ci-dessus chaque ligne est composée de plusieurs contrôles, vous prendrez au préalable le soin de créer une classe chargée de gérer ces groupes de contrôles.</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/8779631920284231536/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/04/comment-ajouter-dynamiquement-des.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8779631920284231536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8779631920284231536'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/04/comment-ajouter-dynamiquement-des.html' title='Comment ajouter dynamiquement des contrôles dans un formulaire ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsm37CNsTC94jfDLf6PX5zlNriOIZdACvQoJ43Tx7yFebB1ioSIoksLbuT92Wa_2FZjUaKbBOA1Feel_1YGnRwqyrMkRn1Z77Q6ZVpWrS0IgxC8Hs5Z-Le2U1xxYDVyJMcZdRXmbtnTcE/s72-c/liste_options.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-8789751378876376431</id><published>2010-03-29T17:52:00.000+02:00</published><updated>2010-03-30T17:01:37.915+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="développement"/><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Comment utiliser Automation avec Excel et VB.NET ?</title><content type='html'>&lt;b&gt;Préparatifs&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Pour pouvoir piloter Excel, vous devez ajouter à votre projet une référence à Microsoft Excel Object Library (dans les composants COM) ou référencer directement les Primary Interop Assemblies (PIA) : Microsoft.Office.Interop.Excel.dll, Microsoft.VBE.Interop.dll, et Office.dll&lt;br /&gt;
&lt;br /&gt;
Dans cet exemple j’utiliserai la seconde solution.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;A propos des Primary Interop Assemblies&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Bien que Microsoft recommande d’utiliser une version des PIA correspondant à la version d’Office installée conjointement avec votre application, j’ai constaté qu’il existe une bonne compatibilité ascendante entre ces assemblies. J’ai donc pris pour habitude d’utiliser une vieille version de ces PIA, celles de Office XP. Elles ont l’avantage de permettre à mes applicatifs de fonctionner sur toutes les versions d’Office de XP à 2007.&lt;br /&gt;
&lt;br /&gt;
Vous pouvez télécharger ces assemblies sur le site de Microsoft : &lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&amp;amp;displaylang=en&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&amp;amp;displaylang=en&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Si vous préférez utiliser les PIA installées avec Office sur votre poste, souvenez vous simplement qu’elles ne fonctionneront pas si vos utilisateurs utilisent une version plus ancienne. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Les bases de l’automation Excel&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Création et assignation de l’objet Excel&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;Dim XlApp As Microsoft.Office.Interop.Excel.Application = New Microsoft.Office.Interop.Excel.Application()&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Création d’un classeur&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;Dim XLDestBook As Microsoft.Office.Interop.Excel.Workbook
XLDestBook = XlApp.Workbooks.Add&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ouverture d’un classeur existant&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;XLDestBook = XlApp.Workbooks.Open(&quot;c:\monfichier.xls&quot;)&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Ajouter une feuille&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
xlSheet = XLDestBook.Worksheets.Add&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Ajouter du texte dans une cellule&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;xlSheet.Cells(1, 2).value = &quot;Test écriture dans cellule B1&quot;&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Ajouter une formule dans une cellule&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;xlSheet.Cells(1, 3).formula = &quot;=1+5&quot;&lt;/pre&gt;&lt;br /&gt;
Les formules doivent être écrites dans la langue d’Excel. Si vos utilisateurs sont susceptibles d’utiliser des versions d’Excel dans différentes langues vous devrez donc traduire vos formules. Pour cela vous pouvez utiliser cette référence &lt;a href=&quot;http://cherbe.free.fr/fonctions_XL.ZIP&quot;&gt;http://cherbe.free.fr/fonctions_XL.ZIP&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Recommandations&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Prenez l’habitude avant tout traitement d’automation de désactiver le rafraichissement d’écran d’Excel, et d’empêcher les saisies utilisateur. Les performances en seront largement améliorées, et cela évitera que vos utilisateurs ne viennent perturber le traitement.&lt;br /&gt;
&lt;br /&gt;
Pour cela utilisez les lignes suivantes avant tout traitement :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;XlApp.ScreenUpdating = False
XlApp.Interactive = False&lt;/pre&gt;&lt;br /&gt;
Repassez ces paramètres à True lorsque vos traitements sont achevés, sinon Excel sera inutilisable.&lt;br /&gt;
&lt;br /&gt;
Pour plus d’infos vous pouvez vous référer à la base de connaissance Microsoft :  &lt;a href=&quot;http://support.microsoft.com/kb/301982/fr&quot;&gt;http://support.microsoft.com/kb/301982/fr&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Attention à la langue&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Si vous avez des utilisateurs utilisant une version anglaise de Windows, il y a de fortes chances pour que votre application plante avec un message : Error: 0x80028018 (-2147647512) - Description: Old Format or Invalid Type Library&lt;br /&gt;
&lt;br /&gt;
Ce cas de figure se produit lorsque l’utilisateur a personnalisé les paramètres régionaux de Windows. C’est un cas que j’ai régulièrement rencontré avec les expatriés. Ils sélectionnent dans les paramètres régionaux leur pays de résidence, et modifient le séparateur décimal et l’unité monétaire pour les faire correspondre à ceux de leur pays d’origine.&lt;br /&gt;
&lt;br /&gt;
La base de connaissance Microsoft vous donnera plus de détails sur ce problème : &lt;a href=&quot;http://support.microsoft.com/?scid=kb%3Ben-us%3B320369&amp;amp;x=19&amp;amp;y=18&quot;&gt;http://support.microsoft.com/?scid=kb%3Ben-us%3B320369&amp;amp;x=19&amp;amp;y=18&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Pour le contourner, 2 solutions :&lt;br /&gt;
• Demander à vos utilisateurs de ne pas personnaliser les paramètres régionaux. Pas toujours possible.&lt;br /&gt;
• Avant toute opération d’automation Excel modifier la culture du système en « en-US », et surtout restaurer les paramètres utilisateurs lorsque vos traitements sont terminés.&lt;br /&gt;
&lt;br /&gt;
La base de connaissance peut une nouvelle fois vous aider : &lt;a href=&quot;http://support.microsoft.com/kb/914356/fr&quot;&gt;http://support.microsoft.com/kb/914356/fr&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Personnellement j’utilise le code suivant (dérivé des exemples MS) : &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;vb&quot; name=&quot;code&quot;&gt;&#39;Sauvegarde le réglage de culture
Dim oldCI As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture

&#39;&#39;&#39; &lt;summary&gt;
&#39;&#39;&#39; Modifie la culture en &quot;en-US&quot;.
&#39;&#39;&#39; &lt;/summary&gt;
&#39;&#39;&#39; &lt;remarks&gt;&lt;/remarks&gt;
Sub ChangeCulture()
Dim LangueExcel As Integer &#39;code correspondant à la langue Excel
Dim RegionalString As String &#39;Equivalence entre la langue Excel et la culture système

LangueExcel = XlApp.LanguageSettings.LanguageID(Microsoft.Office.Core.MsoAppLanguageID.msoLanguageIDInstall) &#39;Récupére le code correspondant à la langue d&#39;Excel
Select Case LangueExcel
Case 1033 : RegionalString = &quot;en-US&quot; &#39;Anglais USA
Case 1036 : RegionalString = &quot;fr-FR&quot; &#39;Français FRANCE
Case Else : RegionalString = &quot;en-US&quot; &#39;Anglais USA
End Select
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(RegionalString)
End Sub


&#39;&#39;&#39; &lt;summary&gt;
&#39;&#39;&#39; Rétablit la culture d&#39;origine du système
&#39;&#39;&#39; &lt;/summary&gt;
&#39;&#39;&#39; &lt;remarks&gt;&lt;/remarks&gt;
Sub RestoreCulture()
System.Threading.Thread.CurrentThread.CurrentCulture = oldCI
End Sub&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/8789751378876376431/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-utiliser-automation-avec-excel.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8789751378876376431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/8789751378876376431'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-utiliser-automation-avec-excel.html' title='Comment utiliser Automation avec Excel et VB.NET ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-7454420355562829022</id><published>2010-03-24T17:37:00.001+01:00</published><updated>2010-03-24T17:37:00.050+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="développement"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Comment utiliser la colorisation syntaxique de code sur Blogger ?</title><content type='html'>Si vous avez déjà tentés de publier du code source sur un blog, vous avez pu constater que les moteurs de blogs grand public ne proposent tout simplement pas cette option.&lt;br /&gt;
&lt;br /&gt;
Alors vous me direz, avec un petit hébergement, et un CMS type Joomla l&#39;ajout de cette fonction est très facile. Certes.&lt;br /&gt;
&lt;br /&gt;
Si vous persistez à vouloir utiliser une plateforme de blog type Blogger, la solution est d&#39;utiliser &lt;a href=&quot;http://code.google.com/p/syntaxhighlighter/&quot;&gt;SyntaxHighlighter&lt;/a&gt;, le site &lt;a href=&quot;http://code18.blogspot.com/2009/01/ajouter-de-la-coloration-syntaxique-au.html&quot;&gt;Code 18&lt;/a&gt; vous offre le mode d&#39;emploi d&#39;une parfaite intégration sur cette plateforme.&lt;br /&gt;
&lt;br /&gt;
Avec ça plus de raisons pour ne pas partager un peu de code !</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/7454420355562829022/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-utiliser-la-colorisation.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7454420355562829022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7454420355562829022'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-utiliser-la-colorisation.html' title='Comment utiliser la colorisation syntaxique de code sur Blogger ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-5956221303201722781</id><published>2010-03-24T17:19:00.001+01:00</published><updated>2010-03-24T17:19:00.251+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gallery"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Utiliser Gallery 3 derrière un proxy</title><content type='html'>&lt;a href=&quot;http://codex.gallery2.org/Gallery3:Upgrading&quot;&gt;Gallery 3&lt;/a&gt; est probablement une des meilleures solutions pour ajouter des photos sur un site PHP/MySQL.&lt;br /&gt;
&lt;br /&gt;
Encore en phase de développement, ce projet comporte une petite limitation en cas d&#39;utilisation professionnelle : il nécessite un accès web pour télécharger les mises à jour et traductions. &lt;br /&gt;
&lt;br /&gt;
Si votre serveur se trouve derrière un proxy nécessitant une authentification, vous êtes coinçé !&lt;br /&gt;
&lt;br /&gt;
La solution est d&#39;éditer le fichier My_remote.php (dans le dossier &quot;Helpers&quot;)&lt;br /&gt;
&lt;br /&gt;
Dans la fonction _encode_post_data, ajoutez la ligne :&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;$extra_headersProxy-Authorization? = &#39;Basic &#39; . base64_encode(&quot;$ProxyUsername:$ProxyPassword?&quot;);
&lt;/pre&gt;&lt;br /&gt;
Dans _parse_url_for_fsockopen, ajoutez :&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;php&quot;&gt;$url_componentsfsockhost? = $ProxyAddress?;
&lt;/pre&gt;&lt;br /&gt;
Dans cette même fonction, modifiez la variable $default_port pour y indiquer le numéro de port de votre proxy.&lt;br /&gt;
&lt;br /&gt;
Cette modification devrait être intégrée nativement dans Gallery 3.1</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/5956221303201722781/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/03/utiliser-gallery-3-derriere-un-proxy.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/5956221303201722781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/5956221303201722781'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/03/utiliser-gallery-3-derriere-un-proxy.html' title='Utiliser Gallery 3 derrière un proxy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2958474539072867183.post-7832112547963700013</id><published>2010-03-24T17:18:00.010+01:00</published><updated>2010-03-30T16:49:50.124+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="développement"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Comment parcourir du XML en Visual Basic 2005 ?</title><content type='html'>Jagadish Chaterjee propose un excellent tutorial (en anglais)  sur l&#39;&lt;a href=&quot;http://devnotes.over-blog.com/ext/http://www.aspfree.com/c/a/VB.NET/Reading-and-Transforming-XML-Documents-using-Visual-Basic-2005/&quot; title=&quot;Utilisation et transformation du XML en Visual Basic 2005&quot;&gt;utilisation  et la transformation du XML en VB 2005&lt;/a&gt;.&lt;br /&gt;
Toujours utile si vos projets doivent être déployés sous le  Framework.Net 2.0.&lt;br /&gt;
&lt;br /&gt;
Et si au lieu de récupérer votre XML à partir d&#39;un fichier, vous  souhaitez utiliser le contenu d&#39;une variable :&lt;br /&gt;
&lt;br /&gt;
&lt;pre name=&quot;code&quot; class=&quot;vb&quot;&gt;Dim rd As System.Xml.XmlReader = System.Xml.XmlReader.Create(New  System.IO.StringReader(maString))
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blogopale.blogspot.com/feeds/7832112547963700013/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-parcourir-du-xml-en-visual.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7832112547963700013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2958474539072867183/posts/default/7832112547963700013'/><link rel='alternate' type='text/html' href='http://blogopale.blogspot.com/2010/03/comment-parcourir-du-xml-en-visual.html' title='Comment parcourir du XML en Visual Basic 2005 ?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>