<?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: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-38056808</id><updated>2011-04-21T20:59:47.065-07:00</updated><category term='test'/><title type='text'>l14.dk test</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-38056808.post-3449225751493874336</id><published>2008-06-11T02:47:00.001-07:00</published><updated>2008-06-11T02:47:54.153-07:00</updated><title type='text'>format test</title><content type='html'>&lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($CreateDvdDrive.ispresent) {&lt;br /&gt;    CreateDvdDrive $vmname&lt;br /&gt;}&lt;br /&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($emptyOnly.ispresent) {&lt;br /&gt;        mount-iso $vmname $emptyiso&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;elseif&lt;/span&gt; ($vmconfigonly.ispresent) {&lt;br /&gt;        mount-iso $vmname $iso&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# remount&lt;/span&gt;&lt;br /&gt;        mount-iso $vmname $emptyiso&lt;br /&gt;        mount-iso $vmname $iso&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($CreateDvdDrive.ispresent) {&lt;br /&gt;    CreateDvdDrive $vmname&lt;br /&gt;}&lt;br /&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($emptyOnly.ispresent) {&lt;br /&gt;        mount-iso $vmname $emptyiso&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;elseif&lt;/span&gt; ($vmconfigonly.ispresent) {&lt;br /&gt;        mount-iso $vmname $iso&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# remount&lt;/span&gt;&lt;br /&gt;        mount-iso $vmname $emptyiso&lt;br /&gt;        mount-iso $vmname $iso&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($CreateDvdDrive.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt;     CreateDvdDrive $vmname&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt; }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($emptyOnly.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   7:&lt;/span&gt;         mount-iso $vmname $emptyiso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   8:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   9:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;elseif&lt;/span&gt; ($vmconfigonly.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  10:&lt;/span&gt;         mount-iso $vmname $iso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  11:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  12:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  13:&lt;/span&gt;         &lt;span style="color: #008000"&gt;# remount&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  14:&lt;/span&gt;         mount-iso $vmname $emptyiso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  15:&lt;/span&gt;         mount-iso $vmname $iso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  16:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  17:&lt;/span&gt; }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"&gt;&lt;br /&gt;&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($CreateDvdDrive.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt;     CreateDvdDrive $vmname&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt; }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($emptyOnly.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   7:&lt;/span&gt;         mount-iso $vmname $emptyiso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   8:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   9:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;elseif&lt;/span&gt; ($vmconfigonly.ispresent) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  10:&lt;/span&gt;         mount-iso $vmname $iso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  11:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  12:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  13:&lt;/span&gt;         &lt;span style="color: #008000"&gt;# remount&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  14:&lt;/span&gt;         mount-iso $vmname $emptyiso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  15:&lt;/span&gt;         mount-iso $vmname $iso&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  16:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  17:&lt;/span&gt; }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-3449225751493874336?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/3449225751493874336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=3449225751493874336' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/3449225751493874336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/3449225751493874336'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/06/format-test.html' title='format test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-5247052277294795679</id><published>2008-03-03T01:22:00.001-08:00</published><updated>2008-03-03T01:22:32.688-08:00</updated><title type='text'>test</title><content type='html'>&lt;p&gt;Will be deleted shortly&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-5247052277294795679?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/5247052277294795679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=5247052277294795679' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/5247052277294795679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/5247052277294795679'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/03/test.html' title='test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-7990242661154120248</id><published>2008-02-13T07:17:00.001-08:00</published><updated>2008-02-13T07:19:23.008-08:00</updated><title type='text'>Code Snippet plugin for Windows Live Writer</title><content type='html'>&lt;p&gt;Thank you Leo Vildosola! You just made me a very happy blogger :)&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;I found your &lt;a href="http://gallery.live.com/liveItemDetail.aspx?li=d4409446-af7f-42ec-aa20-78aa5bac4748&amp;amp;bt=9&amp;amp;pl=8"&gt;plugin&lt;/a&gt; for Windows Live Writer and it works great with PowerShell scripts. Inserting well-formatted, color-codedPowerShell code is now as easy as selecting 'Insert Code Snippet', pasting the code and pressing ok. There are only two drawbacks -&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Is is not copy-friendly, as there are no line breaks. But my current method is not that either  &lt;li&gt;The formatting is called MSH and not PowerShell, but I think I can live with that ;)&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Some examples&lt;/p&gt; &lt;p&gt;With line numbers and a container&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"&gt; &lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; &lt;span style="color: #008000"&gt;# Set-SMSCacheSize&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([int]$newSizeInMB=2000)&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt;&amp;nbsp; &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt; $sms=new-object -com UIResource.UIResourceMgr&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt; $ci=$sms.GetCacheInfo()&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($ci.TotalSize &lt;span style="color: #cc6633"&gt;-ne&lt;/span&gt; $newSizeInMB) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   7:&lt;/span&gt;     $ci.TotalSize=$newSizeInMB&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   8:&lt;/span&gt;     &lt;span style="color: #006080"&gt;"Size set to $newSizeInMB"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   9:&lt;/span&gt; }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  10:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  11:&lt;/span&gt;     &lt;span style="color: #006080"&gt;"Size $newSizeInMB already correct"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  12:&lt;/span&gt; }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Alternating lines, no container, no line numbers -&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Set-SMSCacheSize&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([int]$newSizeInMB=2000)&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;$sms=new-object -com UIResource.UIResourceMgr&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;$ci=$sms.GetCacheInfo()&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($ci.TotalSize &lt;span style="color: #cc6633"&gt;-ne&lt;/span&gt; $newSizeInMB) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    $ci.TotalSize=$newSizeInMB&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size set to $newSizeInMB"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size $newSizeInMB already correct"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;No line numbers, no container&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Set-SMSCacheSize&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([int]$newSizeInMB=2000)&lt;br /&gt; &lt;br /&gt;$sms=new-object -com UIResource.UIResourceMgr&lt;br /&gt;$ci=$sms.GetCacheInfo()&lt;br /&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($ci.TotalSize &lt;span style="color: #cc6633"&gt;-ne&lt;/span&gt; $newSizeInMB) {&lt;br /&gt;    $ci.TotalSize=$newSizeInMB&lt;br /&gt;    &lt;span style="color: #006080"&gt;"Size set to $newSizeInMB"&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;    &lt;span style="color: #006080"&gt;"Size $newSizeInMB already correct"&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;No line numbers, no container, alternating lines&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Set-SMSCacheSize&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([int]$newSizeInMB=2000)&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt; &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;$sms=new-object -com UIResource.UIResourceMgr&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;$ci=$sms.GetCacheInfo()&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($ci.TotalSize &lt;span style="color: #cc6633"&gt;-ne&lt;/span&gt; $newSizeInMB) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    $ci.TotalSize=$newSizeInMB&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size set to $newSizeInMB"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size $newSizeInMB already correct"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;No line numbers, container, alternating lines&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"&gt;&lt;br /&gt;&lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Set-SMSCacheSize&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([int]$newSizeInMB=2000)&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt; &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;$sms=new-object -com UIResource.UIResourceMgr&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;$ci=$sms.GetCacheInfo()&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($ci.TotalSize &lt;span style="color: #cc6633"&gt;-ne&lt;/span&gt; $newSizeInMB) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    $ci.TotalSize=$newSizeInMB&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size set to $newSizeInMB"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;    &lt;span style="color: #006080"&gt;"Size $newSizeInMB already correct"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-7990242661154120248?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/7990242661154120248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=7990242661154120248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/7990242661154120248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/7990242661154120248'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/02/code-snippet-plugin-for-windows-live.html' title='Code Snippet plugin for Windows Live Writer'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-6106294832332936365</id><published>2008-02-13T07:10:00.001-08:00</published><updated>2008-02-13T07:10:43.061-08:00</updated><title type='text'>test3</title><content type='html'>&lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;# Format SDDL strings in a more readable format&lt;/span&gt;&lt;br /&gt;&lt;span class="rem"&gt;# If -TranslateSid is present, Sids will be translated to their account equivalent&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;param&lt;/span&gt;([&lt;span class="kwrd"&gt;switch&lt;/span&gt;]$translateSid)&lt;br /&gt;&lt;span class="kwrd"&gt;process&lt;/span&gt; {&lt;br /&gt;    $sddl=$_&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($sddl &lt;span class="preproc"&gt;-is&lt;/span&gt; [string]) {&lt;br /&gt;        &lt;span class="rem"&gt;# Simply use the value&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="kwrd"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span class="rem"&gt;# If input is any thing else, pick up SDDL property&lt;/span&gt;&lt;br /&gt;        &lt;span class="rem"&gt;# This makes it possible to pipe in the output from Get-Acl or Select&lt;/span&gt;&lt;br /&gt;        $sddl=$_.sddl&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed before G: D: or S: blocks&lt;/span&gt;&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed and indent values in ()&lt;/span&gt;&lt;br /&gt;    $sddl=$sddl -replace &lt;span class="str"&gt;"([GDS]):"&lt;/span&gt;,&lt;span class="str"&gt;"`n`$1:"&lt;/span&gt; -replace &lt;span class="str"&gt;"(\([^\)]+\))"&lt;/span&gt;,&lt;span class="str"&gt;"`n   `$1"&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($translateSid.isPresent) {&lt;br /&gt;        &lt;span class="rem"&gt;# Match all SIDs and translate them to NTAccount format&lt;/span&gt;&lt;br /&gt;        [regex]::Matches($sddl,&lt;span class="str"&gt;"(S(-\d+){2,8})"&lt;/span&gt;) | sort index -desc | % {&lt;br /&gt;            &lt;span class="rem"&gt;# Save value in case translatation fails&lt;/span&gt;&lt;br /&gt;            $name=$_.value&lt;br /&gt;            $sid=[system.security.principal.securityidentifier] $name&lt;br /&gt;            &lt;span class="rem"&gt;# Remove matched value&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.remove($_.index,$_.length)&lt;br /&gt;            &lt;span class="rem"&gt;# Translate, suppress non-translatable exception&lt;/span&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;trap&lt;/span&gt; [System.Management.Automation.MethodInvocationException] {&lt;span class="kwrd"&gt;continue&lt;/span&gt;} `&lt;br /&gt;                $name=$sid.Translate([system.security.principal.ntaccount])&lt;br /&gt;            &lt;span class="rem"&gt;# Insert translated name&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.insert($_.index,$name)&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    $sddl&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;# Format SDDL strings in a more readable format&lt;/span&gt;&lt;br /&gt;&lt;span class="rem"&gt;# If -TranslateSid is present, Sids will be translated to their account equivalent&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;param&lt;/span&gt;([&lt;span class="kwrd"&gt;switch&lt;/span&gt;]$translateSid)&lt;br /&gt;&lt;span class="kwrd"&gt;process&lt;/span&gt; {&lt;br /&gt;    $sddl=$_&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($sddl &lt;span class="preproc"&gt;-is&lt;/span&gt; [string]) {&lt;br /&gt;        &lt;span class="rem"&gt;# Simply use the value&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="kwrd"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span class="rem"&gt;# If input is any thing else, pick up SDDL property&lt;/span&gt;&lt;br /&gt;        &lt;span class="rem"&gt;# This makes it possible to pipe in the output from Get-Acl or Select&lt;/span&gt;&lt;br /&gt;        $sddl=$_.sddl&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed before G: D: or S: blocks&lt;/span&gt;&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed and indent values in ()&lt;/span&gt;&lt;br /&gt;    $sddl=$sddl -replace &lt;span class="str"&gt;"([GDS]):"&lt;/span&gt;,&lt;span class="str"&gt;"`n`$1:"&lt;/span&gt; -replace &lt;span class="str"&gt;"(\([^\)]+\))"&lt;/span&gt;,&lt;span class="str"&gt;"`n   `$1"&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($translateSid.isPresent) {&lt;br /&gt;        &lt;span class="rem"&gt;# Match all SIDs and translate them to NTAccount format&lt;/span&gt;&lt;br /&gt;        [regex]::Matches($sddl,&lt;span class="str"&gt;"(S(-\d+){2,8})"&lt;/span&gt;) | sort index -desc | % {&lt;br /&gt;            &lt;span class="rem"&gt;# Save value in case translatation fails&lt;/span&gt;&lt;br /&gt;            $name=$_.value&lt;br /&gt;            $sid=[system.security.principal.securityidentifier] $name&lt;br /&gt;            &lt;span class="rem"&gt;# Remove matched value&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.remove($_.index,$_.length)&lt;br /&gt;            &lt;span class="rem"&gt;# Translate, suppress non-translatable exception&lt;/span&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;trap&lt;/span&gt; [System.Management.Automation.MethodInvocationException] {&lt;span class="kwrd"&gt;continue&lt;/span&gt;} `&lt;br /&gt;                $name=$sid.Translate([system.security.principal.ntaccount])&lt;br /&gt;            &lt;span class="rem"&gt;# Insert translated name&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.insert($_.index,$name)&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    $sddl&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-6106294832332936365?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/6106294832332936365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=6106294832332936365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/6106294832332936365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/6106294832332936365'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/02/test3.html' title='test3'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-1032885252610693999</id><published>2008-02-13T07:09:00.001-08:00</published><updated>2008-02-13T07:09:59.372-08:00</updated><title type='text'>test2</title><content type='html'>&lt;div&gt; &lt;div class="csharpcode"&gt;&lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;# Format SDDL strings in a more readable format&lt;/span&gt;&lt;br /&gt;&lt;span class="rem"&gt;# If -TranslateSid is present, Sids will be translated to their account equivalent&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;param&lt;/span&gt;([&lt;span class="kwrd"&gt;switch&lt;/span&gt;]$translateSid)&lt;br /&gt;&lt;span class="kwrd"&gt;process&lt;/span&gt; {&lt;br /&gt;    $sddl=$_&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($sddl &lt;span class="preproc"&gt;-is&lt;/span&gt; [string]) {&lt;br /&gt;        &lt;span class="rem"&gt;# Simply use the value&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="kwrd"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span class="rem"&gt;# If input is any thing else, pick up SDDL property&lt;/span&gt;&lt;br /&gt;        &lt;span class="rem"&gt;# This makes it possible to pipe in the output from Get-Acl or Select&lt;/span&gt;&lt;br /&gt;        $sddl=$_.sddl&lt;br /&gt;    }&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed before G: D: or S: blocks&lt;/span&gt;&lt;br /&gt;    &lt;span class="rem"&gt;# Insert linefeed and indent values in ()&lt;/span&gt;&lt;br /&gt;    $sddl=$sddl -replace &lt;span class="str"&gt;"([GDS]):"&lt;/span&gt;,&lt;span class="str"&gt;"`n`$1:"&lt;/span&gt; -replace &lt;span class="str"&gt;"(\([^\)]+\))"&lt;/span&gt;,&lt;span class="str"&gt;"`n   `$1"&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;if&lt;/span&gt; ($translateSid.isPresent) {&lt;br /&gt;        &lt;span class="rem"&gt;# Match all SIDs and translate them to NTAccount format&lt;/span&gt;&lt;br /&gt;        [regex]::Matches($sddl,&lt;span class="str"&gt;"(S(-\d+){2,8})"&lt;/span&gt;) | sort index -desc | % {&lt;br /&gt;            &lt;span class="rem"&gt;# Save value in case translatation fails&lt;/span&gt;&lt;br /&gt;            $name=$_.value&lt;br /&gt;            $sid=[system.security.principal.securityidentifier] $name&lt;br /&gt;            &lt;span class="rem"&gt;# Remove matched value&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.remove($_.index,$_.length)&lt;br /&gt;            &lt;span class="rem"&gt;# Translate, suppress non-translatable exception&lt;/span&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;trap&lt;/span&gt; [System.Management.Automation.MethodInvocationException] {&lt;span class="kwrd"&gt;continue&lt;/span&gt;} `&lt;br /&gt;                $name=$sid.Translate([system.security.principal.ntaccount])&lt;br /&gt;            &lt;span class="rem"&gt;# Insert translated name&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.insert($_.index,$name)&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    $sddl&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-1032885252610693999?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/1032885252610693999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=1032885252610693999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1032885252610693999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1032885252610693999'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/02/test2.html' title='test2'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-5029582068678406763</id><published>2008-02-13T06:55:00.001-08:00</published><updated>2008-02-13T06:55:52.513-08:00</updated><title type='text'>test ps</title><content type='html'>&lt;p&gt;&lt;/p&gt; &lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4"&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Format SDDL strings in a more readable format&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #008000"&gt;# If -TranslateSid is present, Sids will be translated to their account equivalent&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([&lt;span style="color: #0000ff"&gt;switch&lt;/span&gt;]$translateSid)&lt;br /&gt;&lt;span style="color: #0000ff"&gt;process&lt;/span&gt; {&lt;br /&gt;    $sddl=$_&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($sddl &lt;span style="color: #cc6633"&gt;-is&lt;/span&gt; [string]) {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# Simply use the value&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# If input is any thing else, pick up SDDL property&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: #008000"&gt;# This makes it possible to pipe in the output from Get-Acl or Select&lt;/span&gt;&lt;br /&gt;        $sddl=$_.sddl&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #008000"&gt;# Insert linefeed before G: D: or S: blocks&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: #008000"&gt;# Insert linefeed and indent values in ()&lt;/span&gt;&lt;br /&gt;    $sddl=$sddl -replace &lt;span style="color: #006080"&gt;"([GDS]):"&lt;/span&gt;,&lt;span style="color: #006080"&gt;"`n`$1:"&lt;/span&gt; -replace &lt;span style="color: #006080"&gt;"(\([^\)]+\))"&lt;/span&gt;,&lt;span style="color: #006080"&gt;"`n   `$1"&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($translateSid.isPresent) {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# Match all SIDs and translate them to NTAccount format&lt;/span&gt;&lt;br /&gt;        [regex]::Matches($sddl,&lt;span style="color: #006080"&gt;"(S(-\d+){2,8})"&lt;/span&gt;) | sort index -desc | % {&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Save value in case translatation fails&lt;/span&gt;&lt;br /&gt;            $name=$_.value&lt;br /&gt;            $sid=[system.security.principal.securityidentifier] $name&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Remove matched value&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.remove($_.index,$_.length)&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Translate, suppress non-translatable exception&lt;/span&gt;&lt;br /&gt;            &lt;span style="color: #0000ff"&gt;trap&lt;/span&gt; [System.Management.Automation.MethodInvocationException] {&lt;span style="color: #0000ff"&gt;continue&lt;/span&gt;} `&lt;br /&gt;                $name=$sid.Translate([system.security.principal.ntaccount])&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Insert translated name&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.insert($_.index,$name)&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    $sddl&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #008000"&gt;# Format SDDL strings in a more readable format&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #008000"&gt;# If -TranslateSid is present, Sids will be translated to their account equivalent&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #0000ff"&gt;param&lt;/span&gt;([&lt;span style="color: #0000ff"&gt;switch&lt;/span&gt;]$translateSid)&lt;br /&gt;&lt;span style="color: #0000ff"&gt;process&lt;/span&gt; {&lt;br /&gt;    $sddl=$_&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($sddl &lt;span style="color: #cc6633"&gt;-is&lt;/span&gt; [string]) {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# Simply use the value&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;else&lt;/span&gt; {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# If input is any thing else, pick up SDDL property&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: #008000"&gt;# This makes it possible to pipe in the output from Get-Acl or Select&lt;/span&gt;&lt;br /&gt;        $sddl=$_.sddl&lt;br /&gt;    }&lt;br /&gt;    &lt;span style="color: #008000"&gt;# Insert linefeed before G: D: or S: blocks&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: #008000"&gt;# Insert linefeed and indent values in ()&lt;/span&gt;&lt;br /&gt;    $sddl=$sddl -replace &lt;span style="color: #006080"&gt;"([GDS]):"&lt;/span&gt;,&lt;span style="color: #006080"&gt;"`n`$1:"&lt;/span&gt; -replace &lt;span style="color: #006080"&gt;"(\([^\)]+\))"&lt;/span&gt;,&lt;span style="color: #006080"&gt;"`n   `$1"&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: #0000ff"&gt;if&lt;/span&gt; ($translateSid.isPresent) {&lt;br /&gt;        &lt;span style="color: #008000"&gt;# Match all SIDs and translate them to NTAccount format&lt;/span&gt;&lt;br /&gt;        [regex]::Matches($sddl,&lt;span style="color: #006080"&gt;"(S(-\d+){2,8})"&lt;/span&gt;) | sort index -desc | % {&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Save value in case translatation fails&lt;/span&gt;&lt;br /&gt;            $name=$_.value&lt;br /&gt;            $sid=[system.security.principal.securityidentifier] $name&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Remove matched value&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.remove($_.index,$_.length)&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Translate, suppress non-translatable exception&lt;/span&gt;&lt;br /&gt;            &lt;span style="color: #0000ff"&gt;trap&lt;/span&gt; [System.Management.Automation.MethodInvocationException] {&lt;span style="color: #0000ff"&gt;continue&lt;/span&gt;} `&lt;br /&gt;                $name=$sid.Translate([system.security.principal.ntaccount])&lt;br /&gt;            &lt;span style="color: #008000"&gt;# Insert translated name&lt;/span&gt;&lt;br /&gt;            $sddl=$sddl.insert($_.index,$name)&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    $sddl&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-5029582068678406763?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/5029582068678406763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=5029582068678406763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/5029582068678406763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/5029582068678406763'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2008/02/test-ps.html' title='test ps'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-3449059807209839856</id><published>2007-11-07T12:36:00.001-08:00</published><updated>2007-11-07T12:36:48.958-08:00</updated><title type='text'>Live Writer er fed</title><content type='html'>&lt;p&gt;For nu kan jeg gøre lige det jeg vil, direkte - uden at skulle fedte rundt med bloggers interface.&lt;/p&gt; &lt;p&gt;Er lille snip&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh3.google.com/per.l14.dk/RzIh3AegKlI/AAAAAAAAACU/IitjzUZ5ZwQ/image%5B3%5D"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="141" alt="image" src="http://lh3.google.com/per.l14.dk/RzIh4AegKmI/AAAAAAAAACc/CIpyYDXCJBc/image_thumb%5B1%5D" width="660" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier"&gt;if { $blah -eq "snot") {&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font face="Courier"&gt;"hej"&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font face="Courier"&gt;}&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-3449059807209839856?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/3449059807209839856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=3449059807209839856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/3449059807209839856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/3449059807209839856'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/11/live-writer-er-fed.html' title='Live Writer er fed'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-8816326680977648712</id><published>2007-11-07T12:29:00.001-08:00</published><updated>2007-11-07T12:31:42.681-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='test'/><title type='text'>Blah blah blah blahb</title><content type='html'>&lt;p&gt;fsdalkjfja sdaklfjfj &lt;a href="http://lh5.google.com/per.l14.dk/RzIgDgegKjI/AAAAAAAAACE/XuMkPXEsDCE/PO-small%5B1%5D%5B2%5D"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="119" alt="PO-small[1]" src="http://lh3.google.com/per.l14.dk/RzIgEAegKkI/AAAAAAAAACM/jLIuhYbLAII/PO-small%5B1%5D_thumb" width="89" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;sadkfjasdfsd&lt;/p&gt; &lt;ul&gt; &lt;li&gt;fdsaklfjsd fsdaf&lt;/li&gt; &lt;li&gt;sadfjfkfjdas&lt;/li&gt; &lt;li&gt;sadfjfk&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;fsakdjfj&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;div id="mainClm"&gt; &lt;div class="blogPost"&gt; &lt;div style="white-space: nowrap"&gt;&lt;pre&gt;&lt;span style="color: blue"&gt;param&lt;/span&gt;(&lt;span style="color: darkblue"&gt;[switch]&lt;/span&gt;$basename)&lt;br&gt;$files=dir $(&lt;span style="color: gray"&gt;Get-VirtualGuestDirectories&lt;/span&gt;) *.vmc -recurse&lt;br&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; ($basename.isPresent) {&lt;br&gt;	$files | % { &lt;span style="color: blue"&gt;$_&lt;/span&gt;.name -replace &lt;span style="color: maroon"&gt;"$($_.extension)`$"&lt;/span&gt;,&lt;span style="color: maroon"&gt;""&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;span style="color: blue"&gt;else&lt;/span&gt; {&lt;br&gt;	$files&lt;br&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre&gt;([switch]$basename)&lt;br&gt;$files=dir $(Get-VirtualGuestDirectories) *.vmc -recurse&lt;br&gt;if ($basename.isPresent) {&lt;br&gt;	$files | % { $_.name -replace "$($_.extension)`$",""}&lt;br&gt;}&lt;br&gt;else {&lt;br&gt;	$files&lt;br&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;07\Library\test2.queue\Queue.Lock&lt;br&gt;E: Performing operation "Set Content" on Target "Path: C:\Users\po\Documents\Kunder\AP&lt;br&gt;07\Library\test2.queue\QueueItem_20071107152747.xml".&lt;br&gt; Remove-FileBasedLock: Closing C:\Users\po\AppData\Local\Temp\test.test&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt; $sb&lt;br&gt;{$_}&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt; $sb | add-queueitem test2.queue&lt;br&gt; Get-FileBasedLock: OpenOrCreate C:\Users\po\Documents\Kunder\APMM\LCS\test&lt;br&gt;07\Library\test2.queue\Queue.Lock&lt;br&gt;E: Performing operation "Set Content" on Target "Path: C:\Users\po\Documents\Kunder\AP&lt;br&gt;07\Library\test2.queue\QueueItem_20071107152821.xml".&lt;br&gt; Remove-FileBasedLock: Closing C:\Users\po\AppData\Local\Temp\test.test&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt; tp ..\New-LCSAce.ps1&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt;&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt;&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt;&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt;&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt; tp ..\Compare-ADWithLCS.ps1&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107\Library&amp;gt; cd ..&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107&amp;gt; copy .\Compare-ADWithLCS.ps1 Process-LCSItem.ps1&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107&amp;gt; tp .\Process-LCSItem.ps1&lt;br&gt;ocs\Kunder\APMM\LCS\test 20071107&amp;gt; cd .\Library&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;table cellspacing="0" cellpadding="2" width="400" border="1"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign="top" width="200"&gt;fsd&lt;/td&gt;&lt;br /&gt;&lt;td valign="top" width="200"&gt;fdsafsadfsafadsfsadffsdfsdfsdfsdfs&lt;br&gt;fsda&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td valign="top" width="200"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;&lt;td valign="top" width="200"&gt;fsda&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-8816326680977648712?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/8816326680977648712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=8816326680977648712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/8816326680977648712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/8816326680977648712'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/11/po-small1.html' title='Blah blah blah blahb'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-1890781861003823363</id><published>2007-07-17T02:49:00.001-07:00</published><updated>2007-07-17T02:50:26.695-07:00</updated><title type='text'>ps color</title><content type='html'>&lt;div style="white-space:nowrap"&gt;&lt;pre&gt;&lt;span style=' color: Blue;'&gt;param&lt;/span&gt;(&lt;span style=' color: DarkBlue;'&gt;[switch]&lt;/span&gt;$basename)&lt;br /&gt;$files=dir $(&lt;span style=' color: Gray;'&gt;Get-VirtualGuestDirectories&lt;/span&gt;) *.vmc -recurse&lt;br /&gt;&lt;span style=' color: Blue;'&gt;if&lt;/span&gt; ($basename.isPresent) {&lt;br /&gt;	$files | % { &lt;span style=' color: blue;'&gt;$_&lt;/span&gt;.name -replace &lt;span style=' color: Maroon;'&gt;"$($_.extension)`$"&lt;/span&gt;,&lt;span style=' color: Maroon;'&gt;""&lt;/span&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;span style=' color: Blue;'&gt;else&lt;/span&gt; {&lt;br /&gt;	$files&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-1890781861003823363?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/1890781861003823363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=1890781861003823363' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1890781861003823363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1890781861003823363'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/07/ps-color.html' title='ps color'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-2743104151060559653</id><published>2007-07-17T02:47:00.001-07:00</published><updated>2007-07-17T02:47:38.206-07:00</updated><title type='text'>powershell test</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;pre&gt;param([switch]$basename)&lt;br /&gt;$files=dir $(Get-VirtualGuestDirectories) *.vmc -recurse&lt;br /&gt;if ($basename.isPresent) {&lt;br /&gt;	$files | % { $_.name -replace "$($_.extension)`$",""}&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;	$files&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-2743104151060559653?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/2743104151060559653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=2743104151060559653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/2743104151060559653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/2743104151060559653'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/07/powershell-test.html' title='powershell test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-6022904580642124918</id><published>2007-07-17T02:44:00.001-07:00</published><updated>2007-07-17T02:46:12.210-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='test'/><title type='text'>Live Writer Beta 2 test</title><content type='html'>&lt;p&gt;&lt;font face="Lucida Console"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;Mode           LastWriteTime       Length Name&lt;br /&gt;----           -------------       ------ ----&lt;br /&gt;-a---    13-04-2007    23:14         1756 Invoke-Intellisense.ps1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;18 _docs\WindowsPowerShell&amp;gt; dir . *ele* -re&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Directory: Microsoft.PowerShell.Core\FileSystem::C:\Users\po\Documents\WindowsPowerShell\Library&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mode           LastWriteTime       Length Name&lt;br /&gt;----           -------------       ------ ----&lt;br /&gt;-a---    04-07-2007    23:32          103 Start-ElevatedProcess.ps1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Directory: Microsoft.PowerShell.Core\FileSystem::C:\Users\po\Documents\WindowsPowerShell\PersistedFunctions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mode           LastWriteTime       Length Name&lt;br /&gt;----           -------------       ------ ----&lt;br /&gt;-a---    19-12-2006    08:23          650 find-DriveLetter.ps1&lt;br /&gt;-a---    05-12-2006    08:27          627 find-DriveLetter.ps1.cs&lt;br /&gt;-a---    05-12-2006    08:27          627 find-DriveLetter.ps1.java&lt;br /&gt;-a---    05-12-2006    08:27          627 find-DriveLetter.ps1.js&lt;br /&gt;-a---    05-12-2006    08:27          627 find-DriveLetter.ps1.jsl&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-6022904580642124918?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/6022904580642124918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=6022904580642124918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/6022904580642124918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/6022904580642124918'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/07/live-writer-beta-2-test.html' title='Live Writer Beta 2 test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-284586025419476609</id><published>2007-04-27T05:10:00.001-07:00</published><updated>2007-04-27T05:10:56.581-07:00</updated><title type='text'>test2</title><content type='html'>&lt;p&gt;&lt;font face="Courier" size="2"&gt;if ($a -eq "sfd") {&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;"hi"&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;}&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;else {&lt;/font&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;"dshifds"&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;"wwwwwwww"&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier" size="2"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-284586025419476609?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/284586025419476609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=284586025419476609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/284586025419476609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/284586025419476609'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/04/test2.html' title='test2'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-1165237346738373804</id><published>2007-04-27T05:09:00.001-07:00</published><updated>2007-04-27T05:09:05.035-07:00</updated><title type='text'>test</title><content type='html'>&lt;p&gt;Dette er en nem test&lt;/p&gt; &lt;ul&gt; &lt;li&gt;a&lt;/li&gt; &lt;li&gt;dfasfdas&lt;/li&gt; &lt;li&gt;f&lt;/li&gt; &lt;li&gt;as&lt;/li&gt; &lt;li&gt;fdsf&lt;/li&gt; &lt;li&gt;da&lt;/li&gt; &lt;li&gt;afds&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;fasdfsadfsfsdfsad&lt;/p&gt; &lt;p&gt;f&lt;/p&gt; &lt;p&gt;sadf&lt;/p&gt; &lt;p&gt;sad&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-1165237346738373804?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/1165237346738373804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=1165237346738373804' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1165237346738373804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/1165237346738373804'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2007/04/test.html' title='test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-116617440927625412</id><published>2006-12-15T01:20:00.000-08:00</published><updated>2006-12-15T01:20:09.276-08:00</updated><title type='text'>This is another test</title><content type='html'>&lt;pre&gt;&lt;br /&gt;fjkasl fsakældfj sæaldkjf sadlæfklsadjfsldajfælsadfjls&lt;br /&gt;     fsajdfklsafjalk&lt;br /&gt;     fasjkdljafsdfsd&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;klfsja dlfj sajfælksad jflasflsjadfæljsælfsadfjkslad jfslajfæsl dfklsædfjsædalfsdafklsdjflksds  sdf sa fsda fsd fsda f sdaf sdf sag asdfg dfsa gafd a fs adf sdaf sdaf sda fsda fsd fsd af sf sdf sadf asf sad fsad fsa df asf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-116617440927625412?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/116617440927625412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=116617440927625412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617440927625412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617440927625412'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2006/12/this-is-another-test.html' title='This is another test'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-116617434050460200</id><published>2006-12-15T01:19:00.000-08:00</published><updated>2006-12-15T01:19:00.503-08:00</updated><title type='text'>l14.dk testjljjjlj lk</title><content type='html'>&lt;a href="http://l14dktest.blogspot.com/"&gt;l14.dk test&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-116617434050460200?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/116617434050460200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=116617434050460200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617434050460200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617434050460200'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2006/12/l14dk-testjljjjlj-lk.html' title='l14.dk testjljjjlj lk'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38056808.post-116617430073214192</id><published>2006-12-15T01:17:00.000-08:00</published><updated>2006-12-15T01:18:20.740-08:00</updated><title type='text'>vjkljlkjlkjsdlk</title><content type='html'>dfsklfjsdaklfjlæk&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38056808-116617430073214192?l=l14dktest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://l14dktest.blogspot.com/feeds/116617430073214192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38056808&amp;postID=116617430073214192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617430073214192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38056808/posts/default/116617430073214192'/><link rel='alternate' type='text/html' href='http://l14dktest.blogspot.com/2006/12/vjkljlkjlkjsdlk.html' title='vjkljlkjlkjsdlk'/><author><name>Per Østergaard</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.inceptio.dk/ImageHandler.ashx?UploadedFile=true&amp;pg=d455ffa4-b340-4be1-ac1d-d693743e7893&amp;image=~/App_Data/UserImages/Image/PO.jpg'/></author><thr:total>0</thr:total></entry></feed>
