<?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>RedHatVN Network &#187; Windows</title>
	<atom:link href="http://redhatvn.net/category/windows-center/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Moving Mdaemon Mail to New Server</title>
		<link>http://redhatvn.net/moving-mdaemon-mail-to-new-server</link>
		<comments>http://redhatvn.net/moving-mdaemon-mail-to-new-server#comments</comments>
		<pubDate>Tue, 22 Feb 2011 08:25:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1553</guid>
		<description><![CDATA[In order to move MDaemon to a new machine you should first remove the MDaemon service.  To remove MDaemon as a service Go to Setup Click on System Service Settings Click on Remove Service Open Windows Explorer and navigate to your MDaemon directory.  Make a backup of the entire directory. Make a note of the directory where [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/moving-mdaemon-mail-to-new-server"></g:plusone></div><p>In order to move MDaemon to a new machine you should first remove the MDaemon service.  To remove MDaemon as a service<br />
Go to Setup<br />
Click on System Service Settings<br />
Click on Remove Service<br />
Open  Windows Explorer and navigate to your MDaemon directory.  Make a backup  of the entire directory. Make a note of the directory where you  currently have MDaemon installed<br />
Copy the entire MDaemon directory from the old machine to the new machine<br />
Download and install the correct version of MDaemon into the same directory that it was installed in on the old machine<br />
NOTE:  You must install into the same directory.  If you install MDaemon into a  different directory it will result in a new installation and it will  not retain all of your settings.<br />
At the end of the installation you will be prompted to run Advanced Installation.  Select &#8216;no&#8217; here.<br />
Start MDaemon by going to<br />
Start<br />
Programs<br />
MDaemon<br />
Start MDaemon.<br />
From the MDaemon menu bar select<br />
Setup<br />
System Service Settings<br />
Install Service.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/moving-mdaemon-mail-to-new-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering Corrupted VMware Disk Images</title>
		<link>http://redhatvn.net/recovering-corrupted-vmware-disk-images</link>
		<comments>http://redhatvn.net/recovering-corrupted-vmware-disk-images#comments</comments>
		<pubDate>Tue, 28 Dec 2010 07:32:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1413</guid>
		<description><![CDATA[Many a time I cursed and vailed because VMware had let me down. Here is a &#8220;quick&#8221; and dirty way to access your corrupted VMware server/workstation .vmdk files. Here is how I managed to recover Zimbra mail servers &#8220;mail folders&#8221; (Ubuntu6/ext3) from corrupted VMware server image using WindowsXP, VMware Server, Ken Kato&#8217;s &#8220;Virtual Disk Driver [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/recovering-corrupted-vmware-disk-images"></g:plusone></div><p>Many a time I cursed and vailed because VMware had let me down. Here  is a &#8220;quick&#8221; and dirty way to access your corrupted VMware  server/workstation .vmdk files.</p>
<p>Here is how I managed to recover Zimbra mail servers &#8220;mail folders&#8221;  (Ubuntu6/ext3) from corrupted VMware server image using WindowsXP,  VMware Server, Ken Kato&#8217;s &#8220;Virtual Disk Driver for Windows NT platform&#8221;  &amp; Diskinternals Linux reader.<br />
<span id="more-1413"></span><br />
1) Copy corrupted .vmdk file to your WindowsXP workstations c:\temp folder. My filename was Opt.vmdk &#8211; I had to use WinSCP without any compression on the Linux side to copy it to Windows.</p>
<p>2) Download Ken&#8217;s &#8220;Virtual Disk Driver&#8221; (VDK) and extract it to c:\temp folder. (Freeware) &#8211; <a href="http://communities.vmware.com/community/developer/forums/vddk" target="_blank">http://communities.vmware.com/community/developer/forums/vddk</a></p>
<p>3) Type</p>
<p><code>CMD</code></p>
<p>in the &#8220;Run&#8221; on Windows to start the &#8220;Command Prompt&#8221;.</p>
<p>4) Change to the folder where vdk.exe is located using</p>
<p><code>cd c:\temp</code></p>
<p>command.</p>
<p>5) Type</p>
<p><code>vdk start</code></p>
<p>6) Type</p>
<p><code>vdk open 0 &lt;diskfile&gt; /L:R:</code></p>
<p>-My command was</p>
<p><code>vdk open 0 Opt.vmdk /L:R:</code></p>
<p>&lt;diskfile&gt; has to be substituted by the vmdk file. In my case it was the opt.vmdk file which then was mounted. /L:R: = Mount it as drive R:.</p>
<p>7) Now you probably have the disk mounted on your Windows PC. Problem  is that your Windows does not understand Linux formated drives yet.</p>
<p> <img src='http://redhatvn.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Download and install &#8220;Disk Internals Linux Reader.&#8221; (Demoversion.) &#8211; <a href="http://www.diskinternals.com/download.shtml#cd" target="_blank">http://www.diskinternals.com/download.shtml#cd</a></p>
<p>9) When I started the Linux Reader it crashed, but I just ignored  that and continued. It was still able to find my mounted Linux drive.  After scanning the drive in vain I cancelled all the scans and just  proceeded to restore the folders it found to the Windows local hard  drive.</p>
<p>Hope this helps. VMware Server&#8217;s own recovery/mount tools did not work out well for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/recovering-corrupted-vmware-disk-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN Windows HowTo</title>
		<link>http://redhatvn.net/openvpn-windows-howto</link>
		<comments>http://redhatvn.net/openvpn-windows-howto#comments</comments>
		<pubDate>Fri, 07 Jan 2011 04:29:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1437</guid>
		<description><![CDATA[OpenVPN is a full-featured SSL VPN solution which can accomodate a wide range of configurations, including remote access, site-to-site VPNs, WiFi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls. Although originally developed for Linux, OpenVPN is now widely used for providing VPN services for Windows clients. This document describes how [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/openvpn-windows-howto"></g:plusone></div><p><a href="http://openvpn.net/">OpenVPN</a> is a full-featured SSL VPN  solution which can accomodate         a wide range of configurations, 	 including remote access,         site-to-site VPNs, 	WiFi security,          and enterprise-scale         remote access solutions with load  balancing, failover, and         fine-grained access-controls.</p>
<p>Although  originally developed for Linux, OpenVPN is now widely used for  providing VPN services for Windows clients. This document describes how  we install and configure OpenVPN to work in a Microsoft Windows only  environment.<br />
<span id="more-1437"></span></p>
<h3>Prerequisites</h3>
<p>This how to assumes that you have various things already set up:</p>
<h4>OpenVPN Server</h4>
<p>You need a Windows system to act as the OpenVPN server. This can be a Windows 2000/2003 Server or 2000/XP Professional system.</p>
<h4>OpenVPN Clients</h4>
<p>One  or more OpenVPN client systems. These should be Windows 2000/XP  Professional, although 2000/2003 server should work equally well.</p>
<h4>Networking</h4>
<p>The  OpenVPN server system needs to be publically reachable on UDP port 1194  (you can use another port if required but this is the standard port for  OpenVPN). If the server is behind a NAT router then this will require  address/port forwarding.</p>
<p>It&#8217;s preferable for the server IP  address to be static as this makes things more stable. If your server  has a dynamic IP address then you will need to use a dynamic DNS service  to provide a fixed hostname.</p>
<p>All systems should have an  unfiltered Internet connection, or at least one that allows  communication on UDP port 1194. It is possible to run OpenVPN through  through more restrictive connections (e.g. a proxy server), but this is  outside the scope of this article.</p>
<h4>Names and addresses</h4>
<p>The names and addresses used in this how to are examples only and should be changed to suit your environment.</p>
<ul>
<li>Company Name: <em>Acme Corp.</em></li>
<li>Public Domain Name: <em>acme.com</em></li>
<li>Private (Windows) Domain Name: <em>acme.com.local</em></li>
<li>Server Hostname:     <em>widget</em></li>
<li>LAN address: <em>192.168.0.0/24</em></li>
<li>Server public address: <em>1.2.3.4</em></li>
<li>Server private address: <em>192.168.0.1</em></li>
<li>VPN address: <em>10.8.0.0/24</em></li>
</ul>
<h3>Software</h3>
<h4>OpenVPN</h4>
<p>We  generally use the OpenVPN GUI package on Windows systems rather than  the stock package, as this provides a system tray icon for controlling  the application:</p>
<p><a title="http://openvpn.se/download.html" href="http://openvpn.se/download.html">http://openvpn.se/download.html</a></p>
<h3>Server Configuration</h3>
<h4>Install OpenVPN</h4>
<p>OpenVPN  GUI can be installed with default options (certificate wizard is not  needed). Near the end of the install it will add a TAP-Win32 virtual  adapter that is not signed, you need to tell Windows to install this as  requested.</p>
<p>Once the installation is complete, you will need to  create additional TAP-Win32 virtual adapters using the shortcut in the  OpenVPN program group. One adapter is needed for each concurrent VPN  user. Rename these adapters to &#8220;OpenVPN #n&#8221; where n is the adapter  number. This is cosmetic only but helps identification.</p>
<h4>Configure OpenVPN</h4>
<p>Create the server configuration file in the OpenVPN config folder (c:\program files\openvpn\config\)</p>
<pre>## server.ovpn ##
port 1194
proto udp
dev tun
ca ca.crt
cert <em>widget</em>.crt
key <em>widget</em>.key
dh dh1024.pem
server <em>10.8.0.0 255.255.255.0</em>
ifconfig-pool-persist ipp.txt
push "route <em>192.168.0.0 255.255.255.0</em>"
push "dhcp-option WINS <em>192.168.0.1</em>"
push "dhcp-option DNS <em>192.168.0.1</em>"
push "dhcp-option DOMAIN <em>acme.com.local</em>"
keepalive 10 120
comp-lzo
max-clients <em>4</em>
persist-key
persist-tun
status openvpn-status.log
verb 3</pre>
<p>Values in <em>italics</em> should be changed to suit your environment.</p>
<p>In this example the max-clients has been set to 4, which would require 3 additional TAP-Win32 virtual adapters to be created.</p>
<h4>Set up a Certificate Authority (CA)</h4>
<p>You  need a Certificate Authority (CA) to sign your client and server  certificates. The easy-rsa scripts make this pretty straightforward.</p>
<p>First  we need to initialise easy-rsa. You should only do this once as it will  wipe out any existing certificates, keys and settings.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>init-config</strong></pre>
<p>Next edit vars.bat and change the &#8220;KEY_&#8221; settings at the bottom of the file.</p>
<pre>set KEY_COUNTRY=<strong><em>GB</em></strong>
set KEY_PROVINCE=<strong><em>London</em></strong>
set KEY_CITY=<strong><em>London</em></strong>
set KEY_ORG=<strong><em>Acme</em></strong>
set KEY_EMAIL=<strong><em>hostmaster@acme.com</em></strong></pre>
<p>Finally create the keys folder and the root certificate itself.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>vars</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>clean-all</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>build-ca</strong></pre>
<p>You  will be asked to enter some details for the root certificate. Most of  these will default to the values that you entered into vars.bat, but you  will need to choose a &#8220;Common Name&#8221; for the certificate.</p>
<pre>Common Name (eg, your name or your server's hostname) []:<strong>Administrator</strong></pre>
<p>Keys  and certificates are created in the keys subfolder. The ca.crt file  (root certificate) should be copied to the OpenVPN config folder.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\ca.crt ..\config\</strong></pre>
<p>Important:  Key files (.key) are very sensitive and should be kept safe and never  sent over insecure (unencrypted) channels. The Certificate Authority key  (ca.key) is particularly important &#8211; if it is lost or comprimised then  you will have to replace all your keys and certificates.</p>
<h4>Set up server key and certificate</h4>
<p>Once the CA has been set up, we can generate a key and certificate for the server.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>vars</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>build-key-server <em>widget</em></strong></pre>
<p>Executing  the vars.bat is not necessary if you do this straight after creating  the CA because the environment will still be set (but it doesn&#8217;t hurt).</p>
<p>As  with generating the root certificate, most of the details will default  to the correct values but you will need to enter a &#8220;Common Name&#8221;. This  is best set to the hostname of the server.</p>
<pre>Common Name (eg, your name or your server's hostname) []:<em><strong>widget.acme.com.local</strong></em></pre>
<p>You can leave the challange password and optional company name blank.</p>
<p>The server also needs Diffie Hellman parameters.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>build-dh</strong></pre>
<p>This may take a while&#8230;</p>
<p>Finally copy the key, certificate and DH file to the OpenVPN config folder.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\<em>widget</em>.crt ..\config\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\<em>widget</em>.key ..\config\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\dh1024.pem ..\config\</strong></pre>
<h4>Setup VPN routing</h4>
<p>Routing on the server <em>should</em> be enabled by enabling LAN routing in the Routing and Remote Access  service, however we&#8217;ve found that this causes problems with the OpenVPN  service so I would not recommend it. Instead use regedit to set the  IPEnableRouter registry key to 1.</p>
<pre>Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Value: IPEnableRouter
Type: REG_DWORD
Data: 0x00000001 (1)</pre>
<p>To  allow VPN clients to communicate with systems on the LAN (other than  the VPN server), you need to add the VPN network to your router(s)  configuration. For a simple stub network you would do this by adding a  static route to the default gateway to direct traffic for <em>10.8.0.0/24</em> to the server.</p>
<pre>Network: <em>10.8.0.0</em>
Subnet Mask: <em>255.255.255.0</em>
Next Hop Address: <em>192.168.0.1</em></pre>
<p>To do this with on an IPCop firewall, add a line to the /etc/rc.d/rc.local file.</p>
<pre> #!/bin/sh
 /sbin/route add -net <em>10.8.0.0/24</em> gw <em>192.168.0.1</em></pre>
<p>You can also add this route at the command line to avoid rebooting the router.</p>
<pre>root@ipcop:~ # <strong>route add -net <em>10.8.0.0/24</em> gw <em>192.168.0.1</em></strong></pre>
<h4>Finishing touches</h4>
<p>We  like to create a batch file called restartvpn.cmd in the OpenVPN config  folder (and desktop shortcut) to restart the OpenVPN service in case it  gets stuck.</p>
<pre>net stop openvpnservice
net start openvpnservice</pre>
<p>Configure the OpenVPN service to start automatically on boot using the services applet, and then start the service.</p>
<h3>Client Configuration</h3>
<h4>Install OpenVPN</h4>
<p>Again the OpenVPN GUI can be installed with default options.</p>
<p>I like to rename the TAP-Win32 (in Network connections) adapter to &#8220;OpenVPN&#8221;. This is cosmetic only but helps identification.</p>
<h4>Configure OpenVPN</h4>
<p>Create the client configuration file in the OpenVPN config folder (c:\program files\openvpn\config\).</p>
<pre>## <em>acme</em>.ovpn ##
client
proto udp
dev tun
remote <em>1.2.3.4</em> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert <em>fred</em>.crt
key <em>fred</em>.key
comp-lzo
verb 3</pre>
<p>Values in italics should be changed to suit your environment.</p>
<p>In this example we assume that the name of the client is &#8220;<em>Fred</em>&#8220;.</p>
<h4>Set up client key and certificate</h4>
<p>We  will generate client keys and certificates on the server, which means  you have to be careful to securely transport the client key to the  client machine. To avoid this you could generate the key on the client  along with a Certificate Signing Request (CSR) which can then be  transported to the server where it is signed to create the certificate,  however this is beyond the scope of this document.</p>
<p>Generate the client key and certificate on the OpenVPN server machine.</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>vars</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>build-key <em>fred</em></strong></pre>
<p>Then  copy the client key and certificate along with the root certificate  securely to the config folder on the client machine. The simplest way of  doing this is to just put the files on a USB key (or floppy disk).</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\<em>fred</em>.crt a:\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\<em>fred</em>.key a:\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy keys\ca.crt a:\</strong>
</pre>
<p>Then on the client machine</p>
<pre>C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy a:\<em>fred</em>.crt ..\config\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy a:\<em>fred</em>.key ..\config\</strong>
C:\Program Files\OpenVPN\easy-rsa&gt; <strong>copy a:\ca.crt ..\config\</strong></pre>
<h4>Test</h4>
<p>Right  click the OpenVPN tray icon and select &#8220;Connect&#8221;. It will open a status  window showing the connection progress, and if everything is working ok  then the status window should close and the icon should turn green.</p>
<p>To test the connection, try pinging <em>10.8.0.1</em> (the server VPN IP address), <em>192.168.0.1</em> (the server LAN IP address), the address of a PC on the remote LAN (e.g. <em>192.168.0.123</em>), and then try pinging devices by name.</p>
<pre>c:\&gt; <strong>ping <em>10.8.0.1</em></strong></pre>
<pre>c:\&gt; <strong>ping <em>192.168.0.1</em></strong></pre>
<pre>c:\&gt; <strong>ping <em>192.168.0.123</em></strong></pre>
<pre>c:\&gt; <strong>ping <em>widget</em></strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/openvpn-windows-howto/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to format hard drive to FAT32 filesystem inside Windows 7 64 bit</title>
		<link>http://redhatvn.net/how-to-format-hard-drive-to-fat32-filesystem-inside-windows-7-64-bit</link>
		<comments>http://redhatvn.net/how-to-format-hard-drive-to-fat32-filesystem-inside-windows-7-64-bit#comments</comments>
		<pubDate>Mon, 02 Aug 2010 06:52:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1231</guid>
		<description><![CDATA[The option to format internal and external hard drives to the FAT 32 filesystem is not available to you from within the Graphical User Interface in Windows Vista/Windows 7 64 Bit Editions. If you wish to make data available to operating systems or applications that cannot properly read or write to NTFS partitions, this can [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/how-to-format-hard-drive-to-fat32-filesystem-inside-windows-7-64-bit"></g:plusone></div><p>The option to format internal and external hard drives to the FAT 32  filesystem is not available to you from within the Graphical User  Interface in Windows Vista/Windows 7 64 Bit Editions. If you wish to  make data available to operating systems or applications that cannot  properly read or write to NTFS partitions, this can pose something of a  problem for you. Thankfully there is a relatively easy command prompt  solution you can use to solve this little problem.</p>
<p>To perform this format successfully, you need to launch Command  Prompt with Administrator permissions before executing the command.<br />
<span id="more-1231"></span><br />
<strong>Here are the steps to follow:</strong></p>
<p>1. First, find the drive letter of the HDD you wish to format from My  Computer. Check, double check, and triple check you have the right  letter before executing any format commands on your drive.</p>
<p>2. Navigate to the Command Prompt program: Start Menu &gt; Accessories</p>
<p>3. Right click the Command Prompt entry in Accessories and choose to “Run as Administrator”.</p>
<p>4. You should be prompted by User Account Control “Do you want to  allow the following program to make changes to this computer?” Answer  yes. If you have disabled UAC, you will not see this message.</p>
<p>5. With the command prompt now showing, enter the following command:</p>
<p>format XYZ: /FS:FAT32</p>
<p>Replace XYZ with the letter of the drive you wish to format.</p>
<p>You can also perform a quick format on any drive without bad sectors:</p>
<p>format XYZ: /FS:FAT32 /q</p>
<p>Again, replace XYZ with the letter of the drive you want to format.</p>
<p>Depending on the size and the method you choose to use to format your  drive, it can take anywhere between one minute and several hours for  the format to finish. But once complete, you will have your drive  properly formatted to the FAT32 filesystem.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-format-hard-drive-to-fat32-filesystem-inside-windows-7-64-bit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your own user-defined services Windows NT/2000/XP/2003</title>
		<link>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003</link>
		<comments>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:11:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1203</guid>
		<description><![CDATA[The Windows NT/2000 Resource Kit provides two utilities that allow you to create a Windows user-defined service for Windows applications and some 16-bit applications (but not for batch files). Whats needed for Windows NT/2000: Instrsrv.exe installs and removes system services from Windows NT/2000 Srvany.exe allows any Windows application to run as a service. You can [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003"></g:plusone></div><p>The Windows NT/2000 Resource Kit provides two utilities that allow you  to create a Windows user-defined service for Windows applications and  some 16-bit applications (but not for batch files).</p>
<p><strong><span id="more-1203"></span>Whats needed for Windows NT/2000</strong>:<br />
<strong>Instrsrv.exe</strong> installs and removes system services from Windows  NT/2000<br />
<strong>Srvany.exe</strong> allows any Windows application to run as a service.<br />
You can download both files here <a href="http://www.tacktech.com/download.cfm?file=microsoft/service/srvany.zip">srvany.zip</a></p>
<p>This zip includes three files. The two you need srvany.exe and  instsrv.exe to install the services and also srvany.wri which documents  everything you can do with the program.<br />
<strong>Note:</strong> Make sure the Services Manager is closed while running the  DOS commands.</p>
<hr />You will need to put these files in a directory called <strong>reskit</strong> At a MS-DOS command prompt(Start | Run | &#8220;cmd.exe&#8221;), type the following  command:<br />
&lt;path&gt;\reskit\INSTSRV.EXE &#8220;<em>Service Name</em>&#8221;  &lt;path&gt;\reskit\SRVANY.EXE<br />
This creates the service in the Services manager and the registry keys  to setup what program to run.</p>
<p><img src="http://www.tacktech.com/images/articles/197/addsrv.gif" alt="http:www.tacktech.com/" /></p>
<hr />Next open regedit.exe <strong>Start | run | regedit.exe</strong><br />
<strong>WARNING:</strong> Using Registry Editor incorrectly can cause serious  problems that may require you to reinstall your operating system.  Microsoft cannot guarantee that problems resulting from the incorrect  use of Registry Editor can be solved. Use Registry Editor at your own  risk.</p>
<p><img src="http://www.tacktech.com/images/articles/197/regedit.gif" alt="http:www.tacktech.com/" /></p>
<hr />Next navigate to this registry key.<br />
<strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<em>service name</em></strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/key.gif" alt="http:www.tacktech.com/" /></p>
<hr />From the Edit menu, click Add Key and name it <strong>Parameters</strong><br />
Next from the Edit menu, click Add Value and type this information.<br />
<strong>Value Name: Application</strong><br />
<strong>Data Type : REG_SZ</strong><br />
<strong>String : &lt;path&gt;\&lt;application.ext&gt;</strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/addkey.gif" alt="http:www.tacktech.com/" /></p>
<hr />Now you can start your service from the Service Manager</p>
<p><img src="http://www.tacktech.com/images/articles/197/srvmgr.gif" alt="http:www.tacktech.com/" /></p>
<hr />With this same program you can remove the service also. Just run this command from command prompt.<br />
<strong>&lt;path&gt;\reskit\INSTSRV.EXE <em>&#8220;Service Name&#8221;</em> REMOVE</strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/remove.gif" alt="http:www.tacktech.com/" /></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
