<?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>VerySimple &#187; Windows</title>
	<atom:link href="http://verysimple.com/category/operating-systems/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://verysimple.com</link>
	<description>Custom Software</description>
	<lastBuildDate>Tue, 15 May 2012 07:40:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Connect to VNC over SSH</title>
		<link>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/</link>
		<comments>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 03:07:11 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=861</guid>
		<description><![CDATA[Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so. Any system that has SSH installed can connect using an SSH Tunnel. I go into more detail about the concept on a separate post about mounting OSX AFS shares over SSH. First you [...]]]></description>
			<content:encoded><![CDATA[<p>Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so.  Any system that has SSH installed can connect using an SSH Tunnel.  I go into more detail about the concept on a separate post about <a href="http://verysimple.com/2008/03/09/mount-an-osx-afs-shared-drive-over-ssh/">mounting OSX AFS shares over SSH</a>.</p>
<p>First you need to have a server that is running VNC, but most likely only has it&#8217;s SSH port exposed.  I&#8217;ll assume that SSH is on port 22 and VNC is on port 5900 (these are the default ports for these services).  I&#8217;ll also assume that you have the ssh command and a VNC client installed on your client machine.</p>
<p><span id="more-861"></span>1. On your client machine, open a command line window and enter the following to create the SSH tunnel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span> USERNAME<span style="color: #000000; font-weight: bold;">@</span>YOURSERVER <span style="color: #660033;">-L</span> <span style="color: #000000;">5901</span><span style="color: #000000; font-weight: bold;">/</span>localhost<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5900</span></pre></div></div>

<p><em>Replace USERNAME with your server username, and replace YOURSERVER with your server address (ie verysimple.com or 192.168.1.99)</em></p>
<p>2. Once you enter this command you&#8217;ll be prompted for the server password.  Enter the password.  You will see no feedback in the terminal window, but the SSH tunnel is now active.</p>
<p>3. Open your VNC client and connect to the address &#8220;localhost:5901&#8243;  If you have a password set for VNC access then you will need to enter that now.  If all goes well, you should see your server VNC desktop!</p>
<p>It might seem weird that you are connecting to localhost in your VNC client.  But the the SSH tunnel you created is actually routing port 5901 on your localhost to port 5900 on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor Log Files in Realtime with LogFileMonitor</title>
		<link>http://verysimple.com/2008/10/28/logfilemonitor-for-net/</link>
		<comments>http://verysimple.com/2008/10/28/logfilemonitor-for-net/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:51:06 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=239</guid>
		<description><![CDATA[In order to more easily monitor some web services that we have running, I whipped up a quick .NET app to monitor log files in real-time.  I got a little bit carried away and wrote more than I needed, but I think this app will save a lot of time in the long run. The [...]]]></description>
			<content:encoded><![CDATA[<p>In order to more easily monitor some web services that we have running, I whipped up a quick .NET app to monitor log files in real-time.  I got a little bit carried away and wrote more than I needed, but I think this app will save a lot of time in the long run.</p>
<p>The app is called LogFileMonitor and it&#8217;s available at google code.  You can download a Windows binary or the full source (GPL3) at <a href="http://code.google.com/p/logfilemonitor/" target="_blank">http://code.google.com/p/logfilemonitor/</a>.  A screenshot and feature list are on the google code page.</p>
<p>If you&#8217;re a software developer and have any interest in participating, drop me a line.  It would be nice to have a Mono port so the app can run on any OS.  Currently it only runs on Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2008/10/28/logfilemonitor-for-net/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create Symbolic Links in Windows XP, Vista and Windows 7</title>
		<link>http://verysimple.com/2008/06/02/create-symbolic-links-in-windows-xp-and-vista/</link>
		<comments>http://verysimple.com/2008/06/02/create-symbolic-links-in-windows-xp-and-vista/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 17:18:51 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=110</guid>
		<description><![CDATA[If you&#8217;re a *NIX guy/gal you might be tempted to bash Windows for not having symolic links. Windows has actually supported a similar feature called Junctions since Windows 2000.  A junction is not exactly like a symlink but it does work for certain types of things.  The requirement is that the drive must be formatted [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2008/06/screenshot.jpeg" rel="shadowbox[sbpost-110];player=img;" title="screenshot"><img class="alignright size-medium wp-image-874" title="screenshot" src="http://verysimple.com/wp-content/uploads/2008/06/screenshot-246x300.jpg" alt="" width="192" height="234" /></a>If you&#8217;re a *NIX guy/gal you might be tempted to bash Windows for not having symolic links.  Windows has actually supported a similar feature called Junctions since Windows 2000.  A junction is not exactly like a symlink but it does work for certain types of things.  The requirement is that the drive must be formatted as NTFS (FAT doesn&#8217;t support Junctions).  The easiest way to manage junctions is with a freeware explorer add-on called <a title="http://sourceforge.net/projects/ntfslinkext" href="http://sourceforge.net/projects/ntfslinkext/" target="_blank">NTFS Link</a>.  NTFS Link adds a context menu to Explorer so it&#8217;s very simple to use.  You can also download a Microsoft command-line utility called <strong>linkd</strong> as part of the <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&amp;displaylang=en" target="_blank">Windows 2003 Resource Kit Tools</a>.</p>
<p>Starting with Windows Visa several types of links are supported including symbolic links using the command <strong>mlink</strong>.  You can create them with a simple DOS command, however there is one trick &#8211; you must create the link as administrator.  If you do not run the command as Administrator, you will get an error &#8220;You do not have sufficient privilege to perform this operation&#8221;</p>
<p><strong>To create a symbolic link in Vista:</strong></p>
<p>Go to Start Menu -&gt; Accessories -&gt; Command Prompt and RIGHT-click the icon.   Select &#8220;Run as administrator&#8221; from the dialog menu.  This will open a command prompt window that is running with full administrator permissions.  In this window, use the following command to create a symbolic link:</p>
<pre>mklink /d c:\mylink c:\sourcefolder</pre>
<p>(The /d switch is used for directories.  If you are linking a single file, you don&#8217;t need the /d.)</p>
<p>To delete links, simply use Windows Explorer.  Interestingly you don&#8217;t need to run Explorer as administrator, just delete &#8216;em as you would any file or folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2008/06/02/create-symbolic-links-in-windows-xp-and-vista/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>PHP on Windows 2003 IIS 6 Displays 404 Page Not Found</title>
		<link>http://verysimple.com/2008/01/05/php-on-windows-2003-iis-6-displays-404-page-not-found/</link>
		<comments>http://verysimple.com/2008/01/05/php-on-windows-2003-iis-6-displays-404-page-not-found/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 04:12:59 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/2008/01/05/php-on-windows-2003-iis-6-displays-404-page-not-found/</guid>
		<description><![CDATA[After Installing PHP 5 using the Windows installer on Windows 2003 you may find that IIS displays a &#8220;Page Not Found&#8221; 404 error for every .php page. This is a perplexing error because is it not actually a real 404 error. The file is really there, but IIS is unable to process it based on [...]]]></description>
			<content:encoded><![CDATA[<p>After Installing PHP 5 using the Windows installer on Windows 2003 you may find that IIS displays a &#8220;Page Not Found&#8221; 404 error for every .php page. This is a perplexing error because is it not actually a real 404 error. The file is really there, but IIS is unable to process it based on how the installer configures the extension mapping. Instead of providing any useful information or even a 500 error; however, IIS throws out a 404.</p>
<p><strong>Steps to Fix the Problem:</strong></p>
<p><em>Before you troubleshoot further, you may want to read #5 about how the Application Pool effects PHP configuration changes.</em></p>
<p>1. Replace the old DOS format path to the PHP Executable with a full path w/ quotes<br />
2. Move php.ini to C:\Windows<br />
3. Edit php.ini to set cgi.force_redirect = 0  (only necessary for CGI mode)<br />
4. Make sure php-cgi.exe and/or phpisapi.dll are included in Web Service Extensions<br />
5. Recycle the Application Pool</p>
<p><strong>1. Replace the old DOS Path Format</strong></p>
<p><a title="Edit Map" href="http://verysimple.com/wp-content/uploads/2008/01/edit_map.png" rel="shadowbox[sbpost-104];player=img;"><img src="http://verysimple.com/wp-content/uploads/2008/01/edit_map-150x150.png" alt="Edit Map" /></a></p>
<p>The default path to PHP is C:\Program Files\PHP. When creating the IIS extention mapping, the PHP Installer uses the old DOS format path to the PHP ISAPI or CGI executable such as &#8220;C:\PROGRA~1\PHP\PHP5IS~1.DLL&#8221;. IIS does not seem to like this format.</p>
<p>One simple solution for this is to simply reinstall PHP to C:\PHP, or another location that doesn&#8217;t use long filenames.  This will generally save you a lot of grief as PHP and its installer do not seem to handle windows long file names consistently.</p>
<p>If you prefer to keep things in Program files, go to the IIS Extension Mapping screen and locate the value for &#8220;.php&#8221; (See screenshot above). Click the browse button, select the executable and put quotes around it the entire path. So the value for this field should look like this <em>&#8220;C:\Program Files\PHP\php5isapi.dll&#8221;</em> (<strong>WITH</strong> the quotes around it). If you have installed PHP in CGI mode instead, the file name would be php-cgi.exe instead of php5isapi.dll</p>
<p>While you&#8217;re at it you may want to check the box for &#8220;Verify that file exists&#8221; as well. This allows IIS to handle actual missing pages (ie broken links) and return a 404. Otherwise IIS will just pass the request to PHP without verifying the .php file really exists and PHP throws a CGI error when the file isn&#8217;t found. People seem to have inconsistent results with this setting.</p>
<p>If you recycle the app pool at this point (see step #5) you *may* solve the 404 error depending on what extensions you installed or whether you had re-run the installer and changed stuff. However, you may still have issues changing php.ini settings in which case keep reading.</p>
<p><strong>2. Copy php.ini to C:\Windows</strong></p>
<p>The PHP installer creates a php.ini file for you based on your selections in the setup process. However the installer saves the file in C:\Program Files\PHP. The problem is that PHP is looking in C:\Windows for the .ini file. So, you need to move the file php.ini to C:\Windows. This may be confusing because PHP seems to run fine. But if you look closely at the phpinfo() output, you may find that php.ini file is not being loaded and all default settings are being used.</p>
<p>One of the critical things when configuring PHP is to actually edit the .ini file that is being used by PHP. The installer creates a worthless file in a location that PHP won&#8217;t read and so you may waste a lot of time editing this file. PHP pretty much universally will check the Windows folder for php.ini on all varieties of Windows, so my advice is to use that location and delete any other php.ini files that are hanging around..</p>
<p><strong>3. Set cgi.force_redirect = 0 (Only necessary for CGI mode)</strong></p>
<p>Various people report that you need to edit php.ini and set:</p>
<pre>cgi.force_redirect = 0</pre>
<p>I haven&#8217;t noticed this setting having any effect on my installations, but many people claim it is necessary when you are running PHP in CGI mode.  This setting will have no effect if you are running in ISAPI mode.</p>
<p><strong>4. Make sure php-cgi.exe and/or phpisapi.dll are enabled in Web Service Extensions</strong></p>
<p>In IIS Manager, click on &#8220;Web Service Extensions&#8221;  This includes a list of all dll and exe files that IIS is allowed to execute.  The extension mapping that is specified for .php files must also be added here.  I prefer to just add both php-cgi.exe as well as php5isapi.dll here and enable them both so that if I don&#8217;t need to worry about it again.</p>
<p>If the handler is already in the list, make sure that it is &#8220;enabled&#8221; as well.  The enabled services have a green overlay on the service icon.</p>
<p>Lastly, confirm that the file path is exactly the same here as it is in your .php extension mapping configuration.  That includes the dos path formatting.  If you use junctions, you need to be using the same path in both places.  IIS seems to check the path rather than the executable.  It will not recognize if you use a slightly different path, even if they both point to the same executable.</p>
<p><strong>5. Recycle the Application Pool</strong></p>
<p>In order for any PHP configuration changes to take effect in Windows 2003, you need to recycle the Application Pool. If you have made changes to php.ini and they don&#8217;t seem to take effect, this is likely the reason. Among other things, the pool caches PHP settings and you need to clear it before new configuration settings will take effect. You&#8217;ll read people telling you to restart IIS (which doesn&#8217;t recycle the app pool) or even reboot your machine (which is overkill). You don&#8217;t need to do either of those. Just right-click on the DefaultAppPool in the IIS management interface and &#8220;Recycle&#8221; is one of the options.</p>
<p><a title="Recycle Pool" href="http://verysimple.com/wp-content/uploads/2008/01/recycle_pool.png" rel="shadowbox[sbpost-104];player=img;"><img src="http://verysimple.com/wp-content/uploads/2008/01/recycle_pool-150x150.png" alt="Recycle Pool" /></a></p>
<p>If I&#8217;m having trouble with the ini file, I like to have a typical phpinfo.php file on the server while I make some arbitrary change to the php.ini file (like the session timeout or the max upload size). I refresh phpinfo.php and verify that my changes are taking effect. You can also check the Windows Event logs under &#8220;System&#8221; which will sometimes report errors in the php.ini file.</p>
<p><strong>Notes regarding re-running the PHP installer to make changes:</strong></p>
<p>The PHP installer does not really handle changes all that well. For one thing it will overwrite the path to the PHP executable w/ the old DOS format so you need to fix that after you run it.</p>
<p>The 2nd thing is that it will write changes to C:\Program Files\PHP\php.ini &#8211; regardless of the fact that PHP is actually looking at C:\Windows\php.ini</p>
<p>If you had previously moved php.ini to the windows folder, when you run the Change installation feature, it will create a fresh php.ini file that only incorporates the most recent changes. (ie, if you had 10 extensions enabled and you make a change to enable 1 more, your new php.ini file will only have the 1 enabled and the previous 10 will no longer be enabled)</p>
<p>One way around this is to temporarily move C:\Windows\php.ini file to C:\Program Files\PHP. Then run in installer to make changes. The installer will write changes to php.ini in that location. Then, move php.ini back to C:\Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2008/01/05/php-on-windows-2003-iis-6-displays-404-page-not-found/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Migrating Windows NT From Legacy Hardware to a Parallels Virtual Machine</title>
		<link>http://verysimple.com/2007/06/09/migrating-windows-nt-from-legacy-hardware-to-a-parallels-virtual-machine/</link>
		<comments>http://verysimple.com/2007/06/09/migrating-windows-nt-from-legacy-hardware-to-a-parallels-virtual-machine/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 02:52:45 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/2007/06/09/migrating-windows-nt-from-legacy-hardware-to-a-parallels-virtual-machine/</guid>
		<description><![CDATA[I recently had to rescue a legacy application that was running on an old Compaq Proliant server. This custom application is primarily a web application running on MS SQL Server, however there are various services and automated tasks and the application is fairly well embedded onto this hardware. The application has gone through various changes [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to rescue a legacy application that was running on an old Compaq Proliant server.  This custom application is primarily a web application running on MS SQL Server, however there are various services and automated tasks and the application is fairly well embedded onto this hardware.  The application has gone through various changes and development teams since it was originally written in 1997, but has always lived on this particular Windows NT 4.0 Server.</p>
<p>The machine itself is huge, heavy and requires three power cords to run.  It&#8217;s also extremely loud.  Though it was a mighty workhorse in it&#8217;s day, now there are cellphones and PDAs that would give it&#8217;s CPU a run for it&#8217;s money.   I thought the hardware was so old that it would make sense to migrate the whole thing to a virtual disk image and run in using Parallels.  What I had thought would only take an hour or two wound up being an entire weekend saga.  But end the end I was victorious and the virtual server now runs like a champ on my Mac Mini.  What follows are the steps and software tools that I used to make the migration.</p>
<p><strong><em>Note: </em></strong>if you are using an Windows OS more recent than NT, you can use <a href="http://www.parallels.com/products/desktop/transporter/" target="_blank">Parallels Transporter</a> to easily convert an older server into a virtual machine.  The technique below is much more labor, however will work on older Windows systems and, theoretically, any other OS.  Also, I suspect these steps could be followed for use with another emulator such as VMWare or VirtualBox.</p>
<p>The first step of the process was to make a disk image of the drive.  This actually can be done using a variety of GUI utilities if you can physically remove the drive and place it into another machine.  In my case the two disk volumes were spread across 4 physical disks on an old Compaq RAID array.   Not to mention they were old SCSI drives and I didn&#8217;t have the hardware to plug them into another machine anyway.  What I did find was a nice little app called <a href="http://www.feyrer.de/g4u/" target="_blank">G4U</a> (Ghost for Linux)</p>
<p>G4U basically did all of the hard work, but it didn&#8217;t quite get me all the way home.  Following the G4U instructions I created a boot disk CD and booted the old hardward.  G4U is a command-line utility with a command <em>uploaddisk</em>.  This command basically converts the drive of your choosing to a raw image file and simultaneously uploads it to the FTP server of your choosing.  I did this using a local FTP server and the result was a .gz file containing the raw disk image.</p>
<p>Now that I had the disk image the next step is to get the data out of that image and into a Parallels virtual machine.  I created a Parallels virtual machine with a blank virtual drive the same size as the old server drive (actually I made it a little bigger to be safe).  I then booted up this virtual machine as if I was going to install Windows, only I booted from the G4U boot disk.  At the G4U prompt the command <em>slurpdisk </em>connects to an FTP server, decompresses the raw .gz image file to a physical drive.  (In my case, I copied it to the new, blank virtual drive.)</p>
<p>Once this step was complete I had what should have been an exact copy of the drive from the hardware duplicated on a parallels .hdd drive file.   And indeed I did have this; however, there was a problem &#8211; it wouldn&#8217;t boot!  Apparently something with the old RAID controller or the conversion process had not correctly copied the boot sector.  I could mount the disk image and see that all the data was there but Parallels would just not recognize the drive as being a bootable image.</p>
<p>I know there are ways to fix the boot sector using special fdisk options, however they tend to wipe out the data &#8211; which obviously wouldn&#8217;t work.  There&#8217;s probably non-destructive ways as well.  What I wound up doing, though, was to create a new Parallels machine with a new/blank drive and install on it a fresh copy of Windows NT.    In other words, I basically created a regular virtual machine running Windows NT.  (In hindsight I probably could have just copied any existing virtual machine that I had)</p>
<p>So at this point I had a) A virtual drive copy of the old hardware drive that was non-bootable and b) A  clean NT virtual machine that was bootable.  I needed to get the files from A onto B.  I figured a straight copy using windows explorer would wipe out critical NTFS system data, but I couldn&#8217;t copy the whole partition either and lose the boot sector info.  I located another free utility program called <a href="http://www.xxcopy.com/" target="_blank">XXCOPY </a>which promised to copy NTFS files as-is preserving all system meta-data.  (Vista has a new feature called RoboCopy which may also work for this purpose.)  I mounted both disk images on my main XP installation so I would work with the filesystems.  I deleted all of the NT files from the clean install using Windows Explorer, thus I have a blank, but bootable drive.  Then using XXCOPY I copied the old serer&#8217;s entire C drive contents to the blank, bootable drive.</p>
<p>To be honest, I wasn&#8217;t expecting this to work.  The copy took a while, but after I was done I booted up from that drive and to my amazement it started! It took a lot of trial and error, but in the end the application was liberated from it&#8217;s old hardware and now runs happily on any decent computer with Parallels installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2007/06/09/migrating-windows-nt-from-legacy-hardware-to-a-parallels-virtual-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering a lost NT 4.0 Administrator Password</title>
		<link>http://verysimple.com/2007/05/22/recovering-a-lost-nt-40-administrator-password/</link>
		<comments>http://verysimple.com/2007/05/22/recovering-a-lost-nt-40-administrator-password/#comments</comments>
		<pubDate>Tue, 22 May 2007 05:26:04 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/2007/05/22/recovering-a-lost-nt-40-administrator-password/</guid>
		<description><![CDATA[Recently an old application server arrived at the office. The server was running NT 4 and MS SQL server. We needed to get the machine running to do some reverse engineering of the code and database, however the administrator password had been lost. The original developer had moved out of state and didn&#8217;t have records, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently an old application server arrived at the office.  The server was running NT 4 and MS SQL server.  We needed to get the machine running to do some reverse engineering of the code and database, however the administrator password had been lost.  The original developer had moved out of state and didn&#8217;t have records, nor did the owner.  It seemed that the only choice left was to hack into the machine.</p>
<p>I started with various failed attempts to recover the password using boot disks that grab info from the SAM database and crack the passwords.  Since this was older hardware with an old drive array configuration, though, several of these recovery disks couldn&#8217;t recognize the drive.  One program did see the drive and recover the SAM information but was unable to crack the password.</p>
<p>I do think that strategy would have eventually worked. But, I decided it would be easier to re-set the password instead of recovering it.  There is an old trick with NT and 2000 machines if you have physical access the the machine where you replace login.scr with cmd.exe.</p>
<p>First you boot from an <a href="http://www.bootdisk.com/">NTFS boot disk</a>.  The NTFS boot disk above gives you a windows DOS prompt with full read/write access to the drives on the server, though you are not technically authenticated as a user on the system.Â  C:\winnt\system32\login.scr is the screensaver executable that Windows runs automatically at the login prompt.  You can use this hack to fool Windows into opening up a DOS shell with system priviledges. At the boot disk command prompt enter the following to backup and replace login.scr with cmd.exe:</p>
<p><code><br />
copy c:\winnt\system32\login.scr login.bak<br />
copy c:\winnt\system32\cmd.exe login.scr<br />
</code></p>
<p>Now that login.scr was replaced, remove the boot disk and re-boot to the NT login prompt. I waited until Windows launched login.scr (default is 15 minutes) and a DOS command window opened right on top of the login prompt. The following DOS command changes the Administrator password:</p>
<p><code><br />
net user Administrator mynewpass<br />
</code></p>
<p>The password is now changed. Finally, I gave the old Microsoft 3-finger salute (ctrl+alt+del) and logged on using the username/password I just created.  Woot!</p>
<p>WARNING: If this is a domain controller or using active directory, I have read that this trick is not advisable and may cause you some file permission headaches.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2007/05/22/recovering-a-lost-nt-40-administrator-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launch Parallels Windows App From the OSX Dock</title>
		<link>http://verysimple.com/2006/12/03/launching-parallels-windows-apps-from-the-osx-dock/</link>
		<comments>http://verysimple.com/2006/12/03/launching-parallels-windows-apps-from-the-osx-dock/#comments</comments>
		<pubDate>Sun, 03 Dec 2006 19:55:11 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=67</guid>
		<description><![CDATA[Update: The proof of concept that I did here was actually implemented as a feature into Parallels version 2.5. Did my idea inspire them or where they already working on it&#8230;? The world may never know! My humble idea had it&#8217;s 15 minutes of fame on the social network sites. Alas, this hack is no [...]]]></description>
			<content:encoded><![CDATA[<p><em>Update: The proof of concept that I did here was actually implemented as a feature into Parallels version 2.5.  Did my idea inspire them or where they already working on it&#8230;?  The world may never know!  My humble idea had it&#8217;s 15 minutes of fame on the social network sites.  Alas, this hack is no longer necesary for launching Windows applications.  However, it still may be interesting and useful as a crude messaging system between the host and guest OS.  With that I present the original article:</em></p>
<p>With the latest version of Parallels coherence mode you can run Windows apps yet have the Windows OS itself transparent.  This creates the visual effect that you are running Windows apps within OSX.  The coherence feature is still a little rough but it got my gears spinning and I saw some amazing possibilities.  The illusion doesn&#8217;t seem quite complete to me without being able to launch Windows apps from the Dock.  I created this simple app as a proof of concept that it could be easily done.  It&#8217;s simple but it works!</p>
<p>You can try it out for yourself: <a href="http://www.verysimple.com/blog/wp-content/uploads/2006/12/docksync_v01.zip">Download docksync_v01.zip</a><strong> </strong></p>
<p><em>The app requires .NET Framework 2.0 which you can install from Windows Update</em></p>
<p>Update: Grab Matt&#8217;s add-on <a href="http://farmproject.object-farm.org/blog/?p=4" target="_blank">DockSyncOSX</a> and you can drag/drop Windows Shortcuts!</p>
<p><strong>Demo Video</strong></p>
<p><strong>How does it work?</strong></p>
<p>Obviously there is some communication between OSX and Windows already through parallels.  But, not having access to that API, I decided to create a simple app on the Windows side that basically monitors a shared directory.  On the OSX side, you simply create a specially crafted text file in that directory to send a command over to Windows.  Any OSX method to generate a text file can be used.  Just to keep things simple, I used a shell script that can be executed by double-clicking an icon.  The result is crude but it works and hopefully might inspire someone to take it a little further.</p>
<p>Here&#8217;s a screenshot of the Windows app that&#8217;s monitoring for commands:</p>
<p><img src="http://verysimple.com/wp-content/uploads/2006/12/docksync.png" alt="docksync.png" /></p>
<p>This is being released with no license so use the code at your own risk.  If you have any suggestions or updates, please post them here.  In particular if you know of an cleaner way to trigger the creation of the task file on the OSX side, that would be cool.  Preferably something that people can create and edit without having to compile.</p>
<p><strong><a href="http://www.verysimple.com/blog/wp-content/uploads/2006/12/docksync_v01.zip" id="p65">Download docksync_v01.zip</a> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2006/12/03/launching-parallels-windows-apps-from-the-osx-dock/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>How Windows Apps will Run on OSX</title>
		<link>http://verysimple.com/2006/12/01/how-windows-apps-will-run-on-osx/</link>
		<comments>http://verysimple.com/2006/12/01/how-windows-apps-will-run-on-osx/#comments</comments>
		<pubDate>Sat, 02 Dec 2006 03:04:56 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=64</guid>
		<description><![CDATA[All of us who are into the Windows on OSX thing via bootcamp, parallels, VMWare, etc have been hearing of a mysterious ability to actually run windows applications right there on the OSX desktop. How would this be done &#8211; will Apple write some sort of API wrapper to run Windows Applications? Will bootcamp mysteriously [...]]]></description>
			<content:encoded><![CDATA[<p>All of us who are into the Windows on OSX thing via bootcamp, parallels, VMWare, etc have been hearing of a mysterious ability to actually run windows applications <em>right there</em> on the OSX desktop. How would this be done &#8211; will Apple write some sort of API wrapper to run Windows Applications? Will bootcamp mysteriously merge with OSX? What does this all mean?</p>
<p>Well I have seen the future.  And it is not quite what I was expecting.</p>
<p style="text-align: center"><img border="1" alt="Windows on OSX (Small)" src="http://verysimple.com/wp-content/uploads/2006/12/winx_sm.jpg" /></p>
<p style="text-align: center"><a class="imagelink" title="Windows on OSX (Medium)" href="http://verysimple.com/wp-content/uploads/2006/12/winx_med.jpg" rel="shadowbox[sbpost-64];player=img;"><img alt="Windows on OSX (Medium)" src="http://verysimple.com/wp-content/uploads/2006/12/winx_med-150x150.jpg" /></a></p>
<p>I&#8217;ve been playing around with the latest beta version of Parallels, which is now available for download from the <a target="_blank" href="http://forum.parallels.com/thread5997.html">parallels forums</a>. There&#8217;s a surprising amount of new feature for a minor version update, but one that I found strange and interesting is a feature called &#8220;Coherence Mode.&#8221;  Coherence mode is supposed to allow you to run windows applications right on the OSX desktop.</p>
<p>As you can see from the screenshot, it really does visually look like you are running a windows application right there on the desktop.  Since you can drag your mouse around and grab various windows in either Windows or OSX, it really does somewhat feel like the apps are running in OSX too&#8230; kinda! What Parallels seems to have done is basically to have windows running over the top of OSX, but visually hide the actual desktop.  So, it is more or less just a visual trick. One wierd thing that you&#8217;ll notice from the screenshot is that the windows taskbar is floating just above the OSX dock.  I&#8217;m sure Apple fanboys will struggle to keep their lunch down at the sight of it! Even I find it a ugly.</p>
<p>In addition to the Coherence Mode feature, Parallels now supports drag-n-drop between the two operating systems.  This feature works really great.  Though it is again some amount of visual trickery again, since files could be easily copied through the virtual shared directories.  You can&#8217;t drag a file from a windows app to a mac app &#8211; now <em>that </em>would be cool!  But, it&#8217;s seamless and this is a really nice feature.</p>
<p>All in all, I think they are on the right track.  If they can get the drag-n-drop working a little better when in coherence mode, perhaps even dragging and dropping between applications, that would really make it feel like the windows app is truly running in OSX.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2006/12/01/how-windows-apps-will-run-on-osx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing OpenSSL on Windows</title>
		<link>http://verysimple.com/2006/03/30/installing-openssl-on-windows/</link>
		<comments>http://verysimple.com/2006/03/30/installing-openssl-on-windows/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 10:00:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=12</guid>
		<description><![CDATA[The following is my personal successful experience installing OpenSSL on Windows. However, my machine is loaded with development tools, so there is a chance that there is something installed on my computer that is not mentioned here and, unknowingly, serving some function. However, I&#8217;m pretty sure I&#8217;ve got most of it. UPDATE:. I am also [...]]]></description>
			<content:encoded><![CDATA[<p>The following is my personal successful experience installing OpenSSL on Windows.  However, my machine is loaded with development tools, so there is a chance that there is something installed on my computer that is not mentioned here and, unknowingly, serving some function.  However, I&#8217;m pretty sure I&#8217;ve got most of it.</p>
<p>UPDATE:.  I am also told that following my instructions may or may not result in a healthy binary, although it seemed to work for me. (Thanks to Thomas Hruska and the openssl.org users list for the info)</p>
<p>[i:18d3bd8262]&#8211; original walkthrough (ie, the hard way) &#8211;</p>
<p>A. Requirements:</p>
<p>1. Visual C++  (which, unfortunately is not a free software)   You can download nmake.exe by itself from [url]http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe[/url] however I am told that OpenSSL will only compile successfully if you have the full version of Visual C++.</p>
<p>2. ActiveState Perl.  This can be downloaded freely from [url]http://www.activestate.com/[/url]</p>
<p>3. Some way of decompressing a tar.gz file.  If you don&#8217;t already have anything, I recomment IZArc, which can be downloaded from [url]http://www.izsoft.dir.bg/izarc.htm[/url].  If you are familiar with unpacking tar.gz on unix, then you can use UNIX Utils (see below) instead.</p>
<p>4. UNIX Utils &#8211; obtained at [url]http://unxutils.sourceforge.net/[/url].  I don&#8217;t know for a fact that this is required, however I notice that compiles will many times fail because tar or gz or some other trivial unix command is not available.  If you notice any such errors during compile, grab UNIX utils.  If you do much compiling, just grab it anyway.</p>
<p>5. MASM assembler.  Download it from [url]http://www.masm32.com/[/url]  (this gets installed into your VC++ bin directory)</p>
<p>B. Preparation:</p>
<p>For VC++, if you didn&#8217;t elect to configure the command-line environment variables during installation, then you should run the batch file vcvars32.bat (which is in the VC++ directories somewhere) to set them.</p>
<p>MASM should include a bin directory and the contents are supposed to be installed into your VC++ bin directory as well.  If you put them somewhere else, make sure this location is in your Path.</p>
<p>Make sure the path to Perl executable is in your Path.</p>
<p>Make sure the path to UNIX utils is in your Path.  (I don&#8217;t know that this is absolutely necessary, but I have it set this way)</p>
<p>C. Installation</p>
<p>If everything is all set, installation should go as planned:</p>
<p>1. Download OpenSSL source from [url]http://www.openssl.org/[/url].  You will want to download the tar.gz that is marked as the &#8220;Latest&#8221; release.</p>
<p>2. Extract the tar.gz file using whatever method you like.  Move this directory to &#8220;C:\OSSL&#8221; (this is an arbitrary location for the purposes of easy explaination)</p>
<p>3. Open a DOS window, move to the C:\OSSL directory, and execute the following commands: (These instructions are taken from install.w32 which is included in the OpenSSL install folder.  I suggest you read it.)</p>
<p>&gt; perl Configure VC-WIN32<br />
&gt; ms\do_masm<br />
&gt; nmake -f ms\ntdll.mak</p>
<p>If everything went ok, you&#8217;ll not see any error messages.  If you do, the message should give some clue.  Things like &#8220;ml not a valid command&#8221; etc indicate you don&#8217;t have your environmental paths set up correctly.</p>
<p>Now that OpenSSL is compiled, there are are some tests you can run to make sure it&#8217;s ok.  Read install.w32 for info about these.  Finally, you can move the necessary parts to their permenant home on your system.  install.w32 recommends the following dos commands to do the trick (you can use windows explorer, though):</p>
<p>&gt; md c:\openssl<br />
&gt; md c:\openssl\bin<br />
&gt; md c:\openssl\lib<br />
&gt; md c:\openssl\include<br />
&gt; md c:\openssl\include\openssl<br />
&gt; copy /b inc32\openssl\*       c:\openssl\include\openssl<br />
&gt; copy /b out32dll\ssleay32.lib c:\openssl\lib<br />
&gt; copy /b out32dll\libeay32.lib c:\openssl\lib<br />
&gt; copy /b out32dll\ssleay32.dll c:\openssl\bin<br />
&gt; copy /b out32dll\libeay32.dll c:\openssl\bin<br />
&gt; copy /b out32dll\openssl.exe  c:\openssl\bin</p>
<p>Open SSL should be compiled and available now.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2006/03/30/installing-openssl-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Viewing Content.IE5 Content.MSO and OLK3 Folders</title>
		<link>http://verysimple.com/2006/03/30/viewing-contentie5-contentmso-and-olk3-folders/</link>
		<comments>http://verysimple.com/2006/03/30/viewing-contentie5-contentmso-and-olk3-folders/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 10:00:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=33</guid>
		<description><![CDATA[Windows, IE and MS Office keeps a cache of temporary files that is hidden from Windows Explorer. The location of these folders are C:\Documents and Settings\username\Local Settings\Temporary Internet Files\. Browse this folder &#8211; you&#8217;ll see that there are some files and such, but you don&#8217;t see any subdirectories. In order to make the special folders [...]]]></description>
			<content:encoded><![CDATA[<p>Windows, IE and MS Office keeps a cache of temporary files that is hidden from Windows Explorer.  The location of these folders are C:\Documents and Settings\username\Local Settings\Temporary Internet Files\.  Browse this folder &#8211; you&#8217;ll see that there are some files and such, but you don&#8217;t see any subdirectories.</p>
<p>In order to make the special folders visible, you have to remove the desktop.ini file inside Temporary Internet Files so that the folder is treated like a normal folder.  Additionally, so that Windows does not auto-generate the file on the next reboot, you have to create a dummy desktop.ini file</p>
<p>The problem is that the files are hidden and marked as system files so they are not so simple to delete as you would think!  You can do it, though, like so:</p>
<p>Open a DOS windows and navigate to C:\Documents and Settings\username\Local Settings\Temporary Internet Files</p>
<p>(username is replaced with your own username)</p>
<p>enter the following commands:</p>
<p>erase /as desktop.ini<br />
echo [.ShellClassInfo] &gt; desktop.ini</p>
<p>The first line deletes desktop.ini.  the /as switch tells the erase command to delete the file even though it is marked as a system file.  The echo line just creates another generic desktop.ini file.  If this file is not present, Windows will auto-generate it on the next reboot and the folders will be hidden again.</p>
<p>Now browse Temporary Internet Files again.  You&#8217;ll see some folders that were not previously visible.  These are your cache files and you can poke around to find and/or delete files.</p>
<p>If you like, you can do the same with the History folder as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2006/03/30/viewing-contentie5-contentmso-and-olk3-folders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

