<?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-5118199599906690528</id><updated>2018-09-29T04:31:45.599-04:00</updated><category term="Powershell"/><category term="Active Directory"/><category term="Scripting"/><category term="Video"/><category term="Powershell 3.0"/><category term="VMware"/><category term="Function"/><category term="SCSM"/><category term="SMlets"/><category term="Scripting Games"/><category term="System Center 2012 Service Manager R2"/><category term="ADSI"/><category term="HomeLab"/><category term="Module"/><category term="Security"/><category term="Windows Server 2012"/><category term="GUi"/><category term="LazyWinAdmin"/><category term="PowerShell Summit 2014"/><category term="RegEx"/><category term="Sapien Powershell Studio 2012"/><category term="Tool"/><category term="2013 Scripting Games"/><category term="Achievement"/><category term="Microsoft"/><category term="PowerCli"/><category term="PowerShell 5.0"/><category term="Regular Expressions"/><category term="SCCM"/><category term="WinForm"/><category term="vSphere 5.1"/><category term="Lab"/><category term="MVP"/><category term="Montreal"/><category term="Montreal PowerShell User Group"/><category term="Parser"/><category term="Parsing"/><category term="PowerShell 4.0"/><category term="PowerShell Summit"/><category term="PowerShell Summit 2013"/><category term="PowerShell Summit 2014 North America"/><category term="Report"/><category term="Sapien"/><category term="Sapien Powershell Studio 2014"/><category term="Storage"/><category term="Windows Server 2008 R2"/><category term="ActiveDirectory module"/><category term="Audit"/><category term="Automation"/><category term="CLi"/><category term="CSV"/><category term="Datastore"/><category term="Documentation"/><category term="Exchange Online"/><category term="Group Membership"/><category term="Monitoring"/><category term="Office365"/><category term="PSH2013"/><category term="Pester"/><category term="Productivity"/><category term="Tip"/><category term="User Account"/><category term="WMI"/><category term=".NET"/><category term="AdsiPS"/><category term="Computer Object"/><category term="ConfigMgr"/><category term="French"/><category term="Github"/><category term="Group Policy"/><category term="HTML"/><category term="Inventory"/><category term="Log"/><category term="Networking"/><category term="PowerShell Blogging Week"/><category term="PowerShell Team"/><category term="PowerShell Tip"/><category term="RAiD"/><category term="SCORCH"/><category term="SYDI"/><category term="String"/><category term="VBScript"/><category term="WMF 5"/><category term="iSCSI"/><category term="netstat"/><category term="-f Operator"/><category term="2013 Winter Scripting Games"/><category term="ADUC"/><category term="Background jobs"/><category term="Blog Posts"/><category term="CBT"/><category term="COM"/><category term="Composite formatting"/><category term="ConvertFrom-String"/><category term="Credentials"/><category term="DSC"/><category term="Datagridview"/><category term="Desired State Configuration"/><category term="Distribution Group"/><category term="ESXi"/><category term="Folder"/><category term="French PowerShell User Group"/><category term="GPO"/><category term="ISE"/><category term="Import-CSV"/><category term="LDAP"/><category term="LUN"/><category term="Linux"/><category term="Local Administrators"/><category term="MMC"/><category term="Microsoft Excel"/><category term="Missing Subnet"/><category term="O365 Distribution Group"/><category term="OneGet Module"/><category term="Orchestrator"/><category term="Performance"/><category term="PowerShell ISE"/><category term="PowerShell Summit 2014 Europe"/><category term="Powershell Profil"/><category term="Proxy"/><category term="Remote"/><category term="SCCM OSD"/><category term="SCCM Task Sequence"/><category term="SCCM2012R2"/><category term="Sapien Powershell Studio 2015"/><category term="Seattle"/><category term="Services"/><category term="Subnet"/><category term="Substring"/><category term="System Center 2012"/><category term="System Center 2012 Orchestrator"/><category term="System Center 2012 R2"/><category term="ToolMaking"/><category term="Training"/><category term="USB"/><category term="Virtualization"/><category term="WIndows 8"/><category term="Warner Brothers"/><category term="WinFormPS"/><category term="Windows 7"/><category term="Windows 8.1"/><category term="Winforms"/><category term="vCSA"/><category term="vCenter"/><category term="2014 Winter Scripting Games"/><category term="AD Health Check"/><category term="AD replication"/><category term="Accents"/><category term="Anti-Virus"/><category term="Appliance"/><category term="Automate"/><category term="Azure"/><category term="Azure Active Directory"/><category term="Backup"/><category term="Batch"/><category term="BlackBerry Server"/><category term="Book"/><category term="Bootable"/><category term="CIM"/><category term="CSS"/><category term="Certificate"/><category term="Change Block Tracking"/><category term="Cheat Sheet"/><category term="Chicago"/><category term="Cleanup"/><category term="Cloning"/><category term="Cloud and Datacenter Management"/><category term="Coding"/><category term="Command-Line tools"/><category term="Compare"/><category term="DNS"/><category term="DNS Server"/><category term="Database"/><category term="Delegation"/><category term="Diacritics"/><category term="DirectPathIO"/><category term="DirectReports"/><category term="Directory"/><category term="Domtar"/><category term="ESX"/><category term="Embed"/><category term="Exchange 2007"/><category term="Exchange 2010"/><category term="Expiring"/><category term="Fail"/><category term="FrPSUG"/><category term="Francais"/><category term="Free"/><category term="FreeNas"/><category term="Gary Szabo"/><category term="Gist"/><category term="Google"/><category term="Gpmc"/><category term="Hardware"/><category term="IIS"/><category term="LazyTS"/><category term="Lync Online"/><category term="Martin Lebel"/><category term="Max OS X"/><category term="Microsoft Ignite 2015"/><category term="Microsoft MVP Global Summit"/><category term="Microsoft MVP Global Summit 2015"/><category term="Microsoft Office"/><category term="Microsoft SQL Server 2012"/><category term="Microsoft Virtual Academy"/><category term="Multithreading"/><category term="NFS Server"/><category term="Naming Convention"/><category term="Nested Groups"/><category term="NetBackupPS"/><category term="NetLogon"/><category term="NetworkSwitch Module"/><category term="Newsid"/><category term="OVF Template"/><category term="Office 365 API"/><category term="Offline Domain Join"/><category term="OneLiner"/><category term="Open Source"/><category term="Operators"/><category term="Organizational Unit"/><category term="Organizing"/><category term="PSreadLine"/><category term="Password"/><category term="Permission"/><category term="Personal Update"/><category term="PowerShell Certification"/><category term="PowerShell Heroes 2014"/><category term="PowerShell Module"/><category term="PowerShell Summit 2013 North America"/><category term="Process"/><category term="Query"/><category term="Qwinsta"/><category term="RDP"/><category term="REST"/><category term="REST API"/><category term="Redmond"/><category term="Remote Desktop"/><category term="Rename"/><category term="Ressource"/><category term="SCCM2007"/><category term="SCO"/><category term="SCSM Review Activity"/><category term="SCSM Service Request"/><category term="SCSM2012R2"/><category term="SQL 2008"/><category term="SQL 2012"/><category term="Sapien MVP"/><category term="Scan"/><category term="Shortcuts"/><category term="Skydrive"/><category term="Social Network"/><category term="Split"/><category term="Storage Pool"/><category term="Syntax Highlighter"/><category term="SysInternals"/><category term="Sysprep"/><category term="System Events"/><category term="Task Scheduler"/><category term="Technet"/><category term="Template"/><category term="Terminal Process"/><category term="Terminal Services Manager"/><category term="Terminal Session"/><category term="Top Five 2013"/><category term="Tracing"/><category term="URL"/><category term="Unlock"/><category term="VIB"/><category term="VMtools"/><category term="Verified Effective"/><category term="Version Control"/><category term="Virtual Disk"/><category term="Virus"/><category term="Web Server"/><category term="Windows 10"/><category term="Windows ADK"/><category term="Windows Server"/><category term="Windows Server 2012 R2"/><category term="Windows Update"/><category term="Winforms Controls"/><category term="Workflow"/><category term="djoin"/><category term="eBook"/><category term="ini"/><category term="mRemote"/><category term="vCenter Server Appliance"/><title type='text'>LazyWinAdmin</title><subtitle type='html'>PowerShell, Automation, Windows Server and Much more ...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default?max-results=10&amp;redirect=false'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default?start-index=11&amp;max-results=10&amp;redirect=false'/><author><name>Francois-Xavier</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>214</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>10</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-6066483130172451497</id><published>2017-04-03T15:45:00.001-04:00</published><updated>2017-04-03T16:32:53.714-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blog Posts"/><category scheme="http://www.blogger.com/atom/ns#" term="Github"/><category scheme="http://www.blogger.com/atom/ns#" term="LazyWinAdmin"/><title type='text'>Moving my blog</title><content type='html'>&lt;div&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-SYxOSirKyQE/WOKlATjpzmI/AAAAAAACB5o/zgCqfkkW32k0_P1KOgcRH7cAHlhyw7vKACLcB/s1600/trucks.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://4.bp.blogspot.com/-SYxOSirKyQE/WOKlATjpzmI/AAAAAAACB5o/zgCqfkkW32k0_P1KOgcRH7cAHlhyw7vKACLcB/s1600/trucks.png&quot; /&gt;&lt;/a&gt;I decided to give a try to Jekyll and moved my blog to Github Pages.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the new link:&amp;nbsp;&lt;a href=&quot;https://lazywinadmin.github.io/&quot;&gt;&lt;b&gt;https://lazywinadmin.github.io/&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can subscribe to my &lt;u&gt;RSS&lt;/u&gt; feed here: &lt;a href=&quot;http://feeds.feedburner.com/lazywinadmin&quot;&gt;http://feeds.feedburner.com/lazywinadmin&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;See you there ! 😉&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/6066483130172451497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2017/04/moving-my-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6066483130172451497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6066483130172451497'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2017/04/moving-my-blog.html' title='Moving my blog'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-SYxOSirKyQE/WOKlATjpzmI/AAAAAAACB5o/zgCqfkkW32k0_P1KOgcRH7cAHlhyw7vKACLcB/s72-c/trucks.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-6263808215398002274</id><published>2016-09-20T23:56:00.000-04:00</published><updated>2016-09-20T23:56:01.453-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="French"/><category scheme="http://www.blogger.com/atom/ns#" term="French PowerShell User Group"/><category scheme="http://www.blogger.com/atom/ns#" term="FrPSUG"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="Video"/><title type='text'>My presentation at the first meetup of the French PowerShell User Group</title><content type='html'>&lt;a href=&quot;https://1.bp.blogspot.com/-RKH95kb03eo/V-IAlRjv-5I/AAAAAAAB6y8/jkI-ywSCnhkzDx0ZGJhEEC_OAihcQAbEgCLcB/s1600/CCohI-YUwAA5zEb.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://1.bp.blogspot.com/-RKH95kb03eo/V-IAlRjv-5I/AAAAAAAB6y8/jkI-ywSCnhkzDx0ZGJhEEC_OAihcQAbEgCLcB/s200/CCohI-YUwAA5zEb.png&quot; width=&quot;120&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Today I presented a session on &lt;b&gt;&lt;i&gt;Parsing Data using PowerShell&lt;/i&gt;&lt;/b&gt; at the first meeting of the French PowerShell User Group.&lt;br /&gt;&lt;br /&gt;This User Group is organized by a couple of Francophone PowerShell MVPs, including me, from different parts of the world.&lt;br /&gt;&lt;br /&gt;Below are the presentation, the scripts and the recording of the meeting. Even if you don&#39;t speak the language of&amp;nbsp;Molière you should be able to follow along with the PowerShell language.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Presentation (PPTX) and Scripts&lt;/u&gt;&lt;/b&gt; : &lt;a href=&quot;https://github.com/FrPSUG/Presentations/tree/master/20160920-Analyse%20Syntaxique%20de%20donnees%20(Francois-Xavier%20Cat)&quot; target=&quot;_blank&quot;&gt;Github Repository of FRPSUG&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt; &lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/sCd8YufeyUI&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;&lt;br /&gt;&lt;u&gt;Registration to our next events&lt;/u&gt;: &lt;a href=&quot;http://www.meetup.com/FrenchPSUG/&quot; target=&quot;_blank&quot;&gt;Meetup.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Slack:&lt;/u&gt;&amp;nbsp;Feel free to drop by on our channel &lt;b&gt;#french&lt;/b&gt; on &lt;u&gt;powershell.slack.com&lt;/u&gt; (&lt;a href=&quot;http://slack.poshcode.org/&quot; target=&quot;_blank&quot;&gt;register first&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: powershell;collapse:true;highlight:5;toolbar:false; ruler: true; first-line: 1;gutter: true;&quot;&gt;&lt;/pre&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;https://draft.blogger.com/%E2%80%8Bhttp://www.linkedin.com/in/fxcat&quot;&gt;LinkedIn&lt;/a&gt;. You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/6263808215398002274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/09/my-presentation-at-first-meetup-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6263808215398002274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6263808215398002274'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/09/my-presentation-at-first-meetup-of.html' title='My presentation at the first meetup of the French PowerShell User Group'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-RKH95kb03eo/V-IAlRjv-5I/AAAAAAAB6y8/jkI-ywSCnhkzDx0ZGJhEEC_OAihcQAbEgCLcB/s72-c/CCohI-YUwAA5zEb.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-6477922173297136258</id><published>2016-08-29T00:13:00.001-04:00</published><updated>2016-08-29T18:15:15.584-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="-f Operator"/><category scheme="http://www.blogger.com/atom/ns#" term="Composite formatting"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="SCCM"/><category scheme="http://www.blogger.com/atom/ns#" term="String"/><title type='text'>PowerShell Tip - Generate a list of Mac Addresses</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-1JVy_7b7TcM/V8O2HpxaX0I/AAAAAAAB6kA/LftFcJJ50eQ8zbOJHGCc_1yLvX4iO3_PgCLcB/s1600/1472461884_computer.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-1JVy_7b7TcM/V8O2HpxaX0I/AAAAAAAB6kA/LftFcJJ50eQ8zbOJHGCc_1yLvX4iO3_PgCLcB/s1600/1472461884_computer.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;While playing in my lab I needed to create a bunch of fake Devices in System Center Configuration Manager (SCCM). When creation devices you need two pieces of information, the computer name and the Mac Address of the device.&lt;br /&gt;&lt;br /&gt;I used the following method to generate my list of mac addresses.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# First, get a list of mac address.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;ForEach-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;{0:X12}&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Second step: Before we import we need to add a colon &quot;:&quot; every two characters&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: #c00000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{(((&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;{0:X12}&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;(..)&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: #c00000; font-weight: bold;&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}) &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-join&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;What is happening here&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;We list from the number 1 to 150&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;pre&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;150&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;We send each number to the pipeline and use composite formatting to convert the number to an hexadecimal that must me 12 characters. It will add leading zeros in this case.&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;pre&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;{0:X12}&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;We then split every two characters using regex&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;pre&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;(..)&#39;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;We send this output to Where-Object to make sure we have a value. Our split is generating some empty values. We can double check that using those examples:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;000000000000&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;(..)&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).count &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# returns 13&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;000000000000&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;(..)&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c00000; font-weight: bold;&quot;&gt;where&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; }).count &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#returns 6&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Finally we join the whole string (that is currently splitted every two characters) using -join with the delimiter &quot;:&quot;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;&lt;pre&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-join&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h3&gt;Extra: Here is a list of fake ComputerName with their fake Mac Addresses&lt;/h3&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;ForEach-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# ComputerName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$CompNumber&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;TestFakeDevice{0:0000}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Mac Address&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$CompMac&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; ((&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;{0:X12}&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;(..)&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Where-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$_&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; }) &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-join&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;-&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Output information&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;New-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-TypeName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;PSObject&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Property&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; @{&lt;br /&gt;        ComputerNumber &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$CompNumber&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;        ComputerMacAddress &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$CompMac&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    }&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Output: &lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;pre class=&quot;PoshConsole&quot;&gt;ComputerNumber     ComputerMacAddress&lt;br /&gt;--------------     ------------------&lt;br /&gt;TestFakeDevice0001 00-00-00-00-00-00&lt;br /&gt;TestFakeDevice0002 00-00-00-00-00-01&lt;br /&gt;TestFakeDevice0003 00-00-00-00-00-02&lt;br /&gt;TestFakeDevice0004 00-00-00-00-00-03&lt;br /&gt;TestFakeDevice0005 00-00-00-00-00-04&lt;br /&gt;TestFakeDevice0006 00-00-00-00-00-05&lt;br /&gt;TestFakeDevice0007 00-00-00-00-00-06&lt;br /&gt;TestFakeDevice0008 00-00-00-00-00-07&lt;br /&gt;TestFakeDevice0009 00-00-00-00-00-08&lt;br /&gt;TestFakeDevice0010 00-00-00-00-00-09&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;http://www.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/6477922173297136258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-tip-generate-list-of-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6477922173297136258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6477922173297136258'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-tip-generate-list-of-mac.html' title='PowerShell Tip - Generate a list of Mac Addresses'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-1JVy_7b7TcM/V8O2HpxaX0I/AAAAAAAB6kA/LftFcJJ50eQ8zbOJHGCc_1yLvX4iO3_PgCLcB/s72-c/1472461884_computer.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-2246809699949021988</id><published>2016-08-28T23:16:00.002-04:00</published><updated>2016-08-30T22:45:10.867-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="-f Operator"/><category scheme="http://www.blogger.com/atom/ns#" term="Composite formatting"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>PowerShell - Composite Formatting references (-f Operator)</title><content type='html'>&lt;a href=&quot;https://3.bp.blogspot.com/-12p4gGRDxDU/V8QnM7FIl2I/AAAAAAAB6kc/F8IKnxqm_iYuVDqDf5uq2ECh00-wniDxQCLcB/s1600/1472490851_format-indent-more.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://3.bp.blogspot.com/-12p4gGRDxDU/V8QnM7FIl2I/AAAAAAAB6kc/F8IKnxqm_iYuVDqDf5uq2ECh00-wniDxQCLcB/s1600/1472490851_format-indent-more.png&quot; /&gt;&lt;/a&gt;If you play often with PowerShell you might have encountered something called &quot;Composite Formatting&quot;. What is that ? Here is a quick example&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Welcome to {0}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;LazyWinAdmin.com&quot;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-sLZJBif_wDE/V70UGM3xW2I/AAAAAAAB6NU/QpalYlNeuXUk1IKWCcxtQEOcO3Bs9QijACLcB/s1600/CompositeFormatting.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://3.bp.blogspot.com/-sLZJBif_wDE/V70UGM3xW2I/AAAAAAAB6NU/QpalYlNeuXUk1IKWCcxtQEOcO3Bs9QijACLcB/s1600/CompositeFormatting.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Each format item takes the following form and consists of the following components:&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-large;&quot;&gt;{index[,alignment][:formatString]}&lt;/span&gt;&lt;br /&gt;The matching braces &quot;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-large;&quot;&gt;{&lt;/span&gt;&quot; and &quot;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: x-large;&quot;&gt;}&lt;/span&gt;&quot; are required.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;bq4&quot;&gt;&lt;h2&gt;Composite Formation&lt;/h2&gt;&lt;i&gt;The .NET Framework composite formatting feature takes a list of objects and a composite format string as input. A composite format string consists of fixed text intermixed with indexed placeholders, called format items, that correspond to the objects in the list. The formatting operation yields a result string that consists of the original fixed text intermixed with the string representation of the objects in the list. &lt;/i&gt;&lt;br /&gt;&lt;a href=&quot;https://msdn.microsoft.com/en-us/library/txafckwd(v=vs.110).aspx&quot; target=&quot;_blank&quot;&gt;https://msdn.microsoft.com/en-us/library/txafckwd(v=vs.110).aspx&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;##########################&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Numeric Format Strings #&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;##########################&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# The Decimal (&quot;D&quot;) Format Specifier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:D}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:D10}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0050999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:D6}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1234&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#-001234&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# The Numeric (&quot;N&quot;) Format Specifier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:N1}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;0.55567884654&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0.6&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:N3}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;0.55567884654&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0.556&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:N5}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;0.55567884654&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0.55568&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:N}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;55567884654&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#55,567,884,654.00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:N5}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;55567884654&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#55,567,884,654.00000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Fixed points&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:F}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#50999994.00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:F5}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#50999994.00000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# The General (&quot;G&quot;) Format Specifier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:G}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:G1}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#5E+07&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:G2}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#5.1E+07&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:G5}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;50999994&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#5.1E+07&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Exponentielle&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:E}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1052.0329112756&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#1.052033E+003&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:e}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1052.0329112756&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#1.052033e+003&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# Round-Trip (used to ensure that a numeric value that is converted to a string will be parsed back into the same numeric value)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:R}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;5.665599292333&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#5.665599292333&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:R}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;5.665590000000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#5.66559&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Interesting example from @MuchToDiscuss (thank you!)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# &quot;The following example yields different results from a 32-bit prompt vs 64-bit,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  showing that converting this particular 64-bit value to and from string will&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  result in a loss of precision&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:R}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0f5186;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;0.6822871999174&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0.68228719991740006 (in PowerShell 64-bits)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0.6822871999174     (in PowerShell 32-bits)&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Hexadecimal&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;0x{0:x}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;181300&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0x2c434&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;0x{0:X}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;181300&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0x2C434   (Uppercase here)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:X}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#C&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:X}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;121&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#79&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:X12}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;121&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#000000000079&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Leading Zeros&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:000}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#001&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:000}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#012&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:000}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#123&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:000}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;1234&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#1234&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Currency&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:C}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# $100.00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:C1}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# $100.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:C3}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# $100.000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:C3,en-CA}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# $100.000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Mix of types&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;0x{0:X} {0:E} {0:N}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0f5186;&quot;&gt;Int64&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]::&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;MaxValue&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#0x7FFFFFFFFFFFFFFF 9.223372E+018 9,223,372,036,854,775,807.00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;###############&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# TIME / DATE #&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;###############&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Year = {0:yyyy}, Hours = {0:hh}, Hours(24 format) = {0:HH}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Year = 2016, Hours = 11, Hours(24 format) = 23&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Time = {0:HH:mm:ss}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Time = 23:55:44&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Time = {0:HH:mm:ss:ffff}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Time = 23:55:45:6569&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Short date pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:d}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Long date pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:D}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August 28, 2016&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Full date/time pattern (short time)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:f}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August 28, 2016 7:32 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Full date/time pattern (long time)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:F}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August 28, 2016 7:31:55 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# General date/time pattern (short time)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:g}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28 7:32 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# General date/time pattern (long time).&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:G}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28 7:34:03 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Month/day pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:m}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#28 August&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:M}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#28 August&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Round-trip date/time pattern.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:o}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28T19:35:29.1878628-04:00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:O}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28T19:35:50.7359703-04:00&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# RFC1123 pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:r}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Sun, 28 Aug 2016 19:36:09 GMT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:R}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Sun, 28 Aug 2016 19:36:09 GMT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Sortable date/time pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:s}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28T19:36:47&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Short time pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:t}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#7:37 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Long time pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:T}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#7:37:48 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Universal sortable date/time pattern.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:u}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2016-08-28 19:38:07Z&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Universal full date/time pattern.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:U}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August 28, 2016 11:38:28 PM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Year month pattern.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:y}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August, 2016&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:Y}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August, 2016&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Custom format&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:hh}:{0:mm}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#10:51&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0:hh}:{0:mm}:{0:ss}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#10:51:23&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Note that all the above works also using the ToString method&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).tostring(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;y&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#August, 2016&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Custom Date and Time Format Strings&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).tostring(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;yyyyMMdd&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#20160828&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;########################&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# ALIGNEMENT / SPACING #&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;########################&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Spacing and Define the width of the string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0,6} {1,15:N0}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;2016&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;1000000&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  2016         1000000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0,6} {1,15:N0}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;2017&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;88000000&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#  2017        88000000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;{0,-10:C2}{1,14:C2}&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;2017&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;88000000&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#2017            88000000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0,-20:C} (amount)&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: indigo;&quot;&gt;52353253.27&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#$52,353,253.27       (amount)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;|{0,-10}|&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;hello&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#|hello     |&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;|{0,10}|&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;hello&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#|     hello|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;##########&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# STRING #&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;##########&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# One string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;{0}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Francois-Xavier&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Francois-Xavier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Multiple Strings&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;My name is {0}, From {1} and live in {2}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;FX&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;France&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Montreal (Canada)&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# You can also shuffle around the tags&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;My name is {2} I&#39;m From {1} and live in {0}&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-f&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Montreal (Canada)&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;France&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;FX&#39;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;http://www.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/2246809699949021988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-composite-formatting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/2246809699949021988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/2246809699949021988'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-composite-formatting.html' title='PowerShell - Composite Formatting references (-f Operator)'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-12p4gGRDxDU/V8QnM7FIl2I/AAAAAAAB6kc/F8IKnxqm_iYuVDqDf5uq2ECh00-wniDxQCLcB/s72-c/1472490851_format-indent-more.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-7248502406640474915</id><published>2016-08-24T21:40:00.001-04:00</published><updated>2016-08-28T00:25:39.776-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pester"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>PowerShell/Pester - Make sure your parameters are separated by an empty line</title><content type='html'>&lt;a href=&quot;https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s1600/pester_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s200/pester_logo.png&quot; width=&quot;120&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Today, I continue with another post on Pester. I want to check that each of my parameters declared in my &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: large;&quot;&gt;PARAM()&lt;/span&gt; block is separated by a empty line.&lt;br /&gt;&lt;br /&gt;This will help bring clarity to my code and make it easier to read for other people.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is an example,&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;I don&#39;t want this&lt;/span&gt;&lt;/b&gt;:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-VRLiUrYpOjo/V7p68Whf4OI/AAAAAAAB6MY/NaYuZZdgClI0djRfOORUFlEFnadq9zmCACLcB/s1600/PowerShellPester_EmptyLine_between_parameter01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://1.bp.blogspot.com/-VRLiUrYpOjo/V7p68Whf4OI/AAAAAAAB6MY/NaYuZZdgClI0djRfOORUFlEFnadq9zmCACLcB/s400/PowerShellPester_EmptyLine_between_parameter01.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;Instead,&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;I want all the comment based help in that format&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-qZVUqxR1XXs/V7p6-TE9qpI/AAAAAAAB6Mc/s1EfbQ4khjcsdP_wLF94F2rmQD_MK4d9QCLcB/s1600/PowerShellPester_EmptyLine_between_parameter02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://1.bp.blogspot.com/-qZVUqxR1XXs/V7p6-TE9qpI/AAAAAAAB6Mc/s1EfbQ4khjcsdP_wLF94F2rmQD_MK4d9QCLcB/s400/PowerShellPester_EmptyLine_between_parameter02.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This can be accomplish by something like that:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: steelblue;&quot;&gt;CmdletBinding&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;PARAM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;ADSIPS&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$GithubRepository&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;github.com/lazywinadmin/&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Make sure one or multiple versions of the module are note loaded&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;remove-module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Find the Manifest file&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ManifestFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Split-path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Split-Path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Parent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$MyInvocation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.MyCommand.Definition))&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;.psd1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Import the module and store the information about the module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleInformation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Import-module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ManifestFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-PassThru&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Get the functions present in the Manifest&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ExportedFunctions&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleInformation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.ExportedFunctions.Values.name&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Testing the Module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Describe&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Module - HELP&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #648cc8; font-style: italic;&quot;&gt;-Tags&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Module&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; {&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FOREACH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ExportedFunctions&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;    {&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;function:&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$AST&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0f5186;&quot;&gt;System.Management.Automation.Language.Parser&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]::&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ParseInput(&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0f5186;&quot;&gt;ref&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$null&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0f5186;&quot;&gt;ref&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$null&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;        &lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Context&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; - Help&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;br /&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: green;&quot;&gt;# Parameters separated by a space&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$AST&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.ParamBlock.extent.text &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;\r\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# split on carriage return&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.trim() &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Trim the edges&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamTextSeparator&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;select-string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;,$&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#line that finish by a &#39;,&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamTextSeparator&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;            {&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Foreach&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamLine&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamTextSeparator&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.linenumber)&lt;br /&gt;                {&lt;br /&gt;                    &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;it&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Parameter - Separated by space (Line &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamLine&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;br /&gt;                        &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamLine&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-match&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;^$|\s+&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Should&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;Be&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$true&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        } &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Context&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    } &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#FOREACH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;} &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#Describe&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So what is happening here ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#1&lt;/b&gt;- Using Abstract Syntax Tree (AST), we retrieve the content of the &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: large;&quot;&gt;PARAM()&lt;/span&gt; block and split on the carriage return character&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$AST&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.ParamBlock.extent.text &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;\r\n&#39;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;#2&lt;/b&gt;- We trim the edges of each lines&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.trim()&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;#3&lt;/b&gt;- We find the line that finish by a comma character &#39;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;,&lt;/span&gt;&lt;/b&gt;&#39;. Here we are using Regex and the Dollar sign &#39;$&#39; that will matches the ending of a line.&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamTextSeparator&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;select-string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;,$&#39;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#4&lt;/b&gt;- Then for each lines that finish by a comma character, we will check if the next line is empty or contains only white spaces, which is fine too. Again we will be using regex here, ^$ matches an empty line and \s+ matches one ore more whitespaces. This should return either $true or $false and we can use Pester from here to return the success of failure of the test.&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamText&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ParamLine&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-match&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;^$|\s+&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Should&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;Be&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$true&lt;/span&gt;&lt;/pre&gt;&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://4.bp.blogspot.com/-P97IoGno3N8/V7p-7KDn_fI/AAAAAAAB6Mw/m8ZxhWZ8X9sDe32WRCDYM_y1S6OnqZP2gCLcB/s1600/PowerShellPester_EmptyLine_between_parameter03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://4.bp.blogspot.com/-P97IoGno3N8/V7p-7KDn_fI/AAAAAAAB6Mw/m8ZxhWZ8X9sDe32WRCDYM_y1S6OnqZP2gCLcB/s400/PowerShellPester_EmptyLine_between_parameter03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Other posts on Pester&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/05/using-pester-to-test-your-comment-based.html&quot; target=&quot;_blank&quot;&gt;Using Pester to test your Comment Based Help&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/05/using-pester-to-test-your-manifest-file.html&quot; target=&quot;_blank&quot;&gt;Using Pester to test your Manifest File&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your-comment.html&quot; target=&quot;_blank&quot;&gt;Make sure your Comment Based Help is not indented&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your.html&quot; target=&quot;_blank&quot;&gt;Make sure your parameters are separated by an empty line&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on&amp;nbsp;&lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href=&quot;http://www.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;. You can also follow the&amp;nbsp;&lt;b&gt;LazyWinAdmin Blog&lt;/b&gt;&amp;nbsp;on&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/7248502406640474915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/7248502406640474915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/7248502406640474915'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your.html' title='PowerShell/Pester - Make sure your parameters are separated by an empty line'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s72-c/pester_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-91945496487599540</id><published>2016-08-22T21:42:00.000-04:00</published><updated>2016-08-27T23:24:14.281-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdsiPS"/><category scheme="http://www.blogger.com/atom/ns#" term="Pester"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>PowerShell/Pester - Make sure your Comment Based Help is not indented</title><content type='html'>&lt;a href=&quot;https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s1600/pester_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s200/pester_logo.png&quot; width=&quot;120&quot; /&gt;&lt;/a&gt;&lt;br /&gt;While writing some PowerShell Pester tests for my module &lt;a href=&quot;https://www.powershellgallery.com/packages/AdsiPS/1.0.0.2&quot; target=&quot;_blank&quot;&gt;AdsiPS&lt;/a&gt;, I wanted to make sure for each functions that all the help keywords of the comment based help were not indented.&lt;br /&gt;&lt;br /&gt;Depending of the script editor you are using, the number of spaces or tabs might differ and once published on GitHub the code might looks not so pretty.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My goal is just to keep my code clean and enforce the same practice across all the functions.&lt;br /&gt;&lt;br /&gt;Here for example, &lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;I don&#39;t want this&lt;/span&gt;&lt;/b&gt;:&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-WWy8toPOnz0/V7prxZg5nRI/AAAAAAAB6L0/H7zZId1OfNQJaLTx4sHro_GF8N9rMtFpwCLcB/s1600/PowerShellPester-Indented_commentbasedhelp01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://1.bp.blogspot.com/-WWy8toPOnz0/V7prxZg5nRI/AAAAAAAB6L0/H7zZId1OfNQJaLTx4sHro_GF8N9rMtFpwCLcB/s320/PowerShellPester-Indented_commentbasedhelp01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Instead, &lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;I want all the comment based help in that format&lt;/span&gt;&lt;/b&gt;&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://1.bp.blogspot.com/-pRHyNhrVPVc/V7przaRzwqI/AAAAAAAB6L4/J9FDRbCVvL0ODPjNajy_VHy2J3VkgrEZQCLcB/s1600/PowerShellPester-Indented_commentbasedhelp02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;254&quot; src=&quot;https://1.bp.blogspot.com/-pRHyNhrVPVc/V7przaRzwqI/AAAAAAAB6L4/J9FDRbCVvL0ODPjNajy_VHy2J3VkgrEZQCLcB/s320/PowerShellPester-Indented_commentbasedhelp02.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This can be accomplish by something like that:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: steelblue;&quot;&gt;CmdletBinding&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;PARAM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;ADSIPS&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$GithubRepository&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;github.com/lazywinadmin/&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Make sure one or multiple versions of the module are note loaded&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;remove-module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Find the Manifest file&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ManifestFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Split-path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Split-Path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Parent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Path&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$MyInvocation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.MyCommand.Definition))&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;.psd1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Import the module and store the information about the module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleInformation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Import-module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ManifestFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-PassThru&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Get the functions present in the Manifest&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ExportedFunctions&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleInformation&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.ExportedFunctions.Values.name&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Testing the Module&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Describe&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ModuleName&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Module - HELP&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #648cc8; font-style: italic;&quot;&gt;-Tags&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Module&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; {&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;#$Commands = (get-command -Module ADSIPS).Name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;    &lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FOREACH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$ExportedFunctions&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;    {&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Retrieve the content of the current function&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;function:&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;        &lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Context&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; - Comment Based Help - Indentation Checks&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;br /&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Validate Help start at the beginning of the line&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;It&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Help - Starts at the beginning of the line&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;.Synopsis&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;                &lt;span style=&quot;background-color: yellow;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;\r\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;                &lt;span style=&quot;background-color: yellow;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;select-string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).line &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-match&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;^&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Should&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;Be&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$true&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So what is happening here ?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#1&lt;/b&gt;- I get the content of the function using Get-Content&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;Get-Content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;function:&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$funct&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;#2&lt;/b&gt;- I define the pattern that I want to retrieve, here I&#39;m just looking for the help keyword Synopsis&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;.Synopsis&quot;&lt;/span&gt;&lt;/pre&gt;I guess i could check each help keywords as an improvement of the current code.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#3&lt;/b&gt;- I split the content of the Function file on each Carriage Return character and look for the pattern I define in #2. This will give me any lines that contains &#39;.Synopsis&#39; (We should only have one)&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$FunctionContent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-split&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;\r\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;select-string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;#4&lt;/b&gt;- Using regex, we specify the caret character &#39;&lt;b&gt;^&lt;/b&gt;&#39; which will matches the beginning of a line with the pattern we defined. Finally we validate that it is $true using the Pester syntax &#39;&lt;b&gt;Should Be&lt;/b&gt;&#39;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;line &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;-match&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;^&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Pattern&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: dimgrey;&quot;&gt;Should&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #5a0032;&quot;&gt;Be&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$true&lt;/span&gt;&lt;/pre&gt;&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://2.bp.blogspot.com/-YiL_2180IAs/V7p2-_0aSzI/AAAAAAAB6MM/Inz2GBGcYj0FTiUWkemNj3yGRbaoeiCZQCLcB/s1600/PowerShellPester-Indented_commentbasedhelp03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://2.bp.blogspot.com/-YiL_2180IAs/V7p2-_0aSzI/AAAAAAAB6MM/Inz2GBGcYj0FTiUWkemNj3yGRbaoeiCZQCLcB/s400/PowerShellPester-Indented_commentbasedhelp03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3&gt;Other posts on Pester&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/05/using-pester-to-test-your-comment-based.html&quot; target=&quot;_blank&quot;&gt;Using Pester to test your Comment Based Help&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/05/using-pester-to-test-your-manifest-file.html&quot; target=&quot;_blank&quot;&gt;Using Pester to test your Manifest File&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your.html&quot; target=&quot;_blank&quot;&gt;Make sure your parameters are separated by an empty line&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;http://www.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/91945496487599540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your-comment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/91945496487599540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/91945496487599540'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershellpester-make-sure-your-comment.html' title='PowerShell/Pester - Make sure your Comment Based Help is not indented'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-etvBfTaRIMo/VzKn8bm6XvI/AAAAAAAB32A/2wJhhKMAAmgwbNMrPdauWvoCafG7ciozACLcB/s72-c/pester_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-2435168574585948930</id><published>2016-08-20T18:49:00.004-04:00</published><updated>2016-08-25T09:04:36.236-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="French"/><category scheme="http://www.blogger.com/atom/ns#" term="French PowerShell User Group"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>Launch of / Lancement du French PowerShell User Group</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-XdTy5bh4Eg4/V7jXTjDpJ-I/AAAAAAAB6J0/6e4DzygDo7kVDH_8nJ5xK-72NElZQhdDwCLcB/s1600/image.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://4.bp.blogspot.com/-XdTy5bh4Eg4/V7jXTjDpJ-I/AAAAAAAB6J0/6e4DzygDo7kVDH_8nJ5xK-72NElZQhdDwCLcB/s200/image.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;i&gt;[English below]&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Depuis un moment, dans la Communauté PowerShell francophone, &amp;nbsp;je vois un certain nombre de développeurs, administrateurs et MVP &amp;nbsp;d’un peu partout dans le monde exprimer le désir d’avoir un groupe d’utilisateurs PowerShell.&lt;br /&gt;&lt;br /&gt;Nous avons tous une famille, un travail, des loisirs et organisé&amp;nbsp;un évènement prend beaucoup de temps, surtout pour trouver des salles, des sponsors, des présenteurs, etc…&lt;br /&gt;&lt;br /&gt;Donc, … il y a quelques semaines j’ai commencé une conversation avec quelques gars du domaine et lancer l’idée d’un groupe d’utilisateurs uniquement en ligne (pour le moment) en utilisant Meetup.com / Google Hangout On Air / Youtube Live. Cela facilite énormément l’organisation, permet l’enregistrement du meeting automatiquement et à tous d’assister au meeting peu importe l’endroit.&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Et bien voilà nous y sommes…&lt;/h3&gt;&lt;br /&gt;&lt;b&gt;Je suis content de vous annoncer le lancement du French PowerShell User Group&lt;/b&gt; (Groupe d’utilisateurs Francophone PowerShell). Ce groupe est pour tout francophone désireux d’apprendre et d’étendre ses connaissances.&lt;br /&gt;&lt;br /&gt;Notre but est de développer une communauté forte pour partager et promouvoir le transfert de connaissances.&lt;br /&gt;&lt;br /&gt;Nous organiserons un meeting mensuel. Le premier étant planifié pour le 20 septembre 2016 sur l&#39;Analyse syntaxique de données avec PowerShell.&lt;br /&gt;&lt;br /&gt;Et… nous avons déjà des présenteurs tous les mois jusqu’en Janvier 2017 !!! Merci a tous!&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;b&gt;Voici notre calendrier:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/09/20 &lt;b&gt;Analyse syntaxique de données avec PowerShell&lt;/b&gt; (&lt;a href=&quot;http://www.lazywinadmin.com/&quot; target=&quot;_blank&quot;&gt;Francois-Xavier Cat&lt;/a&gt; - &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot; target=&quot;_blank&quot;&gt;@lazywinadm&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/10/18 &lt;b&gt;Les Classes PowerShell&lt;/b&gt; (&lt;a href=&quot;http://powershelldistrict.com/&quot; target=&quot;_blank&quot;&gt;Stephane Van Gulick&lt;/a&gt;&amp;nbsp;- &lt;a href=&quot;https://twitter.com/stephanevg&quot; target=&quot;_blank&quot;&gt;@stephanevg&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/11/16 &lt;b&gt;PowerShell et Unity&lt;/b&gt; (&lt;a href=&quot;https://balladelli.com/&quot; target=&quot;_blank&quot;&gt;Micky Balladelli&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/mickyballadelli&quot; target=&quot;_blank&quot;&gt;@mickyballadelli&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/12/14 &lt;b&gt;PowerShell Pester&lt;/b&gt; (&lt;a href=&quot;http://pwrshell.net/&quot; target=&quot;_blank&quot;&gt;Fabien Dibot&lt;/a&gt; - &lt;a href=&quot;https://twitter.com/fdibot&quot; target=&quot;_blank&quot;&gt;@fdibot&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2017/01/11 &lt;b&gt;Gérer les Windows Containers avec PowerShell&lt;/b&gt; (&lt;a href=&quot;http://microsofttouch.fr/default/b/florent&quot; target=&quot;_blank&quot;&gt;Florent Appointaire&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/florent_app&quot; target=&quot;_blank&quot;&gt;@florent_app&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Assister aux meetings&lt;/h3&gt;Il est important de choisir l&#39;option &#39;&lt;b&gt;&lt;i&gt;J&#39;y vais&lt;/i&gt;&lt;/b&gt;&#39; si vous planifiez d&#39;assister à un meeting (sur &lt;a href=&quot;https://www.meetup.com/fr-FR/FrenchPSUG&quot; target=&quot;_blank&quot;&gt;meetup.com&lt;/a&gt;). Quelques minutes avant l&#39;événement nous enverrons le lien Google Hangout/Youtube Live aux gens aillant repondu &#39;&lt;b&gt;&lt;i&gt;J&#39;y vais&lt;/i&gt;&lt;/b&gt;&#39;.&lt;br /&gt;&lt;br /&gt;Cependant une fois le meeting démarrer, celui-ci devrait apparaître sur notre chaine Youtube.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Présenteurs&lt;/h3&gt;SVP nous contactez sur notre courriel ou par twitter si vous souhaitez faire une presentation.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Liens&lt;/h3&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Meetup&lt;/b&gt; (Meeting, RSVP, Forum, ...) - &lt;a href=&quot;https://www.meetup.com/FrenchPSUG/&quot;&gt;https://www.meetup.com/FrenchPSUG/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Twitter&lt;/b&gt; - &lt;a href=&quot;https://twitter.com/frpsug&quot;&gt;https://twitter.com/frpsug&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Facebook&lt;/b&gt; - &lt;a href=&quot;https://www.facebook.com/frpsug/&quot;&gt;https://www.facebook.com/frpsug/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Github&lt;/b&gt; - &amp;nbsp;&lt;a href=&quot;https://github.com/FrPSUG&quot;&gt;https://github.com/FrPSUG&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Email&lt;/b&gt; - frpsug at gmail.com&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;[English]&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For a while now I saw francophone PowerShell developers, admins, enthusiasts or MVP from different part of world occasionally express the need to have a User Group that could help them learn, share and promote the transfer of PowerShell knowledge.&lt;br /&gt;&lt;br /&gt;We all have family/jobs/hobbies and organizing a physical event takes a lot of time, especially if you need to find venues, sponsors, speakers to come on site, etc.…&lt;br /&gt;&lt;br /&gt;So a couple of weeks ago I started a thread with a few guys, launching the idea to make the User Group Online (for now) using meetup.com and Google Hangout On air/Youtube Live.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;And here we are…&lt;/h3&gt;&lt;b&gt;I&#39;m very excited to announce the launch of the French PowerShell User Group.&lt;/b&gt; This group is for any Francophone out there interested to learn more about PowerShell.&lt;br /&gt;&lt;br /&gt;Our goal is to develop a strong community of people to share and promote the transfer of PowerShell knowledge.&lt;br /&gt;&lt;br /&gt;We will organize an Online monthly meeting. The first event is scheduled for the 20th of September 2016 on Data Parsing with PowerShell.&lt;br /&gt;&lt;br /&gt;AND…We already have speakers lined-up until January 2017!!! :-)&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Here the current calendar:&lt;/u&gt;&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/09/20 &lt;b&gt;Parsing Data with PowerShell&lt;/b&gt; – (&lt;a href=&quot;http://www.lazywinadmin.com/&quot; target=&quot;_blank&quot;&gt;Francois-Xavier Cat&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/LazyWinAdm&quot; target=&quot;_blank&quot;&gt;@lazywinadm&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/10/18 &lt;b&gt;Using PowerShell Classes&lt;/b&gt; – (&lt;a href=&quot;http://powershelldistrict.com/&quot; target=&quot;_blank&quot;&gt;Stephane Van Gulick&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/stephanevg&quot; target=&quot;_blank&quot;&gt;@stephanevg&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/11/16 &lt;b&gt;PowerShell and Unity engine&lt;/b&gt; – (&lt;a href=&quot;https://balladelli.com/&quot; target=&quot;_blank&quot;&gt;Micky Balladelli&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/mickyballadelli&quot; target=&quot;_blank&quot;&gt;@mickyballadelli&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2016/12/14 &lt;b&gt;PowerShell Pester&lt;/b&gt; – (&lt;a href=&quot;http://pwrshell.net/&quot; target=&quot;_blank&quot;&gt;Fabien Dibot&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/fdibot&quot; target=&quot;_blank&quot;&gt;@fdibot&lt;/a&gt;)&lt;br /&gt;•&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;2017/01/11 &lt;b&gt;Managing Windows Container with PowerShell&lt;/b&gt; – (&lt;a href=&quot;http://microsofttouch.fr/default/b/florent&quot; target=&quot;_blank&quot;&gt;Florent Appointaire&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;a href=&quot;https://twitter.com/florent_app&quot; target=&quot;_blank&quot;&gt;@florent_app&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Attending the User Group&lt;/h3&gt;RSVP is recommended for each meeting (on&amp;nbsp;&lt;a href=&quot;https://www.meetup.com/fr-FR/FrenchPSUG&quot; target=&quot;_blank&quot;&gt;meetup.com&lt;/a&gt;). We will be sending the link to the Google Hangout/Youtube Live to the people who RSVPed a few minutes before we start.&lt;br /&gt;&lt;br /&gt;During the meeting the broadcast might show up on our Youtube Channel as well.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Speakers&lt;/h3&gt;We are looking for Speaker French preferably and we might open to have English speaker as well in the future.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Important Links&lt;/h3&gt;&lt;b&gt;Meetings&lt;/b&gt; / RSVP / Forum - https://www.meetup.com/FrenchPSUG/&lt;br /&gt;&lt;b&gt;Twitter &lt;/b&gt;- https://twitter.com/frpsug&lt;br /&gt;&lt;b&gt;Facebook&lt;/b&gt; - https://www.facebook.com/frpsug/&lt;br /&gt;&lt;b&gt;Github&lt;/b&gt; - &amp;nbsp;https://github.com/FrPSUG&lt;br /&gt;&lt;b&gt;Email&lt;/b&gt; - frpsug at gmail.com&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;http://www.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/2435168574585948930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/launch-of-lancement-du-french.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/2435168574585948930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/2435168574585948930'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/launch-of-lancement-du-french.html' title='Launch of / Lancement du French PowerShell User Group'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://4.bp.blogspot.com/-XdTy5bh4Eg4/V7jXTjDpJ-I/AAAAAAAB6J0/6e4DzygDo7kVDH_8nJ5xK-72NElZQhdDwCLcB/s72-c/image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-3629376498894365193</id><published>2016-08-18T11:24:00.001-04:00</published><updated>2016-08-21T09:47:17.667-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Max OS X"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>PowerShell 10th Anniversary - Open Source / Running on Linux and Mac OS X</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-RusgNhdtdN8/V7T-C2BPoqI/AAAAAAAB6EU/fwCvB1FurQw1nfGHlPE7JYAN7y-dKNMEgCLcB/s1600/PowerShell_10thAnniversary.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://1.bp.blogspot.com/-RusgNhdtdN8/V7T-C2BPoqI/AAAAAAAB6EU/fwCvB1FurQw1nfGHlPE7JYAN7y-dKNMEgCLcB/s200/PowerShell_10thAnniversary.jpg&quot; width=&quot;120&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The PowerShell Team &lt;a href=&quot;https://azure.microsoft.com/en-us/blog/powershell-is-open-sourced-and-is-available-on-linux/&quot; target=&quot;_blank&quot;&gt;just dropped a bombshell&lt;/a&gt;&amp;nbsp;!&lt;br /&gt;&lt;br /&gt;Windows PowerShell is now a cross platform technology with the &lt;b&gt;availability of PowerShell on Linux and Mac&lt;/b&gt; !! .... AND.... The PowerShell team is &lt;b&gt;Open Sourcing Windows PowerShell (.Net) and PowerShell Core (.Net Core) &lt;/b&gt;!! This is so Cool !!!&lt;br /&gt;&lt;br /&gt;Today (2016/08/18) also marks the 10th Anniversary of PowerShell ! Quite a surprise that the PowerShell team prepared for us :-) Given the recent changes in leadership and culture, It is really nice to see Microsoft taking that direction.&lt;br /&gt;&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://3.bp.blogspot.com/-YhdJm89ardY/V7mwzwZUe3I/AAAAAAAB6Lg/3rJWh5CiJEMQHfmcRTlbDujfVVA_UZYMwCLcB/s1600/Whats%2Bnew%2Btoday.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://3.bp.blogspot.com/-YhdJm89ardY/V7mwzwZUe3I/AAAAAAAB6Lg/3rJWh5CiJEMQHfmcRTlbDujfVVA_UZYMwCLcB/s320/Whats%2Bnew%2Btoday.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;PowerShell is now Open Source&lt;/h2&gt;Under the &lt;a href=&quot;https://tldrlegal.com/license/mit-license&quot; target=&quot;_blank&quot;&gt;MIT License&lt;/a&gt;, PowerShell is now an Open Source Software (OSS).&lt;br /&gt;&lt;br /&gt;This was made possible with&amp;nbsp;&lt;a href=&quot;https://blogs.msdn.microsoft.com/dotnet/2016/06/27/announcing-net-core-1-0/&quot; target=&quot;_blank&quot;&gt;the release of the .NET Core Framework&lt;/a&gt;,&amp;nbsp;foundational libraries called CoreFX. A framework available on Windows, OS X and Linux! .NET Core is cross-platform and open source.&lt;br /&gt;&lt;br /&gt;PowerShell Core is fairly recent and does not offer all the cmdlets available on PowerShell yet since they don&#39;t rely on the same Net Framework as Windows PowerShell (.NET). As a side note, Windows Server 2016 Nano Edition (aka Nano Server) is running on PowerShell Core.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;PowerShell is now a Cross Platform technology&lt;/h2&gt;In addition to Windows Client and Server, PowerShell is now available on the following operating systems:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Linux&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Ubuntu 14.04 \ 16.04&lt;/li&gt;&lt;li&gt;CentOs 7.1&lt;/li&gt;&lt;li&gt;RHEL 7&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;MAC OS X&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;OS X 10.11&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2&gt;Download / Test / Contribute&lt;/h2&gt;The source are located on Github on the following repository &lt;a href=&quot;https://github.com/PowerShell/PowerShell&quot;&gt;https://github.com/PowerShell/PowerShell&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It also worth to note that the PowerShell Team is also providing some nice examples/demos on their GitHub repository:&amp;nbsp;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos&quot; target=&quot;_blank&quot;&gt;https://github.com/PowerShell/PowerShell/tree/master/demos&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Some of the examples available:&lt;/u&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/Apache&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Managing Apache&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/DSC&quot; target=&quot;_blank&quot;&gt;Desired State Configuration (DSC) to set an Apache web Server&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases&quot; target=&quot;_blank&quot;&gt;More information on DSC for Linux&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/blob/master/demos/Docker-PowerShell/Docker-PowerShell.ps1&quot; target=&quot;_blank&quot;&gt;Managing Docker&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/crontab&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Managing Cron jobs via CronTab&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/powershellget&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Using PowerShellGet&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/python&quot; target=&quot;_blank&quot;&gt;Using PowerShell and Python&lt;/a&gt;&lt;/b&gt; including how to use &lt;u&gt;JSON&lt;/u&gt; to exchange structured objects between Python and PowerShell.&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/tree/master/demos/rest&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Invoke-WebRequest&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Some of those are also demoed in a video here:&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://www.youtube.com/watch?v=2WZwv7TxqZ0&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://2.bp.blogspot.com/-zVSvkiYXLgA/V7muUMaynpI/AAAAAAAB6LU/8Po9mmcr138qTAEuC3JlvuyAQ78GR8A-wCLcB/s320/Youtube_Snover.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Installing PowerShell Core on Linux and Mac&lt;/h2&gt;Here is the documentation on how to proceed with the installation of PowerShell Core on Linux and Mac.&amp;nbsp;&lt;a href=&quot;https://github.com/PowerShell/PowerShell/blob/master/docs/installation&quot;&gt;https://github.com/PowerShell/PowerShell/blob/master/docs/installation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At the time I&#39;m writing this, I only see documentation on how to install PowerShell Core on Linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-6UYSPjH0SnI/V7UIv9nzSWI/AAAAAAAB6Ek/KeWhEhv0km4PbkTf5s4NdoLVJu6hAK5nACLcB/s1600/PowerShell_on_Linux.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; src=&quot;https://3.bp.blogspot.com/-6UYSPjH0SnI/V7UIv9nzSWI/AAAAAAAB6Ek/KeWhEhv0km4PbkTf5s4NdoLVJu6hAK5nACLcB/s400/PowerShell_on_Linux.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 12.8px;&quot;&gt;PowerShell Core on Linux&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-P8fX5g9eh2k/V7UIwJQG61I/AAAAAAAB6Eo/PCFNNO1a26okNOwEN11FhzTk7VT2PytcgCLcB/s1600/PowerShell_on_Mac_OSX.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://3.bp.blogspot.com/-P8fX5g9eh2k/V7UIwJQG61I/AAAAAAAB6Eo/PCFNNO1a26okNOwEN11FhzTk7VT2PytcgCLcB/s400/PowerShell_on_Mac_OSX.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 12.8px;&quot;&gt;PowerShell Core on MAC OS X&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;More information&lt;/h2&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://blogs.msdn.microsoft.com/powershell/2016/08/17/windows-powershell-is-now-powershell-an-open-source-project-with-linux-support-how-did-we-do-it/&quot; target=&quot;_blank&quot;&gt;Windows PowerShell is now “PowerShell”: An Open Source Project with Linux support – How did we do it?&lt;/a&gt;&amp;nbsp;- PowerShell Team Blog&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/&quot; target=&quot;_blank&quot;&gt;PowerShell on Linux and Open Source!&lt;/a&gt;&amp;nbsp;- PowerShell Team Blog&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://azure.microsoft.com/en-us/blog/powershell-is-open-sourced-and-is-available-on-linux/&quot; target=&quot;_blank&quot;&gt;PowerShell is open sourced and is available on Linux&lt;/a&gt;&amp;nbsp;- Azure Team Blog&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=2WZwv7TxqZ0&quot; target=&quot;_blank&quot;&gt;PowerShell on Linux and Open Source&lt;/a&gt; - Jeffery Snover (Video)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=1uGyswOOPdA&quot; target=&quot;_blank&quot;&gt;PowerShell Open Sourcing Launch &lt;/a&gt;- PowerShell Team (Video)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.powershellmagazine.com/2016/08/18/open-source-powershell-on-windows-linux-and-osx/&quot; target=&quot;_blank&quot;&gt;Open source PowerShell on Windows, Linux, and OS X!&lt;/a&gt;&amp;nbsp;- PowerShell Magazine&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://powershell.org/2016/08/19/why-powershell-on-linux-is-such-an-accomplishment/&quot; target=&quot;_blank&quot;&gt;Why PowerShell on Linux is Such an Accomplishment ?&lt;/a&gt;&amp;nbsp;- PowerShell.org&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2&gt;RECAP : 2006 PowerShell v1 &amp;gt; 2016 PowerShell v5&lt;/h2&gt;&lt;br /&gt;Here is a small recap of the previous version of powershell over the last 10 years with some of most important features introduced for each versions&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;bq4&quot;&gt;Source: Wikipedia (&lt;a href=&quot;https://en.wikipedia.org/wiki/Windows_PowerShell&quot;&gt;https://en.wikipedia.org/wiki/Windows_PowerShell&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;b&gt;PowerShell v1 (2006)&lt;/b&gt;&lt;/h3&gt;PowerShell 1.0 was released in November 2006 for Windows XP SP2, Windows Server 2003 and Windows Vista. It is an optional component of Windows Server 2008.&lt;br /&gt;&lt;h3&gt;&lt;br /&gt;PowerShell v2 (2008)&lt;/h3&gt;PowerShell 2.0 is integrated with Windows 7 and Windows Server 2008 R2 and is released for Windows XP with Service Pack 3, Windows Server 2003 with Service Pack 2, and Windows Vista with Service Pack 1.&lt;br /&gt;&lt;br /&gt;PowerShell V2 includes changes to the scripting language and hosting API, in addition to including more than 240 new cmdlets.&lt;br /&gt;&lt;br /&gt;Some of the features:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PowerShell Remoting&lt;/li&gt;&lt;li&gt;Background Jobs&lt;/li&gt;&lt;li&gt;Transactions&lt;/li&gt;&lt;li&gt;Modules&lt;/li&gt;&lt;li&gt;Debugging&lt;/li&gt;&lt;li&gt;Eventing&lt;/li&gt;&lt;li&gt;PowerShell ISE&lt;/li&gt;&lt;li&gt;...&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;PowerShell v3 (2012)&lt;/h3&gt;Some of the features:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Scheduled Jobs&lt;/li&gt;&lt;li&gt;Web Cmdlets&lt;/li&gt;&lt;li&gt;AST&lt;/li&gt;&lt;li&gt;Workflow&lt;/li&gt;&lt;li&gt;CIM Cmdlets&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;PowerShell v4 (2013)&lt;/h3&gt;&lt;div&gt;Some of the features:&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Desired State Configuration (DSC)&lt;/li&gt;&lt;li&gt;Save-Help&lt;/li&gt;&lt;li&gt;Remote Debugging&lt;/li&gt;&lt;li&gt;PowerShell Web Access (PWA)&lt;/li&gt;&lt;li&gt;PSReadLine&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;PowerShell v5 (2016)&lt;/h3&gt;&lt;div&gt;Some of the features:&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PowerShell Classes&lt;/li&gt;&lt;li&gt;Pester&lt;/li&gt;&lt;li&gt;PowerShell JEA (Just Enought Administration)&lt;/li&gt;&lt;li&gt;PacketManagement (OneGet)&lt;/li&gt;&lt;li&gt;Debugging Runspaces in remote processes&lt;/li&gt;&lt;li&gt;Debugging PowerShell Background jobs&lt;/li&gt;&lt;li&gt;DSC LCM v2&lt;/li&gt;&lt;li&gt;DSC Partial Configurations&lt;/li&gt;&lt;li&gt;DSC LCM meta-Configuration&lt;/li&gt;&lt;li&gt;Authoring DSC Resource&lt;/li&gt;&lt;li&gt;Script Analyzer&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;PowerShell v5.1 (2016)&lt;/h3&gt;&lt;div&gt;Some of the features:&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PacketManagement (Support for proxies)&lt;/li&gt;&lt;li&gt;PSReadline (VIMode)&lt;/li&gt;&lt;li&gt;LocalAccount module&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;https://draft.blogger.com/%E2%80%8Bhttp://www.linkedin.com/in/fxcat&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/3629376498894365193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-10th-anniversary-open-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/3629376498894365193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/3629376498894365193'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/08/powershell-10th-anniversary-open-source.html' title='PowerShell 10th Anniversary - Open Source / Running on Linux and Mac OS X'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-RusgNhdtdN8/V7T-C2BPoqI/AAAAAAAB6EU/fwCvB1FurQw1nfGHlPE7JYAN7y-dKNMEgCLcB/s72-c/PowerShell_10thAnniversary.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-6645976232009615152</id><published>2016-07-28T23:52:00.002-04:00</published><updated>2016-07-28T23:52:31.317-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Datagridview"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><category scheme="http://www.blogger.com/atom/ns#" term="WinFormPS"/><category scheme="http://www.blogger.com/atom/ns#" term="Winforms"/><title type='text'>PowerShell/WinForms - Row Header</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-Xf0qekBOgJ0/V5rRLmEkx1I/AAAAAAAB5So/Rqob7soJD6k1lcj2XXUWxVheGHe0lnNkQCEw/s1600/DataGridView_RawHeader2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://1.bp.blogspot.com/-Xf0qekBOgJ0/V5rRLmEkx1I/AAAAAAAB5So/Rqob7soJD6k1lcj2XXUWxVheGHe0lnNkQCEw/s200/DataGridView_RawHeader2.jpg&quot; width=&quot;195&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you are creating Windows Forms (WinForms) using PowerShell with tools such as PowerShell Studio from Sapien, you might have some scenario where you want to use Row Header instead of Column Header in a DataGridView control.&lt;br /&gt;&lt;br /&gt;Those can be controlled using the properties &lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: large;&quot;&gt;RowHeaderVisible&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: large;&quot;&gt;ColumnHeaderVisible&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Assuming you already have a form with a Datagridview in it, you will need to do the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create a Column&lt;/li&gt;&lt;li&gt;Create a Row with the Header value (and optionally a value for the first column)&lt;/li&gt;&lt;li&gt;Add the Row to the DataGridView&lt;/li&gt;&lt;li&gt;Set RowHeaderVisible to $true&lt;/li&gt;&lt;li&gt;Set ColumnHeaderVisiable to $false (Optional)&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;i&gt;(The example &lt;a href=&quot;https://github.com/lazywinadmin/PowerShellGUI/tree/master/_Examples/DataGridView/DataGridView_RowHeader&quot; target=&quot;_blank&quot;&gt;can be download on my github&lt;/a&gt;)&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;h3&gt;Creating a Column&lt;/h3&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create Column object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$NewColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;New-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-TypeName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;System.Windows.Forms.DataGridViewTextBoxColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$NewColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.Name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Column1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$NewColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.HeaderText &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Column1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Add the Column to the Datagridview&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.Columns.Add(&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$NewColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Creating a Row with Header value&lt;/h3&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# Create a Row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;New-Object&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-TypeName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;System.Windows.Forms.DataGridViewRow&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Set a Row Header value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.HeaderCell.Value &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Header1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Set the Header and a row value (for the first column)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.CreateCells(&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Value1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;h3 style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&lt;br /&gt;Add Row to Datagridview&lt;/h3&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Add the row to the DataGridView control&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.Rows.Add(&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$Row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; white-space: normal;&quot;&gt;Hide the Column Header and Show the Row Header&lt;/span&gt;&lt;/h3&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# Make the Row Header Visible&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.RowHeadersVisible &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Make the Column Header Invisible&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.ColumnHeadersVisible &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$false&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Easy way: Using the PowerShell module WinFormPS&lt;/h2&gt;I started a Window Forms module a while ago called &lt;b&gt;&lt;u&gt;WinFormPS&lt;/u&gt;&lt;/b&gt;. This module allows you to interact with WinForms control using PowerShell.&lt;br /&gt;The module is available on GitHub here:&amp;nbsp;&lt;a href=&quot;https://github.com/lazywinadmin/WinFormPS&quot;&gt;https://github.com/lazywinadmin/WinFormPS&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For our case here, you can either use the entire module or just copy the functions you need in your module.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Performing the same steps is way easier:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: green;&quot;&gt;# Add Column&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;Add-WFDataGridViewColumn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$datagridview1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-ColumnName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;First Column&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Add Row and Row Header&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;Add-WFDataGridViewRow&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$datagridview1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Title&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Header1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-Values&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Value1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Set the Row Header to Visible&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;Set-WFDataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$datagridview1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-ShowRowHeader&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;# Set the Column Header to Invisible&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;Set-WFDataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-DataGridView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;$datagridview1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3399ff;&quot;&gt;-HideColumnHeader&lt;/span&gt;&lt;/pre&gt;&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://1.bp.blogspot.com/-Xf0qekBOgJ0/V5rRLmEkx1I/AAAAAAAB5So/O36NS1FKpdswnDfCw4O_TJWqWovY5xq9QCLcB/s1600/DataGridView_RawHeader2.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://1.bp.blogspot.com/-Xf0qekBOgJ0/V5rRLmEkx1I/AAAAAAAB5So/O36NS1FKpdswnDfCw4O_TJWqWovY5xq9QCLcB/s1600/DataGridView_RawHeader2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;https://github.com/lazywinadmin/PowerShellGUI/tree/master/_Examples/DataGridView/DataGridView_RowHeader&quot; target=&quot;_blank&quot;&gt;Download this example&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for reading! If you have any questions, leave a comment or send me an email at fxcat@lazywinadmin.com. I invite you to follow me on &lt;a href=&quot;https://twitter.com/LazyWinAdm&quot;&gt;Twitter @lazywinadm&lt;/a&gt; / &lt;a href=&quot;https://plus.google.com/u/0/118118278125759171027/posts&quot;&gt;Google+&lt;/a&gt; / &lt;a href=&quot;http://ca.linkedin.com/in/fxcat&quot; target=&quot;_blank&quot;&gt;LinkedIn&lt;/a&gt;.  You can also follow the &lt;b&gt;LazyWinAdmin Blog&lt;/b&gt; on &lt;a href=&quot;https://www.facebook.com/pages/LazyWinAdmin/191148464265117&quot;&gt;Facebook Page&lt;/a&gt; and &lt;a href=&quot;https://plus.google.com/u/0/b/111250084602492302873/111250084602492302873/posts&quot;&gt;Google+ Page&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/6645976232009615152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/07/powershellwinforms-row-header.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6645976232009615152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/6645976232009615152'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/07/powershellwinforms-row-header.html' title='PowerShell/WinForms - Row Header'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-Xf0qekBOgJ0/V5rRLmEkx1I/AAAAAAAB5So/Rqob7soJD6k1lcj2XXUWxVheGHe0lnNkQCEw/s72-c/DataGridView_RawHeader2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5118199599906690528.post-8073127754023302074</id><published>2016-07-01T17:12:00.000-04:00</published><updated>2016-07-05T12:19:10.508-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Active Directory"/><category scheme="http://www.blogger.com/atom/ns#" term="djoin"/><category scheme="http://www.blogger.com/atom/ns#" term="Offline Domain Join"/><category scheme="http://www.blogger.com/atom/ns#" term="Powershell"/><title type='text'>Offline Domain Join - Recreating the Blob file using PowerShell</title><content type='html'>&lt;a href=&quot;https://2.bp.blogspot.com/-MTtrKCHSWQY/VRindTOh06I/AAAAAAABsaM/Qs_LczoBfQQCQAO5_CXwaTG80b7jsKLuQCKgB/s1600/powershell_logo%255B1%255D.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-MTtrKCHSWQY/VRindTOh06I/AAAAAAABsaM/Qs_LczoBfQQCQAO5_CXwaTG80b7jsKLuQCKgB/s1600/powershell_logo%255B1%255D.png&quot; /&gt;&lt;/a&gt;When you need to join a machine to the Active Directory It is a pretty straight forward task using either the User Interface or the PowerShell cmdlet available for that usage.&lt;br /&gt;&lt;br /&gt;However in some situation you don&#39;t have network connectivity and need to rely on Offline Domain Join, using the Djoin.exe tool. Typically you use djoin in two phases. First you generates a provisioning file that you drop on a newly deployed machine. In the second phase you run djoin with the file as a parameter and the machine is joined to the domain without connection to the domain controller.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;My problem&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Using that same method, I recently had a tricky problem to solve. The environment where I was performing this was very locked down, not allowing me to copy files to the new provisioned machine.&lt;br /&gt;&lt;br /&gt;Fortunately the system handling the deployment could perform action on other systems and gather data. I could rely on something like System Center Orchestrator (or SMA) and get the content of the Blob file over HTTP/HTTPS by invoking a runbook.&lt;br /&gt;&lt;br /&gt;Recreating the djoin file with the content was a bit trickier. Djoin is really picky on how the file is created. (see &lt;a href=&quot;http://www.msuiche.net/2009/01/29/windows-7-and-windows-server-2008-r2-djoin-offline-domain-join-utility/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.win7dll.info/netjoin_dll.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; for more information)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;bq4&quot;&gt;&lt;h2&gt;Using Djoin&lt;/h2&gt;Djoin comes with Windows Client and Server since Windows 7 and Windows Server 2008 R2 installation. Djoin requires administrator privileges, you have to use the tool on an elevated command prompt. Of course, you also need an account that has sufficient rights to create domain computer accounts.   &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-T8k-A1dxB38/VylGPOnE4tI/AAAAAAAB3ws/erjPIjivZg4yJ0kjmMfozUv-3UqcryBYACLcB/s1600/Djoin_help.png&quot; imageanchor=&quot;1&quot; style=&quot;font-family: &amp;quot;segoe ui&amp;quot;; font-size: 12px; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-T8k-A1dxB38/VylGPOnE4tI/AAAAAAAB3ws/erjPIjivZg4yJ0kjmMfozUv-3UqcryBYACLcB/s1600/Djoin_help.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1 - First, Run Djoin.exe to provision the computer account metadata. When you run the provisioning command, the computer account metadata is created in a blob .txt file that you specify as part of the command.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;br /&gt;&lt;b style=&quot;font-family: &amp;quot;courier new&amp;quot;, courier, monospace; font-size: x-large;&quot;&gt;djoin /provision /domain fx.lab /machine testdjoin01 /savefile provisioning.txt&lt;/b&gt;&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://1.bp.blogspot.com/--QUb4ubceQU/VylGPKzqJ9I/AAAAAAAB3wo/_KFdH9QDSwQGZjP1VtMnhw8xHb5iZs6xgCLcB/s1600/djoin01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/--QUb4ubceQU/VylGPKzqJ9I/AAAAAAAB3wo/_KFdH9QDSwQGZjP1VtMnhw8xHb5iZs6xgCLcB/s1600/djoin01.png&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;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-LM-O0IAzdZs/VylGPYT_ItI/AAAAAAAB3w0/H0uI0B5d1wcrCfi-ymr2XU3c2TJWHFpyACLcB/s1600/djoin01_ObjectCreated.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-LM-O0IAzdZs/VylGPYT_ItI/AAAAAAAB3w0/H0uI0B5d1wcrCfi-ymr2XU3c2TJWHFpyACLcB/s1600/djoin01_ObjectCreated.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2 - This blob then has to be copied on the machine and used to offline domain join the Windows machine.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;br /&gt;&lt;b style=&quot;font-family: &amp;quot;courier new&amp;quot;, courier, monospace; font-size: x-large;&quot;&gt;djoin /requestODJ /loadfile provisionning.txt /windowspath %SystemRoot% /localos&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-fPC3Lrh44tw/V2iDKmo3HyI/AAAAAAAB4fA/nHiyCuZbO4kduGRgbQHe_P0WkKiTpt0OwCLcB/s1600/blob.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://4.bp.blogspot.com/-fPC3Lrh44tw/V2iDKmo3HyI/AAAAAAAB4fA/nHiyCuZbO4kduGRgbQHe_P0WkKiTpt0OwCLcB/s1600/blob.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Here is what we see when we open the output file (provisionning.txt)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-4wDRHjOWdQ8/V2iOBORa83I/AAAAAAAB4fQ/koaUQqIrqj4nCJvyabhbY40STQyEePSdACLcB/s1600/blob_hexadecimal.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-4wDRHjOWdQ8/V2iOBORa83I/AAAAAAAB4fQ/koaUQqIrqj4nCJvyabhbY40STQyEePSdACLcB/s1600/blob_hexadecimal.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;And here in a hexadecimal editor, you can see it is an unicode base64 encoded string by the two first bytes &quot;FF FE&quot;.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2&gt;Copying the content of the blob to another file&lt;/h2&gt;&lt;br /&gt;Creating a copy of the file is easy, even copying the content on the same machine and dumping it in another file works, djoin will accept those files.&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;Get-Content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blueviolet;&quot;&gt;provisionning.txt&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;-Encoding&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blueviolet;&quot;&gt;Unicode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Set-Content&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blueviolet;&quot;&gt;newfile.txt&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;-Encoding&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blueviolet;&quot;&gt;Unicode&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Recreating the djoin blob file from the content&lt;/h2&gt;Using Djoin with the same parameters we used to create the blob earlier, we will add the parameter /PRINTBLOB which will output the Blob to the console.&lt;br /&gt;&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://4.bp.blogspot.com/-aFeu86gKYSE/VylGPZ8jMQI/AAAAAAAB3w8/MhqVqYliwiYbDQEv15uVo_iV4hh9O7eEgCLcB/s1600/djoin02_printblob.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://4.bp.blogspot.com/-aFeu86gKYSE/VylGPZ8jMQI/AAAAAAAB3w8/MhqVqYliwiYbDQEv15uVo_iV4hh9O7eEgCLcB/s1600/djoin02_printblob.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The output can then be stored in a Variable and parse to retrieve only the Blob:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;background-color: white; color: black; font-family: &amp;quot;lucida console&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-size: 16;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkgreen;&quot;&gt;# Store the djoin&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: black; font-family: &amp;quot;lucida console&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;color: orangered;&quot;&gt;$djoin&lt;/span&gt; &lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;djoin&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;/provision&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;/domain&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;fx.lab&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;/machine&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;testdjoin02&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;/savefile&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;provisioning&lt;/span&gt; &lt;span style=&quot;color: blueviolet;&quot;&gt;/printblob&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;segoe ui&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: black; font-family: &amp;quot;lucida console&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;color: darkgreen;&quot;&gt;# Get the blob&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: black; font-family: &amp;quot;lucida console&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;color: orangered;&quot;&gt;$djoin&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;] &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;segoe ui&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;segoe ui&amp;quot;; font-size: 16px; font-style: normal; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;Next, this string can be passed&amp;nbsp;across&amp;nbsp;the network using tools such as System Center Orchestrator or SMA. (I won&#39;t demonstrate this part in this post)&lt;br /&gt;&lt;br /&gt;Finally, on the new deployed machine, we can recreate the Blob file using New-DjoinFile, function available &lt;a href=&quot;https://github.com/lazywinadmin/PowerShell/tree/master/TOOL-New-DjoinFile&quot; target=&quot;_blank&quot;&gt;on Github&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;color: darkgreen;&quot;&gt;# Blob generated &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: orangered;&quot;&gt;$Blob&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkgrey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: darkred;&quot;&gt;&quot;&amp;lt;Blob generated previously on the domain machine&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: darkgreen;&quot;&gt;# Recreate djoin file&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;New-DjoinFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;-Blob&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: orangered;&quot;&gt;$blob&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;-DestinationFile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: orangered;&quot;&gt;$home&lt;/span&gt;&lt;span style=&quot;color: blueviolet;&quot;&gt;\desktop\blob.txt&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;-Verbose&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;You can now use Djoin.exe with the file blob.txt to join your new machine to the domain:&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://4.bp.blogspot.com/-uN2ft1ImMNc/V3bWcazbstI/AAAAAAAB4mw/ZV85RnyFEXQ5wI2fxyUVCgvJo1jVcrlFwCLcB/s1600/recreateddjoinfile.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://4.bp.blogspot.com/-uN2ft1ImMNc/V3bWcazbstI/AAAAAAAB4mw/ZV85RnyFEXQ5wI2fxyUVCgvJo1jVcrlFwCLcB/s1600/recreateddjoinfile.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href=&quot;https://github.com/lazywinadmin/PowerShell/tree/master/TOOL-New-DjoinFile&quot; target=&quot;_blank&quot;&gt;Download the function from Github&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now if you compare the file generated by djoin.exe and the one recreated by New-DjoinFile, you should get the same content, byte by byte.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Original File:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://4.bp.blogspot.com/-j-cXkIRMujg/V3b2X0sqf-I/AAAAAAAB4nI/F1smgEU5XDc3yyhNZJb522o3bVhN1PW3QCLcB/s1600/Original_file_start.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://4.bp.blogspot.com/-j-cXkIRMujg/V3b2X0sqf-I/AAAAAAAB4nI/F1smgEU5XDc3yyhNZJb522o3bVhN1PW3QCLcB/s1600/Original_file_start.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-6oiKOmEzVGE/V3b2bPNeZ1I/AAAAAAAB4nM/d43Qt-ysJokGQgGcyBDGd7Vn_p9WRXUrwCLcB/s1600/Original_file_end.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://1.bp.blogspot.com/-6oiKOmEzVGE/V3b2bPNeZ1I/AAAAAAAB4nM/d43Qt-ysJokGQgGcyBDGd7Vn_p9WRXUrwCLcB/s1600/Original_file_end.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;File created with New-DjoinFile&lt;/u&gt;&lt;/b&gt;&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://3.bp.blogspot.com/-kH5Dy0f24eQ/V3b2iugCcII/AAAAAAAB4nQ/_YVwJpbmDuUnL5t6EJPlz2wkK6U7cpVwQCLcB/s1600/New-DjoinFile_file_start.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://3.bp.blogspot.com/-kH5Dy0f24eQ/V3b2iugCcII/AAAAAAAB4nQ/_YVwJpbmDuUnL5t6EJPlz2wkK6U7cpVwQCLcB/s1600/New-DjoinFile_file_start.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-7fip8GVEBLI/V3b2oY_n4QI/AAAAAAAB4nU/rEddUIfbpjwALgu8ViA_dCWDrsRnzOQ9gCLcB/s1600/New-DjoinFile_file_end.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://3.bp.blogspot.com/-7fip8GVEBLI/V3b2oY_n4QI/AAAAAAAB4nU/rEddUIfbpjwALgu8ViA_dCWDrsRnzOQ9gCLcB/s1600/New-DjoinFile_file_end.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2&gt;More information&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;http://www.win7dll.info/netjoin_dll.html&lt;/li&gt;&lt;li&gt;http://www.msuiche.net/2009/01/29/windows-7-and-windows-server-2008-r2-djoin-offline-domain-join-utility/&amp;nbsp;&lt;/li&gt;&lt;li&gt;http://mctexpert.blogspot.com/2016/03/just-for-fun-storing-blob-files-as-xml.html&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.lazywinadmin.com/feeds/8073127754023302074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.lazywinadmin.com/2016/07/offline-domain-join-recreating-blob.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/8073127754023302074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5118199599906690528/posts/default/8073127754023302074'/><link rel='alternate' type='text/html' href='http://www.lazywinadmin.com/2016/07/offline-domain-join-recreating-blob.html' title='Offline Domain Join - Recreating the Blob file using PowerShell'/><author><name>Francois-Xavier</name><uri>https://plus.google.com/118118278125759171027</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Aq5-DJn1NlI/AAAAAAAAAAI/AAAAAAACM_w/1zRbJKA787A/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-MTtrKCHSWQY/VRindTOh06I/AAAAAAABsaM/Qs_LczoBfQQCQAO5_CXwaTG80b7jsKLuQCKgB/s72-c/powershell_logo%255B1%255D.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>