<?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>SurlyJake &#187; windows</title>
	<atom:link href="http://www.surlyjake.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Jun 2010 21:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Windows 32 (x86) or 64 (AMD64) detection in batch files</title>
		<link>http://www.surlyjake.com/windows/windows-32-x86-or-64-amd64-detection-in-batch-files/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=windows-32-x86-or-64-amd64-detection-in-batch-files</link>
		<comments>http://www.surlyjake.com/windows/windows-32-x86-or-64-amd64-detection-in-batch-files/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 21:53:04 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[amd64]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[batch files]]></category>
		<category><![CDATA[processor architecture]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=556</guid>
		<description><![CDATA[While there are a lot of ways to detect for a 64 bit version of windows. you can test for %programFiles(x86)%, but handling the output and writing the IF comparisons is messy. In Batch files, you can easily check for architecture by using the &#8220;processor_architecture&#8221; variable. x86 versions of windows will have this set to [...]]]></description>
			<content:encoded><![CDATA[<p>While there are a lot of ways to detect for a 64 bit version of windows. you can test for %programFiles(x86)%, but handling the output and writing the IF comparisons is messy.</p>
<p>In Batch files, you can easily check for architecture by using the &#8220;processor_architecture&#8221; variable. x86 versions of windows will have this set to &#8220;x86&#8243;, and x64 versions &#8220;x64&#8243;. Heres an easy example:</p>
<pre><code>@echo off
IF %processor_architecture% == AMD64 echo This is a 64-bit version of windows
IF %processor_architecture% == x86 echo this is a 32-bit version of windows.
pause</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/windows/windows-32-x86-or-64-amd64-detection-in-batch-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstall ALL Versions of WinZip Batch Script</title>
		<link>http://www.surlyjake.com/windows/uninstall-all-versions-of-winzip-batch-script/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=uninstall-all-versions-of-winzip-batch-script</link>
		<comments>http://www.surlyjake.com/windows/uninstall-all-versions-of-winzip-batch-script/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 20:43:34 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[batch script]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[taskkill]]></category>
		<category><![CDATA[windows management instrumentation]]></category>
		<category><![CDATA[wmic]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=545</guid>
		<description><![CDATA[I have been struggling with this for quite a while, and ran into a lot of issues with all of the different versions on our network. There are people with 100 line .vbs scripts to do this, and I think this is much simpler: @echo off REM REM REM    Detects winzip and silently uninstalls REM   [...]]]></description>
			<content:encoded><![CDATA[<p>I have been struggling with this for quite a while, and ran into a lot of issues with all of the different versions on our network. There are people with 100 line .vbs scripts to do this, and I think this is much simpler:</p>
<pre><code>@echo off
REM
REM
REM    Detects winzip and silently uninstalls
REM    There is a un-stoppable pop-up window. so this will kill
REM    all instances of  IE after the UN-installation.
REM
REM
REM
taskkill /F /IM wzqkpick.exe
wmic product where "name like '%%winzip%%'" call Uninstall
REM
REM This section is for WinZip <12
REM
If Exist "%programfiles(x86)%\Winzip\winzip32.exe" GOTO 64
If Exist "%programfiles%\Winzip\winzip32.exe" "%programfiles%\WinZip\Winzip32.exe" /Uninstallx
taskkill /F /IM iexplore.exe
GOTO :END
:64
"%programfiles(x86)%\WinZip\Winzip32.exe" /Uninstallx
taskkill /F /IM iexplore.exe
:END</code></pre>
<p>For getting rid of WinZip 12, the magic happens in the 'wmic' line. It searches all of the installed product's names for "winzip" and will uninstall anything it finds. This only works for products that use MSI's. If you ran this outside of a batch file, you will have to use a single % percentage sign instead of the %% double percentage sign... Windows scripting sucks, and that's just the way it is. Same thing that happens in "FOR" loops. </p>
<p>I never knew anything about the Windows management instrumentation control (wmic) until now, but I will be sure to exploit it's features. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/windows/uninstall-all-versions-of-winzip-batch-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command line scp from linux(+BSD) to windows.</title>
		<link>http://www.surlyjake.com/linux/command-line-scp-from-linuxbsd-to-windows/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=command-line-scp-from-linuxbsd-to-windows</link>
		<comments>http://www.surlyjake.com/linux/command-line-scp-from-linuxbsd-to-windows/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 23:37:00 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=204</guid>
		<description><![CDATA[i traveling and wanted to copy over my logs to find out what was happening on my server. didn&#8217;t want to install a client like filezilla or another GUI. Using the command line SCP utility, you can grab remote files securely over SSH. You can grab the executable from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (pscp.exe is what you want) [...]]]></description>
			<content:encoded><![CDATA[<p>i traveling and wanted to copy over my logs to find out what was happening on my server. didn&#8217;t want to install a client like filezilla or another GUI. Using the command line SCP utility, you can grab remote files securely over SSH. You can grab the executable from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html (pscp.exe is what you want) then, in the command line on the windows client machine, type something like this:</p>
<pre>pscp -r -P 22 jimmy@johnscomputer.com:/home/jimmy/stuff "c:\documents and settings\jimmy\Desktop"</pre>
<p>The &#8220;-r&#8221; makes it grab the whole folder, and everything under. the &#8220;-P&#8221; specifies a port (mostly useful if you aren&#8217;t using 22. make sure it is capital).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/linux/command-line-scp-from-linuxbsd-to-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conference rooms with outlook and exchange 2007</title>
		<link>http://www.surlyjake.com/windows/conference-rooms-with-outlook-and-exchange-2007/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=conference-rooms-with-outlook-and-exchange-2007</link>
		<comments>http://www.surlyjake.com/windows/conference-rooms-with-outlook-and-exchange-2007/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 15:18:14 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[exchange 2007]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[exchange]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=183</guid>
		<description><![CDATA[Exchange Server 2007 allows administrators to create objects such as Mailbox, Contacts, Mail User, and Distribution Groups. Here are the steps needed to create a room mailbox object: Open the Exchange Management Console. Expand Recipient Configuration. Click on Mailbox. In the Mailbox pane, click on New Mailbox&#8230; For our purposes, we will pick &#8220;room mailbox&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange Server 2007 allows administrators to create objects such as Mailbox, Contacts, Mail User, and Distribution Groups. Here are the steps needed to create a room mailbox object:</p>
<ol>
<li>Open the Exchange Management Console.</li>
<li>Expand Recipient Configuration.</li>
<li>Click on Mailbox.</li>
<li>In the Mailbox pane, click on New Mailbox&#8230;</li>
<li>For our purposes, we will pick &#8220;room mailbox&#8221; This is a mailbox to be assigned specifically to Meeting Rooms. Its associated user account will be disabled in Active Directory.</li>
<li>In the User Type window, we can choose either to create a new user or to assign an existent user to the new resource mailbox. If we choose to assign it to an existent user, we will have to check if the account does not already have a mailbox associated to it. Click Next to continue.</li>
<li>In the User Information window, we should fill out the user&#8217;s personal information and select the Organization Unit where it will be created. After that click on Next</li>
<li>On the Mailbox Settings page, we can define the mailbox information such as Alias, Mailbox Server, and Mailbox Store where the new resource mailbox will be located. The policies for Mailbox and ActiveSync can also be defined in this step. We can choose which fields we are going to fill out and then click Next to continue.</li>
<li>In the New Mailbox window, we will get a summary of all the information that we have selected in the previous steps. These parameters will be used by the cmdlet New-Mailbox for the creation of this resource mailbox object. To create the resource mailbox, click on New.</li>
<li>In the Completion window, we will see the cmdlet New-mailbox and the parameters that we used in the creation process of this new resource mailbox.</li>
<li>Grant yourself and users who will manage the mailbox &#8220;full access&#8221;. Right-click on the mailbox you just created and  select manage full access permission.</li>
<li>Sign into OWA.</li>
<li>Click the dropdown next to your username on the upper-right corner of the screen and open up the room mailbox you just created.</li>
<li>go to Options, then Resource settings</li>
<li>go through these.</li>
<li>Add the room mailbox to outlook.</li>
<li>go to the calendar, right-click on the room&#8217;s calendar, go to properties.</li>
<li>Under the permissions tab, set the default permission to &#8220;reviewer&#8221;. This will let everyone see what is going on in the room when they are scheduling</li>
</ol>
<p>props to: <a href="http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/managing-resource-mailboxes-exchange-server-2007-part1.html" target="_blank">http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/managing-resource-mailboxes-exchange-server-2007-part1.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/windows/conference-rooms-with-outlook-and-exchange-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP&#8217;s /etc/hosts file</title>
		<link>http://www.surlyjake.com/windows/windows-xps-etchosts-file/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=windows-xps-etchosts-file</link>
		<comments>http://www.surlyjake.com/windows/windows-xps-etchosts-file/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 22:48:20 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=161</guid>
		<description><![CDATA[To my surprise, XP has an equivalent to unix&#8217; &#8220;/etc/hosts&#8221; file. you can find it here: c:\WINDOWS\system32\drivers\etc\hosts&#8217;]]></description>
			<content:encoded><![CDATA[<p>To my surprise, XP has an equivalent to unix&#8217; &#8220;/etc/hosts&#8221; file. you can find it here:<br />
c:\WINDOWS\system32\drivers\etc\hosts&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/windows/windows-xps-etchosts-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Samba share. no password. read only</title>
		<link>http://www.surlyjake.com/linux/debian-etch/debian-samba-share-no-password-read-only/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=debian-samba-share-no-password-read-only</link>
		<comments>http://www.surlyjake.com/linux/debian-etch/debian-samba-share-no-password-read-only/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 18:28:24 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=63</guid>
		<description><![CDATA[Just install samba server: apt-get install samba edit the config: nano /etc/samba/smb.conf set security to &#8220;share&#8221; security = share and guest account to nobody guest account = nobody then you just need to create your share like this: [guest share] comment = a guest share path = /path/to/files browseable = yes read only = yes [...]]]></description>
			<content:encoded><![CDATA[<p>Just install samba server:</p>
<pre><code>apt-get install samba
</code></pre>
<p>edit the config:</p>
<pre><code>nano /etc/samba/smb.conf
</code></pre>
<p>set security to &#8220;share&#8221;</p>
<pre><code>security = share
</code></pre>
<p>and guest account to nobody</p>
<pre><code>guest account = nobody
</code></pre>
<p>then you just need to create your share like this:</p>
<pre><code>[guest share]
comment = a guest share
path = /path/to/files
browseable = yes
read only = yes
guest ok = yes
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/linux/debian-etch/debian-samba-share-no-password-read-only/feed/</wfw:commentRss>
		<slash:comments>0</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! -->