<?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>plee.me &#187; windows vista</title>
	<atom:link href="http://blog.plee.me/tag/windows-vista/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.plee.me</link>
	<description>About software, technology and random things</description>
	<lastBuildDate>Wed, 04 Jan 2012 18:52:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Starting Programs With Elevated Privileges (Windows Vista/7, UAC, Shortcut)</title>
		<link>http://blog.plee.me/2010/06/starting-programs-with-elevated-privileges-windows-vista7-uac-shortcut/</link>
		<comments>http://blog.plee.me/2010/06/starting-programs-with-elevated-privileges-windows-vista7-uac-shortcut/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 10:54:57 +0000</pubDate>
		<dc:creator>pl</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[combination]]></category>
		<category><![CDATA[elevated]]></category>
		<category><![CDATA[elevation]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[quick search]]></category>
		<category><![CDATA[rights]]></category>
		<category><![CDATA[run as administrator]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[start menu]]></category>
		<category><![CDATA[uac]]></category>
		<category><![CDATA[user account control]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://blog.plee.me/?p=103</guid>
		<description><![CDATA[If you are using Windows Vista or 7, of course you know the UAC. It is the reason why many setup programs and programs that need more privileges for execution make the UAC window pop up and ask for elevation. Some programs, however, like the  command prompt cmd.exe, can run both with or without elevated [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using Windows Vista or 7, of course you know the UAC. It is the reason why many setup programs and programs that need more privileges for execution make the UAC window pop up and ask for elevation. Some programs, however, like the  command prompt <em>cmd.exe</em>, can run both with or without elevated rights, which may lead to problems (for example trying to use <em>route.exe</em> from the unelevated command prompt).</p>
<p>In order to circumvent that problematic, you surely know that you can just open the <em>Start Menu</em>, type the name of the program into the <em>quick search</em> field, wait for it to show up in the results, right-click it and choose <em>"Run as administrator"</em>. I found that it was a little to bothersome to use the mouse in addition to typing, especially when you have to elevate quite often in a short period of time.</p>
<p>What is faster is the shortcut I recently found out about. Type the name of the program into the <em>Start Menu</em>'s <em>quick search</em> as usual, and instead of right-clicking, just press <strong><em>Ctrl+Shift+Enter</em></strong>. That way, you run the selected program from the list with elevation. You don't even necessarily have to wait for the search results to show up: for example, just type in <em>cmd</em> and press <em>Ctrl+Shift+Enter</em>.</p>
<p>This is a nice and nifty time saver.</p>
<p>Of course, there is also the method to just create a shortcut, go into its properties, click on the <em>"Advanced..."</em> button on the <em>"Shortcut"</em> tab and tick the <em>"Run as administrator"</em> checkbox. This shortcut will then automatically ask for elevation each time. Downside: You have to use another one in order to run it without elevated privileges.</p>
<p>Also note that the key combination <em>Ctrl+Shift+Enter</em> only seems to work in the Start Menu quick search box. I tried <em>Start =&gt; Run</em> with it (or: <em>Windows+R</em>), but it had no effect. Too bad.</p>
<p>I hope that was helpful to you and that it will save you as much time and hassle as it did for me.</p>
<p>Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.plee.me/2010/06/starting-programs-with-elevated-privileges-windows-vista7-uac-shortcut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN on Windows Vista / 7 &#8211; Ping says: TTL expired in transit</title>
		<link>http://blog.plee.me/2009/10/openvpn-on-windows-vista-7-ping-says-ttl-expired-in-transit/</link>
		<comments>http://blog.plee.me/2009/10/openvpn-on-windows-vista-7-ping-says-ttl-expired-in-transit/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 22:12:22 +0000</pubDate>
		<dc:creator>pl</dc:creator>
				<category><![CDATA[Guides / How Tos]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[expired in transit]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[ttl]]></category>
		<category><![CDATA[uac]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://blog.plee.me/?p=79</guid>
		<description><![CDATA[Hi there! When I set up my VPN with OpenVPN yesterday, I found out about a little difficulty under Windows Vista and 7. Thankfully it was not that much of a hurdle as the UAC was the reason for this bug just like for a series of other bugs with different software I experimented with [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there!</p>
<p>When I set up my VPN with <a href="http://www.openvpn.net/">OpenVPN</a> yesterday, I found out about a little difficulty under Windows Vista and 7. Thankfully it was not that much of a hurdle as the UAC was the reason for this bug just like for a series of other bugs with different software I experimented with over the last few weeks. Nevertheless I hope that this piece of information helps you get rid of the following problem.</p>
<p>If you have set up your VPN and got it running without any major problems, and everything seems to be running just fine (connecting works), but you still can't establish connections to the other machines, you might find that pinging returns the error message <em>"TTL expired in transit"</em>. This is due to the fact that Vista (or Windows 7) needs administrator privileges to adjust your computer's settings properly in order to function when you've connected to the VPN successfully. I think it's about the route.exe process, but I'm not 100% sure.</p>
<p>Windows Vista and 7 have the equally famous as infamous UAC (User Account Control) that prevents even administrator privileged accounts from executing programs with administrator rights by default. In order to enable these rights you have to right-click the program (or program shortcut) and click on <em>"Run as administrator"</em> next to the yellow-blue shield if it does not run with administrator rights exclusively anyway (in which case you'd see the yellow-blue shield in the bottom right corner of the program icon itself and would be asked for administrator privileges automatically when you launch it as any other program).</p>
<p><strong>Please note that the following steps are for on-demand OpenVPN connections. For automatic connections, read further below.</strong></p>
<h2>OpenVPN on-demand connection</h2>
<p>So what you need to do is launch the connection with UAC. But how do you do that if you usually launch OpenVPN connections with a right-click and <em>"Start OpenVPN on this config file"</em>? Even creating a shortcut to the .ovpn file doesn't give you the <em>"Run as administrator"</em> option.</p>
<p>A simple solution is to create a batch file that simply changes to the work directory and executes .ovpn with the openvpn.exe.</p>
<p>Example file "ovpn_connection1.bat":</p>
<pre>@echo off
D:
cd \Programs\OpenVPN\config-ondemand\
D:\Programs\OpenVPN\bin\openvpn.exe D:\Programs\OpenVPN\config-ondemand\connection1.ovpn</pre>
<p>This batch file has the following parameters/assumptions:</p>
<ul>
<li>Your OpenVPN dir is on the D: partition (otherwise change the drive letter in the respective paths and leave the <em>"D:"</em> line out altogether).</li>
<li>The path to your OpenVPN dir is <em>D:\Programs\OpenVPN</em>.</li>
<li>Your connection configuration file is located in the <em>config-ondemand</em> subdirectory.</li>
</ul>
<p>Basically, you just switch to the work directory and execute OpenVPN's <em>openvpn.exe</em> located in its <em>bin</em> dir on the configuration. In a way, this works as a shortcut, but just as an executable batch.</p>
<p>The <em>@echo off</em> part is just so that you won't see the other commands displayed in the window each time you start the connection.</p>
<p>Now you either make a shortcut to this batch file or use it itself.</p>
<p>Whenever you want to start the connection, <em>right-click</em> on it and select <em>"Run as administrator"</em>.</p>
<p>Done! Test your ping and it should be fine.</p>
<h2>OpenVPN automatic connection</h2>
<p>All you need to do is to move the .ovpn configuration file and all the other required files into the <em>config</em> subdirectory of your OpenVPN installation.</p>
<p>When the OpenVPN service (Start =&gt; Run =&gt; services.msc) is started, it will look for .ovpn files in its <em>config</em> subdirectory and execute them all - with SYSTEM privileges. No UAC circumvention needed.</p>
<p>So just set your OpenVPN service to <em>"Automatic"</em> and you're good to go!</p>
<h2>OpenVPN on-demand connection with OpenVPN service</h2>
<p>Just do what is described under the "OpenVPN automatic connection" paragraph except for setting the service to <em>"Manual"</em>.</p>
<p>Now each time you want to launch the connection, you just need to type <em>"net start OpenVPNService"</em>. To stop it, type <em>"net stop OpenVPNService"</em>.</p>
<h2>Note on using connections with the OpenVPN service</h2>
<p>As the OpenVPN service feature executes *all* .ovpn configuration in the <em>config</em> subdirectory, there is no way to manually interfere with one particular connection of that directory and let's say disable it shortly. All <em>config</em>-connections are handled as a group with the OpenVPN service.</p>
<p>So if you need manual independency, look at the on-demand section.</p>
<p>I hope this wasn't all too fuzzy with the wordings and such.</p>
<p>Please comment or contact me if you have any questions on this matter.</p>
<p>Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.plee.me/2009/10/openvpn-on-windows-vista-7-ping-says-ttl-expired-in-transit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling Windows Vista / 7 Explorer&#8217;s Automatic Folder Type Discovery</title>
		<link>http://blog.plee.me/2009/08/disabling-windows-vista-7-explorers-automatic-folder-type-discovery/</link>
		<comments>http://blog.plee.me/2009/08/disabling-windows-vista-7-explorers-automatic-folder-type-discovery/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:27:48 +0000</pubDate>
		<dc:creator>pl</dc:creator>
				<category><![CDATA[Guides / How Tos]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bagmru]]></category>
		<category><![CDATA[bags]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[discovery]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://blog.plee.me/?p=65</guid>
		<description><![CDATA[Hey! I very recently installed Windows 7 on my desktop computer and I'm loving it so far. One of the major things that bugged me though was the new Explorer behavior. The automatic folder type discovery just goes ahead and tries to determine a folder type just by looking at how many (or if there [...]]]></description>
			<content:encoded><![CDATA[<p>Hey!</p>
<p>I very recently installed Windows 7 on my desktop computer and I'm loving it so far.</p>
<p>One of the major things that bugged me though was the new Explorer behavior. The automatic <em>folder type discovery</em> just goes ahead and tries to determine a folder type just by looking at how many (or if there are) files of a certain type (pictures, videos, songs, ...) are in the current folder, and then it adjusts the viewing settings accordingly. For example, if you open a folder that contains mainly video files, it would show those with big icons instead of my default, a detailed list. Pictures are displayed as thumbnails.</p>
<p>Disabling this behavior proved to be interestingly difficult. As with most things that have been declared a default setting by Microsoft, it luckily can be done - but only via registry.</p>
<p><strong>First we need to delete our current folder type settings.</strong></p>
<ul>
<li>Close all open Explorer windows.</li>
<li>Open the registry editor with <em>Start =&gt; Run =&gt; regedit</em> and browse to <em>HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell</em>.</li>
<li>Delete and confirm the deletion of the keys <em>BagMRU</em> and <em>Bags</em>.</li>
<li>Now create a Key (right-click on the current key in the left pane and select <em>New =&gt; Key</em>) called <em>Bags</em>.</li>
<li>Create a subkey for <em>Bags</em> called <em>AllFolders</em>.</li>
<li>Create a subkey for <em>AllFolders</em> called <em>Shell</em>.</li>
<li>Create a String value (right-click in the right pane and select <em>New =&gt; String Value</em>) called <em>FolderType</em> and set the value to <em>NotSpecified</em>.</li>
<li>That's it for Windows 7. Please read the note for Windows Vista x64 below. Otherwise, just reboot and your new settings should be applied.</li>
</ul>
<p>That's it for Windows 7. If you're using Windows Vista x64, it might be possible that there is a copy of (or a similar) the <em>Local Settings\Software\Microsoft\Windows\Shell</em> key in <em>HKEY_CURRENT_USER\Software\Classes\Wow6432Node</em>. I could not confirm this for Windows 7, though I am using the 64 bit version (it just had a <em>CLSID</em> subkey, nothing more). In that case, delete the <em>Shell\Bags</em> and <em>Shell\BagMRU</em> folders like I told you above before finishing your modifications with a reboot.</p>
<p><strong>Warning:</strong> as always, playing around with the Windows registry can be dangerous when done incorrectly. If you do not feel safe about it, make sure to back up the keys you're about to modify via File =&gt; Export, or leave it altogether. I do not take any responsibility for any damage, nor do I give any guarantee that the steps I provided here will work for you. At least they worked for me.</p>
<p>Hopefully that was of help to you <img src='http://blog.plee.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I discovered the initial instructions on <a href="http://www.mydigitallife.info/2007/11/08/disable-automatic-folder-type-discovery-for-templates-in-vista/">mydigitallife.info</a>. Thank's so much <img src='http://blog.plee.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Had a hard time finding a guide for that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.plee.me/2009/08/disabling-windows-vista-7-explorers-automatic-folder-type-discovery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

