<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hviidnet.com</title>
	<atom:link href="http://blog.hviidnet.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hviidnet.com</link>
	<description>Notes of a system administrator</description>
	<lastBuildDate>Sun, 09 Jan 2011 18:42:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Powershell pipes and eventlog</title>
		<link>http://blog.hviidnet.com/2010/06/powershell-pipes-and-eventlog/</link>
		<comments>http://blog.hviidnet.com/2010/06/powershell-pipes-and-eventlog/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 18:44:29 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Commandline Tips]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=150</guid>
		<description><![CDATA[Get-EventLog System &#124; Where-Object {$_.entrytype -like &#34;*rror&#34;} &#124; Where-Object {$_.Message -like &#34;*failed*&#34;}&#124; Select-Object message &#124; Export-Clixml c:\wee.xml &#160; make it a variable with $Results = Get-EventLog System &#124; Where-Object {$_.entrytype -like &#34;*rror&#34;} &#124; Where-Object {$_.Message -like &#34;*failed*&#34;}&#124; Select-Object message Related posts:Powershell: A simple RSS Reader Nice powershell snippets to do diffrent stuff


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/07/powershell-a-simple-rss-reader/' rel='bookmark' title='Permanent Link: Powershell: A simple RSS Reader'>Powershell: A simple RSS Reader</a></li>
<li><a href='http://blog.hviidnet.com/2008/07/nice-powershell-snippets-to-do-diffrent-stuff/' rel='bookmark' title='Permanent Link: Nice powershell snippets to do diffrent stuff'>Nice powershell snippets to do diffrent stuff</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="left">Get-EventLog System | Where-Object {$_.entrytype -like &quot;*rror&quot;} | Where-Object {$_.Message -like &quot;*failed*&quot;}| Select-Object message | Export-Clixml c:\wee.xml</p>
<p align="left">&#160;</p>
<p align="left">make it a variable with $Results = Get-EventLog System | Where-Object {$_.entrytype -like &quot;*rror&quot;} | Where-Object {$_.Message -like &quot;*failed*&quot;}| Select-Object message</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/07/powershell-a-simple-rss-reader/' rel='bookmark' title='Permanent Link: Powershell: A simple RSS Reader'>Powershell: A simple RSS Reader</a></li>
<li><a href='http://blog.hviidnet.com/2008/07/nice-powershell-snippets-to-do-diffrent-stuff/' rel='bookmark' title='Permanent Link: Nice powershell snippets to do diffrent stuff'>Nice powershell snippets to do diffrent stuff</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2010/06/powershell-pipes-and-eventlog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL Vpn With 2008 Server</title>
		<link>http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/</link>
		<comments>http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:26:07 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008 Server]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=147</guid>
		<description><![CDATA[Now-a-days, every business is mobile, which means a VPN connection is most likely needed.  The problem is when clients travel to hotels or other countries, where firewall compatiblity and configuration can cause connectivity issues.  Fortunately, there is an answer for this: SSL VPNs.  Since an SSL VPN connection is secure and allowed on almost all [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/securing-rdp-connections-with-certificates/' rel='bookmark' title='Permanent Link: Securing RDP connections with Certificates'>Securing RDP connections with Certificates</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/windows-server-2008-official-direct-download-links/' rel='bookmark' title='Permanent Link: Windows Server 2008 Official Direct Download Links'>Windows Server 2008 Official Direct Download Links</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Now-a-days, every business is mobile, which means a VPN connection is most likely needed.  The problem is when clients travel to hotels or other countries, where firewall compatiblity and configuration can cause connectivity issues.  Fortunately, there is an answer for this: SSL VPNs.  Since an SSL VPN connection is secure and allowed on almost all firewalls, remote users will have a much more reliable connection mechanism; no matter where they are.  To top it off, SSL VPN (SSTP) is a feature natively bundled with Windows Server 2008.</p>
<p>How does SSL VPNs help?</p>
<blockquote><p>* A NAT device doesn’t need to support PPTP in order for it to work.<br />
* Specific ports aren’t required to be open on the firewall (think hotels and other countries).<br />
* Connectivity can be made through web proxy servers.<br />
* The small footprint VPN client is easily accessible.</p></blockquote>
<p>Clients supported: Vista SP1+, Windows 7, Windows Server 2008</p>
<p>What are the high level steps involved to setting up Windows Server 2008 SSL VPN connections (SSTP)?</p>
<blockquote><p>* Obtain a certificate to be used for your connections (just as if you are installing an SSL certificate for your website)<br />
* Install IIS on the VPN server<br />
* Request a certificate for the VPN server using the IIS Certificate Request Wizard<br />
* Install the SSL certificate<br />
* Install the RRAS server role on the VPN server<br />
* Enable the RRAS Server and configure it to be a VPN server<br />
* Configure the User Account to allow dial-up connections<br />
* Update DNS (ie. vpn.company.com)<br />
* Configure the Client to use SSTP and Connect to the VPN Server using SSTP</p></blockquote>
<p>How-To configure Windows 2008 for SSTP VPN</p>
<blockquote><p>1.  Install IIS on VPN server with all security settings marked for installation<br />
2.  Create a Certificate Request in IIS console<br />
a.  Make sure common name is actual Internet Hostname clients will connect to (e.g. vpn.company.com)<br />
3.  Cut and Paste the certificate request into your SSL provider’s website<br />
4.  Install any Intermediary certificates and your SSL certificate per your SSL provider’s instructions (DO NOT bind the certificate to a website in IIS)<br />
5.  Install Routing and Remote Access<br />
6.  Load the Routing and Remote Access MMC and run the wizard to enable it (Select Custom -&gt; VPN if you are using only 1 NIC)<br />
8.  Enable Dial-In access for the remote user’s AD account<br />
9.  Enabled SSL connection (port 443) from the outside<br />
10. Update DNS for the domain with the common name of the certificate<br />
11. Test the SSL VPN connection by choosing SSTP in the vpn network connection properties</p>
<p>If the connection doesn’t work, make sure the proper certificate is bound following:</p></blockquote>
<blockquote><p>1.  Make sure the right certificate hash is bound (netsh http show  ssl)<br />
a. If necessary, delete and readd the correct certificate binding…<br />
1. Remove binding from IPv4 (netsh http delete ssl 0.0.0.0:443)<br />
2. Remove binding from IPv6 (netsh http delete ssl [::]:443)<br />
3. Delete registry entry for the hash (reg delete hklm\system\currentcontrolset\services\sstpsvc\parameters /v sha256certificatehash /f)<br />
4. Add binding from IPv4 (netsh http add sslcert ipport=0.0.0.0:443 certhash=&lt;replace with your cert hash&gt; appid={ba195980-cd49-458b-9e23-c84ee0adcd75} certstorename=MY)<br />
5. Add binding from IPv6 (netsh http add sslcert ipport=[::]:443 certhash=&lt;replace with your cert hash&gt; appid={ba195980-cd49-458b-9e23-c84ee0adcd75} certstorename=MY)</p></blockquote>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/securing-rdp-connections-with-certificates/' rel='bookmark' title='Permanent Link: Securing RDP connections with Certificates'>Securing RDP connections with Certificates</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/windows-server-2008-official-direct-download-links/' rel='bookmark' title='Permanent Link: Windows Server 2008 Official Direct Download Links'>Windows Server 2008 Official Direct Download Links</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tired of dual space in office 2007/2010?</title>
		<link>http://blog.hviidnet.com/2010/01/tired-of-dual-space-in-office-20072010/</link>
		<comments>http://blog.hviidnet.com/2010/01/tired-of-dual-space-in-office-20072010/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 08:56:30 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Programs]]></category>
		<category><![CDATA[line spacing]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=143</guid>
		<description><![CDATA[Then look here! Go to C:\Users\jakob\AppData\Roaming\Microsoft\Templates where jakob is the name of your account. Edit the Normal.dotm with word. In here you will see the following screen: Set spacing before and after to 0 pt. (or single spacing) And add dont add space between paragraphs of the same style. Save the file as a doc1.dotm [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/03/microsoft-office-2007-sp1-installation-slipstream-guide/' rel='bookmark' title='Permanent Link: Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide'>Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Then look here!</p>
<p>Go to C:\Users\jakob\AppData\Roaming\Microsoft\Templates where jakob is the name of your account.</p>
<p>Edit the Normal.dotm with word.</p>
<p><a href="http://blog.hviidnet.com/wp-content/uploads/2010/01/findOption.png"><img class="size-full wp-image-144 alignnone" title="findOption" src="http://blog.hviidnet.com/wp-content/uploads/2010/01/findOption.png" alt="" width="464" height="298" /></a></p>
<p>In here you will see the following screen:</p>
<p><a href="http://blog.hviidnet.com/wp-content/uploads/2010/01/findOption.png"></a><a href="http://blog.hviidnet.com/wp-content/uploads/2010/01/LineSpacingOptions.png"><img class="size-full wp-image-145 alignnone" title="LineSpacingOptions" src="http://blog.hviidnet.com/wp-content/uploads/2010/01/LineSpacingOptions.png" alt="" width="402" height="550" /></a></p>
<p>Set spacing before and after to 0 pt. (or single spacing) And add dont add space between paragraphs of the same style.</p>
<p>Save the file as a doc1.dotm</p>
<p>Rename the old Normal.dotm to Normal.dotm.old</p>
<p>Rename doc1.dotm to Normal.dotm</p>
<p>Youre done!</p>
<p><img src="file:///C:/Users/jakob/AppData/Local/Temp/moz-screenshot.png" alt="" /></p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/03/microsoft-office-2007-sp1-installation-slipstream-guide/' rel='bookmark' title='Permanent Link: Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide'>Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2010/01/tired-of-dual-space-in-office-20072010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OVF and OVA deployment on vSphere</title>
		<link>http://blog.hviidnet.com/2010/01/ovf-and-ova-deployment-on-vsphere/</link>
		<comments>http://blog.hviidnet.com/2010/01/ovf-and-ova-deployment-on-vsphere/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 04:19:03 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ova]]></category>
		<category><![CDATA[ovf]]></category>
		<category><![CDATA[provision]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=134</guid>
		<description><![CDATA[Download ovf tool from here. Install it and add it to your Path variable. make image from vsphere. ovftool.exe -tt=OVF vi://user:password@vm01.hviidnet.com/MachineName c:\TemplateName.ovf ovftool.exe -tt=OVA vi://user:password@vm01.hviidnet.com/MachineName c:\TemplateName.ova Provision image: ovftool.exe -nw="Network label ID" --diskMode=thin --name="New Virtual Machine Name" --powerOn --datastore="datastore1" c:\TemplateName.ovf vi://user:password@vm01.hviidnet.com And you're done. You can also script this if need be. Documentation can be [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/01/autologin-for-vistaand-others-with-a-password-protected-account/' rel='bookmark' title='Permanent Link: Autologin for Vista(and others) with a password protected account'>Autologin for Vista(and others) with a password protected account</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Download ovf tool from <a href="http://www.vmware.com/appliances/getting-started/learn/ovf.html" target="_blank">here</a>.</p>
<p>Install it and add it to your Path variable.</p>
<p>make image from vsphere.</p>
<blockquote><p>ovftool.exe -tt=OVF vi://user:password@vm01.hviidnet.com/MachineName c:\TemplateName.ovf<br />
ovftool.exe -tt=OVA vi://user:password@vm01.hviidnet.com/MachineName c:\TemplateName.ova</p></blockquote>
<p>Provision image:</p>
<blockquote><p>ovftool.exe -nw="Network label ID" --diskMode=thin --name="New Virtual Machine Name"  --powerOn --datastore="datastore1" c:\TemplateName.ovf vi://user:password@vm01.hviidnet.com</p></blockquote>
<p>And you're done.</p>
<p>You can also script this if need be.</p>
<p>Documentation can be found <a href="http://www.vmware.com/support/developer/ovf/ovf10/ovftool_10_userguide.pdf" target="_blank">here</a>.</p>
<p><img id="myFxSearchImg" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" alt="" width="24" height="24" /></p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/01/autologin-for-vistaand-others-with-a-password-protected-account/' rel='bookmark' title='Permanent Link: Autologin for Vista(and others) with a password protected account'>Autologin for Vista(and others) with a password protected account</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2010/01/ovf-and-ova-deployment-on-vsphere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding drivers to coldclone.iso (vmware converter)</title>
		<link>http://blog.hviidnet.com/2009/12/adding-drivers-to-coldclone-iso-vmware-converter/</link>
		<comments>http://blog.hviidnet.com/2009/12/adding-drivers-to-coldclone-iso-vmware-converter/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:07:02 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[coldclone.iso]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=108</guid>
		<description><![CDATA[Use the petool to add additional drivers to the VMware Converter Cold Clone ISO. Using the petool, run: * Storage Driver: petool.exe -i coldclone.iso -d "C:\Location_of_SCSI\DRIVER\" * NIC Driver: petool.exe -i coldclone.iso -n "C:\Location_of_NIC\DRIVER\" Note: The last folder in the path cannot be more than 8 characters, and is only capital letters or numbers. Consult [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/06/manually-install-vmware-converter/' rel='bookmark' title='Permanent Link: How to manually install VMware Converter'>How to manually install VMware Converter</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/compare-vmware-versions/' rel='bookmark' title='Permanent Link: Compare vmware versions'>Compare vmware versions</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/vmware-on-ubuntu-606-lts-network-subnet-notes/' rel='bookmark' title='Permanent Link: VMWARE on ubuntu 6.06 LTS Network subnet'>VMWARE on ubuntu 6.06 LTS Network subnet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Use the petool to add additional drivers to the VMware Converter Cold Clone ISO.</p>
<p>Using the petool, run:</p>
<p>    *<br />
      Storage Driver:  petool.exe -i coldclone.iso -d "C:\Location_of_SCSI\DRIVER\"<br />
    *<br />
      NIC Driver:  petool.exe -i coldclone.iso -n "C:\Location_of_NIC\DRIVER\"</p>
<p>Note: The last folder in the path cannot be more than 8 characters, and is only capital letters or numbers.</p>
<p>Consult with your hardware vendor for assistance in locating the correct driver to slipstream.</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/06/manually-install-vmware-converter/' rel='bookmark' title='Permanent Link: How to manually install VMware Converter'>How to manually install VMware Converter</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/compare-vmware-versions/' rel='bookmark' title='Permanent Link: Compare vmware versions'>Compare vmware versions</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/vmware-on-ubuntu-606-lts-network-subnet-notes/' rel='bookmark' title='Permanent Link: VMWARE on ubuntu 6.06 LTS Network subnet'>VMWARE on ubuntu 6.06 LTS Network subnet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/12/adding-drivers-to-coldclone-iso-vmware-converter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Check Ubuntu swap is allocated</title>
		<link>http://blog.hviidnet.com/2009/12/check-ubuntu-swap-is-allocated/</link>
		<comments>http://blog.hviidnet.com/2009/12/check-ubuntu-swap-is-allocated/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:06:24 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=111</guid>
		<description><![CDATA[swapon -s Checks what paths are currently accepted for swap No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<blockquote><p>swapon -s</p></blockquote>
<p>Checks what paths are currently accepted for swap</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/12/check-ubuntu-swap-is-allocated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu wrong disk size with DF</title>
		<link>http://blog.hviidnet.com/2009/12/ubuntu-wrong-disk-size-with-df/</link>
		<comments>http://blog.hviidnet.com/2009/12/ubuntu-wrong-disk-size-with-df/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:05:35 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ununtu]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=109</guid>
		<description><![CDATA[Is your linux reporting the wrong disk size after expanding the disk? get this: http://www.sysresccd.org/ 1. Boot you system with a CDROM/USB using any of the rescue linux or knoppix etc. I used sysresccd. 2. After boot up umount /dev/sda3 (just in case if it is mounted) 3. do a file system check Code: fsck [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/04/ubuntu-804-network-after-vmware-esx-3i-clone/' rel='bookmark' title='Permanent Link: Ubuntu 8.04 network after vmware ESX 3i clone'>Ubuntu 8.04 network after vmware ESX 3i clone</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/converting-vmware-server-images-to-esx-3i-server-images/' rel='bookmark' title='Permanent Link: Converting vmware server images to esx 3i server images'>Converting vmware server images to esx 3i server images</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Is your linux reporting the wrong disk size after expanding the disk?</p>
<p>get this: http://www.sysresccd.org/</p>
<p>1. Boot you system with a CDROM/USB using any of the rescue linux or knoppix etc. I used sysresccd.<br />
2. After boot up</p>
<blockquote><p>umount /dev/sda3 (just in case if it is mounted)</p></blockquote>
<p>3. do a file system check<br />
Code:</p>
<blockquote><p>fsck -n /dev/sda3</p></blockquote>
<p>Output shuld be</p>
<blockquote><p>/dev/sda3: clean, &gt;</p></blockquote>
<p>4.Removed the journal from /dev/sda3, this will make it an ext2 partition</p>
<blockquote><p>tune2fs -O ^has_journal /dev/sda3</p></blockquote>
<p>5. run</p>
<blockquote><p>e2fsck -f /dev/sda3</p></blockquote>
<p>6. resize the partition (with resize2fs without options takes your max size of the disk)</p>
<blockquote><p>resize2fs /dev/sda3</p></blockquote>
<p>7. Next run</p>
<blockquote><p>fsck -n /dev/sda3</p></blockquote>
<p>8. Create journal on /dev/sda3, this will turn sda3 to ext3 partition again<br />
Code:</p>
<blockquote><p>tune2fs -j /dev/sda3</p></blockquote>
<p>9. Reboot the system using your original OS</p>
<p><img id="myFxSearchImg" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" alt="" width="24" height="24" /></p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/04/ubuntu-804-network-after-vmware-esx-3i-clone/' rel='bookmark' title='Permanent Link: Ubuntu 8.04 network after vmware ESX 3i clone'>Ubuntu 8.04 network after vmware ESX 3i clone</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/converting-vmware-server-images-to-esx-3i-server-images/' rel='bookmark' title='Permanent Link: Converting vmware server images to esx 3i server images'>Converting vmware server images to esx 3i server images</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/12/ubuntu-wrong-disk-size-with-df/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Extract private key (.pem file) from .pfx</title>
		<link>http://blog.hviidnet.com/2009/09/extract-private-key-pem-file-from-pfx/</link>
		<comments>http://blog.hviidnet.com/2009/09/extract-private-key-pem-file-from-pfx/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 14:56:11 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=106</guid>
		<description><![CDATA[First download openssl from here (note this is the windows version) PFX : PFX defines a file format commonly used to store private with accompanying public key certificates, protected with a password-based symmetric key (standard-PKCS12). PEM : Openssl usages PEM (Privacy Enhanced Mail Certificate) to store the private key. Use the following commands to extract [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/ssl-certificate-csr-generation-instructions-apache-mod_ssl-openssl/' rel='bookmark' title='Permanent Link: SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL'>SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>First download openssl from <a href="http://www.slproweb.com/products/Win32OpenSSL.html">here</a> (note this is the windows version)</p>
<p>PFX : PFX defines a file format commonly used to store private with accompanying public key certificates, protected with a password-based symmetric key (standard-PKCS12).<br />
PEM : Openssl usages PEM (Privacy Enhanced Mail Certificate) to store the private key.</p>
<p>Use the following commands to extract the private key, and certificate.</p>
<p>If you want to extract private key from a pfx file and write it to PEM file</p>
<blockquote><p><span style="color: #3333ff;">openssl.exe pkcs12 -in publicAndprivate.pfx -nocerts -out privateKey.pem</span></p></blockquote>
<p>If you want to extract the certificate file (the signed public key) from the pfx file</p>
<blockquote><p><span style="color: #3333ff;">openssl.exe pkcs12 -in publicAndprivate.pfx -clcerts -nokeys -out publicCert.pem</span></p></blockquote>
<p>To remove the password from the private key file.</p>
<blockquote><p><span style="color: #3333ff;">openssl.exe rsa -in privateKey.pem -out private.pem</span></p></blockquote>
<p>This is required as, at the time of exporting privateKey, you have added a password to the private key to secure it. If you left the password with it, it will keep asking the password as any application tries to access it.</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/ssl-certificate-csr-generation-instructions-apache-mod_ssl-openssl/' rel='bookmark' title='Permanent Link: SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL'>SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/09/extract-private-key-pem-file-from-pfx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting timemachine to backup to NAS</title>
		<link>http://blog.hviidnet.com/2009/07/getting-timemachine-to-backup-to-nas/</link>
		<comments>http://blog.hviidnet.com/2009/07/getting-timemachine-to-backup-to-nas/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:21:29 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[timemachine]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=104</guid>
		<description><![CDATA[Some of us may own Network Attached Storage (NAS) devices, and/or may feel that an Apple Time Capsule is too expensive, and hence would rather buy a seperate router, NAS and Hard Disk Drives. This guide will help you to enable Time Machine on any NAS, allowing you to have the functionality of a Time [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/converting-vmware-server-images-to-esx-3i-server-images/' rel='bookmark' title='Permanent Link: Converting vmware server images to esx 3i server images'>Converting vmware server images to esx 3i server images</a></li>
<li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Some of us may own Network Attached Storage (NAS) devices, and/or may feel that an Apple Time Capsule is too expensive, and hence would rather buy a seperate router, NAS and Hard Disk Drives. This guide will help you to enable Time Machine on any NAS, allowing you to have the functionality of a Time Capsule, with hardware of your own choosing.</p>
<ol>
<li>Prepare your NAS. Make sure it is fully functioning. This mini-guide assumes you already have one that is functioning well, and you know how to manage it.</li>
<li>It would be preferable to assign your NAS a Static IP address. Check your router and NAS documentation for guidelines on how to do this.</li>
<li>In OS X, open up Terminal and enter the following command to enable Time Machine to work with your NAS: <strong><code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</code></strong></li>
<li>Log out of OS X and Log in again. You do not need to reboot your machine.</li>
<li>Time Machine saves backups in a very specific format, and we will use a sparsebundle to get this done. The sparsebundle name consists of <code>your Computername_MACaddress.sparsebundle</code>.</li>
<li>Find the MAC address of the machine’s internal Ethernet port with <strong><code>ifconfig en0 | grep ether | sed s/://g | sed s/ether// </code></strong> in Terminal. This will return one line of output, which is the MAC address for the Ethernet port, which will be a string of 14 hexadecimal characters (letters and numbers, for example, <em>001ec4b8f9b3</em>).   Even if the network backups will be done using a different port (e.g. AirPort: usually en1), the system will use the MAC address of en0 as part of the system identifier.</li>
<li>Make a new “sparsebundle” on a local disk (NOT the Time Machine disk!). This sparsebundle is a virtual filesystem image which we’ll copy to the NAS, and Time Machine will then access it remotely (that way Time Machine’s not limited by the filesystem features of whatever NAS it’s using: all the funky stuff happens within the sparsebundle). By default sparsebundles can keep growing until they fill up the NAS, but in this scenario we keep other things on the NAS as well as backups, and we’re going to limit the sparsebundle size to 70 GB.Enter the following command in Terminal:<br />
<code>sudo hdiutil create -size <span style="color: #ff0000;">70g</span> -type SPARSEBUNDLE -nospotlight -volname "<span style="color: #ff0000;">Backup of My Mac</span>" -fs "Case-sensitive Journaled HFS+" -verbose ./</code><span style="color: #ff0000;"><code>Computername_MACaddress</code></span>. This will create a 70GB sparse-bundle as a case-sensitive, journaled HFS+ without spotlight indexing. <span style="color: #ff0000;">Substitute variables in red for values you need. Computername_MACaddress may be in the form of “DansComputer_001ec4b8f9b3<br />
</span></li>
<li>Log into your NAS and create a user Account (Eg, “TimeMachine”). You may want to assign disk space quotas for this user if you need to.</li>
<li>On your NAS, create a shared folder (Eg, “TimeMachine”). Add the user account you created in step 8 above, and grant that user Read+Write privileges.</li>
<li>In Finder, select Go&gt;Connect to Server. For the server address, type <code>smb://TimeMachine@ip-address-of-nas/TimeMachine</code>. Click Connect and when prompted, enter the password and <span style="text-decoration: underline;">save in your keychain</span>.</li>
<li>Now copy your locally created sparsebundle into the TimeMachine share. If you did not change the folder when you entered command prompt, you may find this sparsebundle in your Home folder (/Users/yourusername).</li>
<li>On your NAS, check to see that the file is copied under the correct user account.</li>
<li>Open up Time Machine, select your “TimeMachine”-folder as the desired destination, and the backup will start.</li>
<li><em>Tip: For the first backup it is recommended to connect via LAN, as you will be able to get a throughput of 10-30MB/sec.</em></li>
<li>If your NAS allows for it, you may now hide your TimeMachine folder so they do not show up over the network share list.</li>
</ol>
<p>Hope this helps.</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/converting-vmware-server-images-to-esx-3i-server-images/' rel='bookmark' title='Permanent Link: Converting vmware server images to esx 3i server images'>Converting vmware server images to esx 3i server images</a></li>
<li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/07/getting-timemachine-to-backup-to-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2003 and pop3 timeouts</title>
		<link>http://blog.hviidnet.com/2009/07/exchange-2003-and-pop3-timeouts/</link>
		<comments>http://blog.hviidnet.com/2009/07/exchange-2003-and-pop3-timeouts/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 11:29:55 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=100</guid>
		<description><![CDATA[If you have a system where most users get timeouts on their pop3 accounts this might be the fix! Install and open wireshark (google wireshark) and set it to filter to only pop3 with this:  "tcp.port == 110" try to login to the pop3 server with telnet like this: telnet exchangeserver.com 110 user userwithproblem@exchangeserver.com pass [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/06/manually-install-vmware-converter/' rel='bookmark' title='Permanent Link: How to manually install VMware Converter'>How to manually install VMware Converter</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/how-to-enable-missing-sip-function-in-windows-messenger/' rel='bookmark' title='Permanent Link: How to enable missing SIP function in Windows Messenger'>How to enable missing SIP function in Windows Messenger</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have a system where most users get timeouts on their pop3 accounts this might be the fix!</p>
<p>Install and open wireshark (google wireshark) and set it to filter to only pop3 with this:  "tcp.port == 110"</p>
<p>try to login to the pop3 server with telnet like this:</p>
<blockquote><p>telnet exchangeserver.com 110</p>
<p>user userwithproblem@exchangeserver.com</p>
<p>pass testpassword</p>
<p>list</p>
<p>retr 1</p></blockquote>
<p>see if you dont get signoff  message in wireshark you might have this problem. Its detailed in <a href="http://support.microsoft.com/kb/816896">KB816896</a></p>
<p>Make this reg file:</p>
<blockquote><p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\POP3Svc\Parameters]<br />
"CheckPop3Tail"=dword:00000001</p></blockquote>
<p>(REMEMBER a return in the end or regedit wont eat the file is its supposed to)</p>
<p>Install the regfile, and restart the pop3 service.</p>
<p>Try and get your mail again.</p>
<p>Hope this helps someone out there <img src='http://blog.hviidnet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/06/manually-install-vmware-converter/' rel='bookmark' title='Permanent Link: How to manually install VMware Converter'>How to manually install VMware Converter</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/how-to-enable-missing-sip-function-in-windows-messenger/' rel='bookmark' title='Permanent Link: How to enable missing SIP function in Windows Messenger'>How to enable missing SIP function in Windows Messenger</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/07/exchange-2003-and-pop3-timeouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proftpd and TLS</title>
		<link>http://blog.hviidnet.com/2009/07/proftpd-and-tls/</link>
		<comments>http://blog.hviidnet.com/2009/07/proftpd-and-tls/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 14:34:44 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[ftpes]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=97</guid>
		<description><![CDATA[OpenSSL is needed by TLS; to install ProFTPd and OpenSSL, we simply run: apt-get install proftpd openssl You will be asked a question: Run proftpd: &#60;-- standalone Creating The SSL Certificate For TLS In order to use TLS, we must create an SSL certificate. I create it in /etc/proftpd/ssl, therefore I create that directory first: [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/ssl-certificate-csr-generation-instructions-apache-mod_ssl-openssl/' rel='bookmark' title='Permanent Link: SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL'>SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL</a></li>
<li><a href='http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/' rel='bookmark' title='Permanent Link: SSL Vpn With 2008 Server'>SSL Vpn With 2008 Server</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/installing-self-signed-certificates-on-nokia-s60-phones/' rel='bookmark' title='Permanent Link: Installing self signed Certificates on nokia s60 phones'>Installing self signed Certificates on nokia s60 phones</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>OpenSSL is needed by TLS; to install ProFTPd and OpenSSL, we simply run:</p>
<blockquote><p>apt-get install proftpd openssl</p></blockquote>
<p>You will be asked a question:</p>
<p>Run proftpd: &lt;-- standalone</p>
<p><strong>Creating The SSL Certificate For TLS</strong></p>
<p>In order to use TLS, we must create an SSL certificate. I create it in /etc/proftpd/ssl, therefore I create that directory first:</p>
<p>mkdir /etc/proftpd/ssl</p>
<p>Afterwards, we can generate the SSL certificate as follows:</p>
<blockquote><p>
openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem</p></blockquote>
<blockquote><p>Country Name (2 letter code) [AU]: &lt;-- Enter your Country Name (e.g., "DE").<br />
State or Province Name (full name) [Some-State]: &lt;-- Enter your State or Province Name.<br />
Locality Name (eg, city) []: &lt;-- Enter your City.<br />
Organization Name (eg, company) [Internet Widgits Pty Ltd]: &lt;-- Enter your Organization Name (e.g., the name of your company).<br />
Organizational Unit Name (eg, section) []: &lt;-- Enter your Organizational Unit Name (e.g. "IT Department").<br />
Common Name (eg, YOUR name) []: &lt;-- Enter the Fully Qualified Domain Name of the system (e.g. "server1.example.com").<br />
Email Address []: &lt;-- Enter your Email Address.<br />
4 Enabling TLS In ProFTPd</p></blockquote>
<p>In order to enable TLS in ProFTPd, open /etc/proftpd/proftpd.conf...</p>
<p>vi /etc/proftpd/proftpd.conf</p>
<p>... and uncomment the Include /etc/proftpd/tls.conf line:</p>
<blockquote><p>[...]<br />
#</p>
<p># This is used for FTPS connections<br />
#<br />
Include /etc/proftpd/tls.conf<br />
[...]</p></blockquote>
<p>Then open /etc/proftpd/tls.conf and make it look as follows:</p>
<blockquote><p>&lt;IfModule mod_tls.c&gt;<br />
TLSEngine                  on<br />
TLSLog                     /var/log/proftpd/tls.log<br />
TLSProtocol                SSLv23<br />
TLSOptions                 NoCertRequest<br />
TLSRSACertificateFile      /etc/proftpd/ssl/proftpd.cert.pem<br />
TLSRSACertificateKeyFile   /etc/proftpd/ssl/proftpd.key.pem<br />
TLSVerifyClient            off<br />
TLSRequired                on<br />
&lt;/IfModule&gt;</p></blockquote>
<p>If you use TLSRequired on, then only TLS connections are allowed (this locks out any users with old FTP clients that don't have TLS support); by commenting out that line or using TLSRequired off both TLS and non-TLS connections are allowed, depending on what the FTP client supports.</p>
<p>Restart ProFTPd afterwards:</p>
<blockquote><p>/etc/init.d/proftpd restart</p></blockquote>
<p>That's it. You can now try to connect using your FTP client; however, you should configure your FTP client to use TLS (this is a must if you use TLSRequired on) - see the next chapter how to do this with FileZilla.</p>
<p>If you're having problems with TLS, you can take a look at the TLS log file /var/log/proftpd/tls.log.</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/09/ssl-certificate-csr-generation-instructions-apache-mod_ssl-openssl/' rel='bookmark' title='Permanent Link: SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL'>SSL Certificate CSR Generation Instructions Apache + Mod_SSL + OpenSSL</a></li>
<li><a href='http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/' rel='bookmark' title='Permanent Link: SSL Vpn With 2008 Server'>SSL Vpn With 2008 Server</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/installing-self-signed-certificates-on-nokia-s60-phones/' rel='bookmark' title='Permanent Link: Installing self signed Certificates on nokia s60 phones'>Installing self signed Certificates on nokia s60 phones</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/07/proftpd-and-tls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growl, Prowl and our iPhone in a IT environment</title>
		<link>http://blog.hviidnet.com/2009/07/growl-prowl-and-our-iphone-in-a-it-environment/</link>
		<comments>http://blog.hviidnet.com/2009/07/growl-prowl-and-our-iphone-in-a-it-environment/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:32:31 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Code and Commandline]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[allert]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[prowl]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[pushnotifications]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=85</guid>
		<description><![CDATA[I found prowl in the itunes store the other day. It has some great features! after i got it to work i can now get push notifications on my iPhone if a server is down, or a service restarts, or a backup just failed! First, go get growl for windows here Then install it and [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I found prowl in the itunes store the other day. It has some great features! after i got it to work i can now get push notifications on my iPhone if a server is down, or a service restarts, or a backup just failed!</p>
<p>First, go get growl for windows <a href="http://www.growlforwindows.com/gfw/">here</a></p>
<p>Then install it and add your iPhone in "Network". For now set notification priority to all.</p>
<p>Go get <a href="http://www.growlforwindows.com/gfw/help/growlnotify.aspx">Growlnotify</a> and drop the contents in your windows folder.</p>
<p>Now go to your windows 2008 server event collector and add a task to run at a specific event. add something like this line:</p>
<blockquote><p>c:\windows\growlnotify.cmd /t:"{Topic}" "{Message to send}"</p>
<p>c:\windows\growlnotify /a:{NameOfApp} /r:{NotificationType} /n:{NotificationType} /t:{Topic} "{Message}"</p></blockquote>
<p>NOTE: The "" is changed by wordpress for some reason. Write them again manually or you will get a "bad arguments" error</p>
<p>The notification type is important as you can specify in growl if a specific notification type is EXTRA important and schould be send to your iphone or just another growl notification server.</p>
<p>And well... PANG you get push notifications on your iPhone <img src='http://blog.hviidnet.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (as long as you remember to install prowl first <img src='http://blog.hviidnet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  - You get that from the app store! )</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/07/growl-prowl-and-our-iphone-in-a-it-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>winrm and winrs a management tool for windows 2008</title>
		<link>http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/</link>
		<comments>http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:07:08 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Code and Commandline]]></category>
		<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Commandline]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=81</guid>
		<description><![CDATA[If you are using Windows 2008 Server, WinRM is installed but not enabled by default. This is a good security precaution. The easiest way to determine if WinRM is already enabled and started on your machine is to go to a CMD prompt and run: winrm enumerate winrm/config/listener If you get no response them WinRM [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/11/shutdown-iisreset-or-regedit-from-commandline-on-remote-host/' rel='bookmark' title='Permanent Link: Shutdown / iisreset or regedit from commandline on remote host'>Shutdown / iisreset or regedit from commandline on remote host</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/windows-server-2008-official-direct-download-links/' rel='bookmark' title='Permanent Link: Windows Server 2008 Official Direct Download Links'>Windows Server 2008 Official Direct Download Links</a></li>
<li><a href='http://blog.hviidnet.com/2009/01/exclude-vmware-virtual-adapters-from-vista2008-network-awareness-and-windows-firewall/' rel='bookmark' title='Permanent Link: Exclude VMware Virtual Adapters from Network Awareness'>Exclude VMware Virtual Adapters from Network Awareness</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you are using Windows 2008 Server, WinRM is installed but not enabled by default. This is a good security precaution. The easiest way to determine if WinRM is already enabled and started on your machine is to go to a CMD prompt and run:</p>
<blockquote><p>winrm enumerate winrm/config/listener</p></blockquote>
<p>If you get no response them WinRM is not running. To configure WinRM to start automatically and allow for remote access, use the winrm quickconfig command like this:</p>
<blockquote><p>C:\Users\Administrator&gt; winrm quickconfig<br />
WinRM is not set up to allow remote access to this machine for management.<br />
The following changes must be made:<br />
Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.<br />
Make these changes [y/n]? y<br />
WinRM has been updated for remote management.<br />
Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.<br />
C:\Users\Administrator&gt;</p></blockquote>
<p>Once I configured the quickconfig, I reran the enumeration command with these results:</p>
<blockquote><p>C:\Users\Administrator&gt; winrm e winrm/config/listener<br />
Listener<br />
Address = *<br />
Transport = HTTP<br />
Port = 80<br />
Hostname<br />
Enabled = true<br />
URLPrefix = wsman<br />
CertificateThumbprint<br />
ListeningOn = 10.253.15.98, 127.0.0.1, ::1, fe80::5efe:10.253.15.98%11, fe80::9583:2148:e1ef:6444%10<br />
C:\Users\Administrator</p></blockquote>
<p>From this, I know that WinRMis enabled.</p>
<p>Similar in operation to the former Sysinternals tool PSExec, WinRS leverages Windows Remote Management to let you launch processes on remote machines. Where it differs from PSExec is in its ability to easily pass through firewalls in the same way as WinRM. For example, if you want to discover IP information about a remote machine, you can remotely launch ipconfig with the -all switch on that machine using this syntax:</p>
<blockquote><p>winrs -r:{Remote Host} ipconfig -all</p></blockquote>
<p>Another handy use of WinRS can be when installing software on remote systems. If you want to quietly install an application using an MSI file onto a remote machine, use the following syntax. This syntax assumes the MSI file has already been deposited into the C:\ folder.</p>
<blockquote><p>winrs -r:{Remote Host} msiexec.exe /i c:\install.msi /quiet</p></blockquote>
<p>I have used this for other things as creating a centralised backup with windows backup (Windows 2008 only) and then ship the completion logs directly to the same server. Simply make a batch file containing all our severs like this:</p>
<blockquote><p>winrs -r:{Remote Host} wbadmin start backup -backupTarget:\\{Remote Host}\backup\weeknumber -include:C: -allCritical -vssFull -quiet</p></blockquote>
<p>hope you enjoy. Please leve a comment if you liked thic article</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/11/shutdown-iisreset-or-regedit-from-commandline-on-remote-host/' rel='bookmark' title='Permanent Link: Shutdown / iisreset or regedit from commandline on remote host'>Shutdown / iisreset or regedit from commandline on remote host</a></li>
<li><a href='http://blog.hviidnet.com/2008/09/windows-server-2008-official-direct-download-links/' rel='bookmark' title='Permanent Link: Windows Server 2008 Official Direct Download Links'>Windows Server 2008 Official Direct Download Links</a></li>
<li><a href='http://blog.hviidnet.com/2009/01/exclude-vmware-virtual-adapters-from-vista2008-network-awareness-and-windows-firewall/' rel='bookmark' title='Permanent Link: Exclude VMware Virtual Adapters from Network Awareness'>Exclude VMware Virtual Adapters from Network Awareness</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make full trust for shared configuration IIS7</title>
		<link>http://blog.hviidnet.com/2009/06/make-full-trust-for-shared-configuration-iis7/</link>
		<comments>http://blog.hviidnet.com/2009/06/make-full-trust-for-shared-configuration-iis7/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 11:58:46 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/make-full-trust-for-shared-configuration-iis7/</guid>
		<description><![CDATA[Navigate to the "C:\Windows\Microsoft.NET\Framework\v2.0.50727" folder with a command prompt (with elivated permissions) and run the following command: C:\Windows\Microsoft.NET\Framework\v2.0.50727&#62;caspol -m -ag 1. -url "file://\\1 0.0.0.2\Share\*" FullTrust Note this has to be done on each server! To read more about this command look here for more info about setup of the shared configuration take a look here [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/03/microsoft-office-2007-sp1-installation-slipstream-guide/' rel='bookmark' title='Permanent Link: Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide'>Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide</a></li>
<li><a href='http://blog.hviidnet.com/2008/12/rebuilding-the-wmi-repository/' rel='bookmark' title='Permanent Link: Rebuilding the WMI Repository'>Rebuilding the WMI Repository</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Navigate to the "C:\Windows\Microsoft.NET\Framework\v2.0.50727" folder with a command prompt (with elivated permissions) and run the following command:</p>
<blockquote><p>C:\Windows\Microsoft.NET\Framework\v2.0.50727&gt;caspol -m -ag 1.  -url "file://\\1<br />
0.0.0.2\Share\*" FullTrust</p></blockquote>
<p>Note this has to be done on each server!</p>
<p>To read more about this command look <a href="http://msdn.microsoft.com/en-us/library/cb6t8dtz.aspx">here</a></p>
<p>for more info about setup of the shared configuration take a look <a href="http://learn.iis.net/page.aspx/193/quick-guide-for-shared-hosting-deployment/">here</a></p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/03/microsoft-office-2007-sp1-installation-slipstream-guide/' rel='bookmark' title='Permanent Link: Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide'>Microsoft Office 2007 SP1 Installation &#038; Slipstream Guide</a></li>
<li><a href='http://blog.hviidnet.com/2008/12/rebuilding-the-wmi-repository/' rel='bookmark' title='Permanent Link: Rebuilding the WMI Repository'>Rebuilding the WMI Repository</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/06/make-full-trust-for-shared-configuration-iis7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux commands to test website speed</title>
		<link>http://blog.hviidnet.com/2009/06/linux-commands-that-do-good-stuff/</link>
		<comments>http://blog.hviidnet.com/2009/06/linux-commands-that-do-good-stuff/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:46:51 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/linux-commands-that-do-good-stuff/</guid>
		<description><![CDATA[ngrep -q 'HTTP Error 503' port 80 this command gets all trafic on eth0 and on port 80 that includes the line "HTTP Error 503" tcpdump -i eth0 gets tcp traffic on eth0 ulimit -n 300000 Sets the max numbers of open files ab -n 100000 -c 500  http://blog.hviidnet.com/ Benchmarks blog.hviidnet.com with 500 concurent connections [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<blockquote><p>ngrep -q 'HTTP Error 503' port 80</p></blockquote>
<p>this command gets all trafic on eth0 and on port 80 that includes the line "HTTP Error 503"</p>
<blockquote><p>tcpdump -i eth0</p></blockquote>
<p>gets tcp traffic on eth0</p>
<blockquote><p>ulimit -n 300000</p></blockquote>
<p>Sets the max numbers of open files</p>
<blockquote><p>ab -n 100000 -c 500  http://blog.hviidnet.com/</p></blockquote>
<p>Benchmarks blog.hviidnet.com with 500 concurent connections 100000 times.. (needs to have apache installed)</p>
<p><img id="myFxSearchImg" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" alt="" width="24" height="24" /></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/06/linux-commands-that-do-good-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use findstr with regular expression</title>
		<link>http://blog.hviidnet.com/2009/06/how-to-use-findstr-with-regular-expression/</link>
		<comments>http://blog.hviidnet.com/2009/06/how-to-use-findstr-with-regular-expression/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 10:31:48 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Commandline]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=69</guid>
		<description><![CDATA[By default findstr does the comparison with regular expression. However, what surprised me is that the following command does not work. findstr "abc&#124;def" test.txt when test.txt has only abc in it. According to the online tutorial such as http://www.regular-expressions.info/reference.html, abc&#124;efg should match abc. Why? The reason is pretty simple, findstr does not support the full [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/07/regex-notes/' rel='bookmark' title='Permanent Link: Regex Basics'>Regex Basics</a></li>
<li><a href='http://blog.hviidnet.com/2008/07/powershell-create-a-function/' rel='bookmark' title='Permanent Link: Powershell: Create a function'>Powershell: Create a function</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/' rel='bookmark' title='Permanent Link: Finding a string in alot of files from windows commandline'>Finding a string in alot of files from windows commandline</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default findstr does the comparison with regular expression. However, what surprised me is that the following command does not work.</p>
<p>findstr "abc|def" test.txt</p>
<p>when test.txt has only abc in it.</p>
<p>According to the online tutorial such as http://www.regular-expressions.info/reference.html, abc|efg should match abc. Why?</p>
<p>The reason is pretty simple, findstr does not support the full range of the regular expression. It does not support ?, {n}.</p>
<p>Some basic things works:</p>
<p>findstr "abc.*" test.txt</p>
<p>findstr "[0-9a-f].*" test.txt</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2008/07/regex-notes/' rel='bookmark' title='Permanent Link: Regex Basics'>Regex Basics</a></li>
<li><a href='http://blog.hviidnet.com/2008/07/powershell-create-a-function/' rel='bookmark' title='Permanent Link: Powershell: Create a function'>Powershell: Create a function</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/' rel='bookmark' title='Permanent Link: Finding a string in alot of files from windows commandline'>Finding a string in alot of files from windows commandline</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/06/how-to-use-findstr-with-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To kill a process from windows commandline</title>
		<link>http://blog.hviidnet.com/2009/05/to-kill-a-process-from-windows-commandline/</link>
		<comments>http://blog.hviidnet.com/2009/05/to-kill-a-process-from-windows-commandline/#comments</comments>
		<pubDate>Fri, 29 May 2009 08:48:50 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Code and Commandline]]></category>
		<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/to-kill-a-process-from-windows-commandline/</guid>
		<description><![CDATA[To terminate a process from the command line of windows, use the taskkill command: When you know the name of the image to stop: taskkill /IM notepad.exe Or when you know the process ID, eg 784: taskkill /PID 784 For more usage variants, type taskkill /? NB: some of this information about what processes are [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/05/list-all-processes-with-the-windows-command-line/' rel='bookmark' title='Permanent Link: List all processes with the Windows Command Line'>List all processes with the Windows Command Line</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/' rel='bookmark' title='Permanent Link: Finding a string in alot of files from windows commandline'>Finding a string in alot of files from windows commandline</a></li>
<li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To terminate a process from the command line of windows, use the taskkill command:<br />
When you know the name of the image to stop:</p>
<blockquote><p>
taskkill /IM notepad.exe</p></blockquote>
<p>Or when you know the process ID, eg 784:</p>
<blockquote><p>
taskkill /PID 784</p></blockquote>
<p>For more usage variants, type taskkill /?</p>
<p>NB: some of this information about what processes are running can be obtained by the tasklist command.</p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/05/list-all-processes-with-the-windows-command-line/' rel='bookmark' title='Permanent Link: List all processes with the Windows Command Line'>List all processes with the Windows Command Line</a></li>
<li><a href='http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/' rel='bookmark' title='Permanent Link: Finding a string in alot of files from windows commandline'>Finding a string in alot of files from windows commandline</a></li>
<li><a href='http://blog.hviidnet.com/2009/07/winrm-and-winrs-a-management-tool-for-windows-2008/' rel='bookmark' title='Permanent Link: winrm and winrs a management tool for windows 2008'>winrm and winrs a management tool for windows 2008</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/05/to-kill-a-process-from-windows-commandline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List all processes with the Windows Command Line</title>
		<link>http://blog.hviidnet.com/2009/05/list-all-processes-with-the-windows-command-line/</link>
		<comments>http://blog.hviidnet.com/2009/05/list-all-processes-with-the-windows-command-line/#comments</comments>
		<pubDate>Fri, 29 May 2009 08:48:18 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Code and Commandline]]></category>
		<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/list-all-processes-with-the-windows-command-line/</guid>
		<description><![CDATA[To view all the currently running processes in windows from the command line, you can use the command ‘tasklist’. The output will look something like this: c:\&#62;tasklist Image Name                     PID Session Name        Session#    Mem Usage ========================= ======== ================ =========== ============ System Idle Process              0 Services                   0         24 K System                           4 Services                   0     21.160 K smss.exe                       [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/05/to-kill-a-process-from-windows-commandline/' rel='bookmark' title='Permanent Link: To kill a process from windows commandline'>To kill a process from windows commandline</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To view all the currently running processes in windows from the command line, you can use the command ‘tasklist’. The output will look something like this:</p>
<blockquote><p>c:\&gt;tasklist</p></blockquote>
<blockquote><p>Image Name                     PID Session Name        Session#    Mem Usage<br />
========================= ======== ================ =========== ============<br />
System Idle Process              0 Services                   0         24 K<br />
System                           4 Services                   0     21.160 K<br />
smss.exe                       456 Services                   0        996 K<br />
csrss.exe                      584 Services                   0      8.276 K<br />
wininit.exe                    624 Services                   0      5.112 K<br />
csrss.exe                      644 Console                    1     15.304 K<br />
winlogon.exe                   684 Console                    1      7.308 K<br />
services.exe                   720 Services                   0      9.672 K<br />
lsass.exe                      736 Services                   0      2.300 K<br />
lsm.exe                        744 Services                   0      5.804 K<br />
svchost.exe                    900 Services                   0      8.700 K<br />
svchost.exe                    964 Services                   0     10.920 K<br />
svchost.exe                   1000 Services                   0     48.996 K<br />
svchost.exe                    360 Services                   0     18.344 K<br />
svchost.exe                    464 Services                   0    177.740 K</p></blockquote>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/05/to-kill-a-process-from-windows-commandline/' rel='bookmark' title='Permanent Link: To kill a process from windows commandline'>To kill a process from windows commandline</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/05/list-all-processes-with-the-windows-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a string in alot of files from windows commandline</title>
		<link>http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/</link>
		<comments>http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/#comments</comments>
		<pubDate>Fri, 29 May 2009 08:42:03 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Commandline Tips]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/?p=60</guid>
		<description><![CDATA[findstr can do alot of cool stuff. One of them is to emulate the grep command (still not up to the same hights but it will do for this purpose) Say we have alot of log files that notepad++ and others cant open because they are too big. Lets find what we need from commandline [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/06/how-to-use-findstr-with-regular-expression/' rel='bookmark' title='Permanent Link: How to use findstr with regular expression'>How to use findstr with regular expression</a></li>
<li><a href='http://blog.hviidnet.com/2009/04/how-to-search-wikipedia-google-or-yahoo-from-instant-search-box-in-windows-vista/' rel='bookmark' title='Permanent Link: How to Search Wiki or Google from Search Box in Windows Vista/7'>How to Search Wiki or Google from Search Box in Windows Vista/7</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/add-search-on-your-site-in-internet-explorer-search-bar/' rel='bookmark' title='Permanent Link: Add search on your site, in Internet Explorer search bar'>Add search on your site, in Internet Explorer search bar</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>findstr can do alot of cool stuff. One of them is to emulate the grep command (still not up to the same hights but it will do for this purpose)</p>
<p>Say we have alot of log files that notepad++ and others cant open because they are too big. Lets find what we need from commandline then.</p>
<blockquote><p>findstr /s /c:"string-im-looking-for" *</p></blockquote>
<p>Here we use /s to search in subdirectories, and the ending is * wich stands for wich files to search ( *.txt and so on)</p>
<p>The output will look something like this:</p>
<blockquote><p>test.txt:Where-is-the-string-im-looking-for?</p></blockquote>
<p>And just pipe that into a textfile and you have what you need. Example follows.</p>
<blockquote><p>findstr /s /c:"string-im-looking-for" * &gt; c:\results.txt</p></blockquote>
<p>Have fun finding strings that you need <img src='http://blog.hviidnet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2009/06/how-to-use-findstr-with-regular-expression/' rel='bookmark' title='Permanent Link: How to use findstr with regular expression'>How to use findstr with regular expression</a></li>
<li><a href='http://blog.hviidnet.com/2009/04/how-to-search-wikipedia-google-or-yahoo-from-instant-search-box-in-windows-vista/' rel='bookmark' title='Permanent Link: How to Search Wiki or Google from Search Box in Windows Vista/7'>How to Search Wiki or Google from Search Box in Windows Vista/7</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/add-search-on-your-site-in-internet-explorer-search-bar/' rel='bookmark' title='Permanent Link: Add search on your site, in Internet Explorer search bar'>Add search on your site, in Internet Explorer search bar</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/05/finding-a-string-in-alot-of-files-from-windows-commandline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing RDP connections with Certificates</title>
		<link>http://blog.hviidnet.com/2009/05/securing-rdp-connections-with-certificates/</link>
		<comments>http://blog.hviidnet.com/2009/05/securing-rdp-connections-with-certificates/#comments</comments>
		<pubDate>Mon, 25 May 2009 08:58:33 +0000</pubDate>
		<dc:creator>Jakob Hviid</dc:creator>
				<category><![CDATA[Terminal services]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[rdp]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.hviidnet.com/securing-rdp-connections-with-certificates/</guid>
		<description><![CDATA[I had been looking for this for a long time, and finally i found the solution. ALL credit for this article goes to: petri.co.il so if you have any questions go ask them there and be sure to thank them there and not in this thread They deserve it! When Microsoft Windows 2000 was released [...]


Related posts:<ol><li><a href='http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/' rel='bookmark' title='Permanent Link: SSL Vpn With 2008 Server'>SSL Vpn With 2008 Server</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/installing-self-signed-certificates-on-nokia-s60-phones/' rel='bookmark' title='Permanent Link: Installing self signed Certificates on nokia s60 phones'>Installing self signed Certificates on nokia s60 phones</a></li>
<li><a href='http://blog.hviidnet.com/2008/12/how-do-i-save-my-outlook-password/' rel='bookmark' title='Permanent Link: How do I save my Outlook Password?'>How do I save my Outlook Password?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had been looking for this for a long time, and finally i found the solution.</p>
<p><strong>ALL credit for this article goes to: <a title="http://www.petri.co.il/securing_rdp_communications.htm" href="http://www.petri.co.il/securing_rdp_communications.htm">petri.co.il </a>so if you have any questions go ask them there and be sure to thank them there and not in this thread <img src='http://blog.hviidnet.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  They deserve it!</strong><a title="http://www.petri.co.il/securing_rdp_communications.htm" href="http://www.petri.co.il/securing_rdp_communications.htm"><br />
</a></p>
<p>When Microsoft Windows 2000 was released many years ago, administrators were blessed with new functionality called Terminal Services which easily allowed remote administration of a server. The functionality or the concept was actually not new. Administrators of Windows operating systems as well as other platforms are plenty familiar with the concept of remote administration. For Windows and some many other platforms, remote administration was accomplished through the use of 3rd party tools which meant the purchase of an extra remote administration tool license for every server that is deployed. While the licensing costs generally weren’t terrible, especially for what is gained in return (ease of remote administration, working from home in your pajamas while smoking a cigar like I’m doing now), the costs could add up quickly for infrastructures with large numbers of servers to remotely administrate. What was new, however, was that Windows 2000 introduced a remote administration tool that was built into the OS with no bolt-on licensing costs needed. The tool was called Terminal Services and other than a few minor quirks that it had such as software installation problems in Terminal Services, drive letters not dynamically added/removed without a logoff/logon, not a true console0, etc., it was a God send and still is to this day.</p>
<p>The release of Windows XP brought us an overhauled remote administration tool. The Terminal Services client was still a viable tool but the version in Windows XP called Remote Desktop Connection was, well, cooler. In typical Microsoft fashion, the new tool brought with it some added functionality to make administrator’s lives even easier.</p>
<p>Fast forward to the year 2006. A new version of the Remote Desktop Connection (5.2) had been released for download from Microsoft which added the ability for more secure communications. Then finally Windows Server 2003 Service Pack 1 was released which delivered a slightly updated version of the tool (5.2.3790.1830) which allows the initiating client to require secure communication with a remote server which is what I wanted to write about a little today. Today we live in a world where security is held in much higher regard. Sure it was talked about in the 1990s and for those who are old school certification nuts, you probably even got a few exam questions on security way back when, but today with the events of 9/11, terrorists, internet availability and anonymity, wireless networks, and computer hacking, maintaining a secure network has really come to the forefront as a hot topic. This writing will showcase a method to securing communications between a server and a client using the Remote Desktop Connection and the Remote Desktop Protocol (RDP).</p>
<p>In the example that follows, we will have a Windows client named client.contoso.com and a server named server.contoso.com which is running Windows Server 2003 SP1. Neither machine is a member of a domain; both are running as members of a workgroup. Our example will make use of digitally signed certificates using with server.contoso.com being a stand alone root CA. In a practical environment, not every server that you RDP to needs to be running a CA, in fact, most servers won’t be running a CA, but since we only have two machines in our example, I chose the server to run the CA services. In your environment, you may already have a stand-alone or enterprise CA. Either can be used to issue certificates to the machines in which you wish to establish a secure RDP session with. It is assumed that by this point, you already have a CA in place in your infrastructure or you are making use of an external CA. You also have configured the server to receive remote desktop connections. In our example, we have obtained a certificate and installed it already on server.contoso.com.</p>
<p>First we configure the server. Under Administrative Tools, open Terminal Services Configuration. Double click RDP-TCP to configure the properties of Terminal Services using the RDP protocol. Under the general tab to the right of the word certificate, click Edit. Choose the installed certificate that you wish to associate with the Terminal Services connection over RDP:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_002.jpg"><img src="http://www.petri.co.il/images/secure_rdp_002_small.jpg" border="2" alt="" width="100" height="66" /></a></p>
<p>Back under the general tab, you will now be able to choose SSL for the security layer. This is what ultimately requires the use of certificates for the RDP communication on the server side. Take a quick look at the encryption level setting. Choices are client compatible, high, or FIPS. Client compatible means enforce the highest level of encryption that the connecting client supports. High means enforce the highest level of encryption that the server supports. FIPS means enforce FIPS encryption on both the server and the client. FIPS is government approved level of encryption.</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_004.jpg"><img src="http://www.petri.co.il/images/secure_rdp_004_small1.jpg" border="2" alt="" width="100" height="115" /></a></p>
<p>Now let’s move over to the client. The first thing we need to is ensure that the client trusts the CA chain that the server’s certificate was issued from. If this has not been done already, I will quickly walk you through the steps involved with a stand-alone CA. On the client, open a web browser and go to http://servername/certsrv/. Click Download a CA certificate, certificate chain, or CRL:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_006.jpg"><img src="http://www.petri.co.il/images/secure_rdp_006_small1.jpg" border="2" alt="" width="100" height="75" /></a></p>
<p>Choose Install this CA certificate chain:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_008.jpg"><img src="http://www.petri.co.il/images/secure_rdp_008_small1.jpg" border="2" alt="" width="100" height="75" /></a></p>
<p>Choose Yes:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_009.jpg"><img src="http://www.petri.co.il/images/secure_rdp_009_small.jpg" border="2" alt="" width="100" height="24" /></a></p>
<p>Choose Yes:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_010.jpg"><img src="http://www.petri.co.il/images/secure_rdp_010_small1.jpg" border="2" alt="" width="100" height="42" /></a></p>
<p>At this point you can close the web browser on the client machine:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_011.jpg"><img src="http://www.petri.co.il/images/secure_rdp_011_small1.jpg" border="2" alt="" width="100" height="75" /></a></p>
<p>Ensure that on the client, Remote Desktop Connection version 5.2.3790.1830 is installed (read <a href="http://www.petri.co.il/download_rdp_5_2.htm">Download RDP 5.2</a>). If it is not installed, you can install it from a server running Windows Server 2003 SP1. The source files are located on the server in <a href="file:///c:/windows/system32/clients/tsclient/">c:'windows'system32'clients'tsclient'</a>.</p>
<p>Open the Remote Desktop Connection client. Click on the Options button so that you can view all configurable options. Click on the Security tab. Choose Require Authentication in the pull down box.</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_012.jpg"><img src="http://www.petri.co.il/images/secure_rdp_012_small1.jpg" border="2" alt="" width="100" height="112" /></a></p>
<p>Click on the General tab. Enter the FQDN name of the server you will be connecting to. It is important here to enter the FQDN name:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_013.jpg"><img src="http://www.petri.co.il/images/secure_rdp_013_small1.jpg" border="2" alt="" width="100" height="112" /></a></p>
<p>You will receive the following warning. Click the button labeled View Certificate:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_014.jpg"><img src="http://www.petri.co.il/images/secure_rdp_014_small.jpg" border="2" alt="" width="100" height="73" /></a></p>
<p>Click Install Certificate:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_015.jpg"><img src="http://www.petri.co.il/images/secure_rdp_015_small1.jpg" border="2" alt="" width="100" height="116" /></a></p>
<p>Click Next:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_016.jpg"><img src="http://www.petri.co.il/images/secure_rdp_016_small1.jpg" border="2" alt="" width="100" height="76" /></a></p>
<p>Click Next:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_017.jpg"><img src="http://www.petri.co.il/images/secure_rdp_017_small1.jpg" border="2" alt="" width="100" height="76" /></a></p>
<p>Click Finish:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_018.jpg"><img src="http://www.petri.co.il/images/secure_rdp_018_small.jpg" border="2" alt="" width="100" height="76" /></a></p>
<p>Click Yes:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_019.jpg"><img src="http://www.petri.co.il/images/secure_rdp_019_small1.jpg" border="2" alt="" width="100" height="42" /></a></p>
<p>Click OK:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_020.jpg"><img src="http://www.petri.co.il/images/secure_rdp_020_small1.jpg" border="2" alt="" width="100" height="58" /></a></p>
<p>Click OK and you the Remote Desktop Connection will close:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_014.jpg"><img src="http://www.petri.co.il/images/secure_rdp_014_small.jpg" border="2" alt="" width="100" height="73" /></a></p>
<p>Now that the certificate is installed on the client, we may connect. Remember to use the FQDN here because that is what is contained in the server’s certificate:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_013.jpg"><img src="http://www.petri.co.il/images/secure_rdp_013_small1.jpg" border="2" alt="" width="100" height="112" /></a></p>
<p>We have now established a secure encrypted Remote Desktop Connection from the client to the server:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_021.jpg"><img src="http://www.petri.co.il/images/secure_rdp_021_small1.jpg" border="2" alt="" width="100" height="75" /></a></p>
<p>Clicking on the small padlock at the top of the screen ensures are secure connection by displaying the certificate that is in use:</p>
<p><a href="http://www.petri.co.il/images/secure_rdp_022.jpg"><img src="http://www.petri.co.il/images/secure_rdp_022_small1.jpg" border="2" alt="" width="100" height="74" /></a></p>


<p>Related posts:<ol><li><a href='http://blog.hviidnet.com/2010/01/ssl-vpn-with-2008-server/' rel='bookmark' title='Permanent Link: SSL Vpn With 2008 Server'>SSL Vpn With 2008 Server</a></li>
<li><a href='http://blog.hviidnet.com/2008/06/installing-self-signed-certificates-on-nokia-s60-phones/' rel='bookmark' title='Permanent Link: Installing self signed Certificates on nokia s60 phones'>Installing self signed Certificates on nokia s60 phones</a></li>
<li><a href='http://blog.hviidnet.com/2008/12/how-do-i-save-my-outlook-password/' rel='bookmark' title='Permanent Link: How do I save my Outlook Password?'>How do I save my Outlook Password?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hviidnet.com/2009/05/securing-rdp-connections-with-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

