<?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>jim80.net &#187; Windows</title>
	<atom:link href="http://blog.jim80.net/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jim80.net</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 04:15:40 +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>No Time For Narrative &#8211; Solaris 11 Express ZFS and NFS share to VMWare ESXi 4.1u1</title>
		<link>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1</link>
		<comments>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 23:36:46 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ESXi 4.1]]></category>
		<category><![CDATA[mirror rpool]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Solaris 11 Express]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=481</guid>
		<description><![CDATA[Welcome to my scratchpad. See links for some excellent write ups. This article is based on Solaris 11 Express and VMWare ESXi 4.1. Step 0: Build your hardware and install Solaris. HCL: http://www.oracle.com/webfolder/technetwork/hcl/index.html Step 1: Mirror the rpool zpool status #figure out what&#8217;s already allocated cfgadm -s "select=type(disk)" #list disks fdisk -W - [rootdisk2] #check [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to my scratchpad. See links for some excellent write ups.</p>
<p>This article is based on Solaris 11 Express and VMWare ESXi 4.1.</p>
<p><strong>Step 0: Build your hardware and install Solaris. </strong></p>
<p>HCL: <a href="http://www.oracle.com/webfolder/technetwork/hcl/index.html">http://www.oracle.com/webfolder/technetwork/hcl/index.html </a></p>
<p><strong>Step 1: Mirror the rpool</strong></p>
<p><code>zpool status  </code>#figure out what&#8217;s already allocated</p>
<p><code>cfgadm -s "select=type(disk)"  </code>#list disks</p>
<p><code>fdisk -W - [rootdisk2]  </code>#check</p>
<p><code>fdisk -B [rootdisk2]  </code>#apply a default Solaris partition to the disk</p>
<p><code>fdisk -W - [rootdisk2]  </code>#check again</p>
<p><code>prtvtoc /dev/rdsk/[rootdisk1] | fmthard -s - /dev/rdsk/[rootdisk2]  </code>#slice and dice! You must define slices for rpools, so this step mirrors the original disk&#8217;s slice-age to the second root disk </p>
<p><code>zpool attach -f rpool [rootdisk1] [rootdisk2]  </code>#attach, not add. Attach = mirror. Add =  stripe.</p>
<p><code>zpool status  </code>#check</p>
<p><code>installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/[rootdisk2]  </code>#install grub onto second boot disk</p>
<p><code>zpool status  </code>#check again</p>
<p>see: <a href="http://constantin.glez.de/blog/2011/03/how-set-zfs-root-pool-mirror-oracle-solaris-11-express">http://constantin.glez.de/blog/2011/03/how-set-zfs-root-pool-mirror-oracle-solaris-11-express</a></p>
<p> For more on rpool manipulation, namely on how to shrink an rpool, see: <a href="http://blogs.oracle.com/mock/entry/how_to_shrink_a_mirrored">http://blogs.oracle.com/mock/entry/how_to_shrink_a_mirrored</a></p>
</p>
<p><strong>Step 2: Configure networking</strong></p>
<p><code>ifconfig -a  </code>#cheat and take advantage of nwam&#8217;s device lists</p>
<p><code>svcadm disable network/physical:nwam  </code>#disable nwam</p>
<p><code>svcadm enable network/physical:default  </code>#then enable the default config tools</p>
<p><code>ipadm create-if e1000g0  </code>#or whatever your nic is</p>
<p><code>ipadm show-if  </code>#check</p>
<p><code>ipadm create-addr -T static -a mg.mt.ip.addy/prefix e1000g0/v4  </code>#create the address</p>
<p><code>ipadm show-addr  </code>#confirm</p>
<p>#link aggregate group (LACP)</p>
<p><code>dladm create-aggr -l [nic2] -l [nic 3]  </code>#create link aggregate group:</p>
<p>Then the same ipadm commands</p>
<p><code>ipadm create-if aggr1  </code>#configure aggr1 for persistence</p>
<p><code>ipadm show-if  </code>#confirm it was added, should show down.</p>
<p><code>ipadm create-addr -T static -a 1.2.3.4/24 aggr1/v4  </code>#create the address</p>
<p><code>ipadm show-addr  </code>#confirm it was added, show-if should now show &#8220;OK&#8221;</p>
<p><code>netstat -rn  </code>#check routing tables</p>
<p><code>route -p add default 1.2.3.1  </code>#add persistent default route</p>
<p><code>vi /etc/resolv.conf  </code>#configure nameservers</p>
<p><code>vi /etc/hosts  </code>#configure name</p>
<p><code>vi /etc/nsswitch.conf  </code>#enable dns lookups for &#8220;hosts&#8221; line</p>
<p><code>svcsadm restart ssh  </code>#restart ssh after modifying networking</p>
<p><code>ping 4.2.2.1  </code>#ping Level3&#8242;s DNS resolvers to confirm routing</p>
<p><code>reboot  </code>#reboot to confirm persistency</p>
</p>
<p><strong>Step 3: Do your AD thing. I know you love it. </strong></p>
<p>read this: <a href="http://blog.scottlowe.org/2006/08/15/solaris-10-and-active-directory-integration/">http://blog.scottlowe.org/2006/08/15/solaris-10-and-active-directory-integration/</a></p>
<p>also: <a href="http://download.oracle.com/docs/cd/E19963-01/html/821-1449/index.html">http://download.oracle.com/docs/cd/E19963-01/html/821-1449/index.html</a></p>
</p>
<p><strong>Step 4: Configure ZFS</strong></p>
<p><code>format  </code>#to present list of disks. exit out, leaving the list in screen buffer</p>
<p>or: <code>cfgadm -s "select=type(disk)"</code></p>
<p><code>zpool create tank mirror c7t0d0 c7t1d0 mirror c7t2d0 c7t3d0 cache c7t4d0  </code>#create your main zpool. This is 4 drives in raid 10 and a read cache. use &#8220;log c#t#d#&#8221; to add a ZIL device</p>
<p><code>zfs set dedup=on tank  </code>#enable dedup</p>
<p><code>zfs set compression=on tank  </code>#enable compression.</p>
<p></code></p>
<p>Note that changes made to the pool will apply to its children when they are created.</p>
</p>
<p><code>zfs create tank/VMOS  </code>#create your ESXi share</p>
<p><code>zfs set sharenfs=none,nosuid,root=1.2.3.xx:1.2.3.xy tank/VMOS  </code>#share with 1.2.3.xx and 1.2.3.xy</p>
</p>
<p>From esxi 4.1:</p>
</p>
<p><code>esxcfg-nas -a -o IP.Or.Host.Name -s /tank/VMOS [esxiDatastoreName]</code>#  <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1005057">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1005057</a></p>
<p>ZFS /Solaris links</p>
<p><a href="http://lildude.co.uk/zfs-cheatsheet">http://lildude.co.uk/zfs-cheatsheet</a></p>
<p><a href="http://download.oracle.com/docs/cd/E19963-01/index.html">http://download.oracle.com/docs/cd/E19963-01/index.html</p>
<p></a></p>
<p>iSCSI - Solaris 11 = use COMSTAR.</p>
<p><a href="http://wikis.sun.com/display/OpenSolarisInfo200906/Configuring+an+iSCSI+Storage+Array+With+COMSTAR+%28Task+Map%29">http://wikis.sun.com/display/OpenSolarisInfo200906/Configuring+an+iSCSI+Storage+Array+With+COMSTAR+%28Task+Map%29</p>
<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2011/08/07/no-time-for-narrative-solaris-11-express-zfs-and-nfs-share-to-vmware-esxi-4-1u1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful! AD Attributes Spreadsheet</title>
		<link>http://blog.jim80.net/2011/06/22/useful-ad-attributes-spreadsheet/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=useful-ad-attributes-spreadsheet</link>
		<comments>http://blog.jim80.net/2011/06/22/useful-ad-attributes-spreadsheet/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 19:48:27 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[AD]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory Attributes]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=470</guid>
		<description><![CDATA[I don&#8217;t understand why this was so difficult to find. But now that I have found it, I want to share it with teh world. Find in the below link a very useful spreadsheet of AD Attributes, as well as good information for reference. http://www.rlmueller.net/UserAttributes.htm]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t understand why this was so difficult to find. But now that I have found it, I want to share it with teh world. Find in the below link a very useful spreadsheet of AD Attributes, as well as good information for reference.</p>
<p><a href="http://www.rlmueller.net/UserAttributes.htm">http://www.rlmueller.net/UserAttributes.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2011/06/22/useful-ad-attributes-spreadsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open a Command Prompt with Local System privileges</title>
		<link>http://blog.jim80.net/2011/02/22/open-a-command-prompt-with-local-system-privileges/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=open-a-command-prompt-with-local-system-privileges</link>
		<comments>http://blog.jim80.net/2011/02/22/open-a-command-prompt-with-local-system-privileges/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 02:16:40 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=463</guid>
		<description><![CDATA[So, we both know that you can use the &#8220;AT&#8221; command (http://support.microsoft.com/kb/313565) to schedule jobs as Local System. Guess what? Use it to open a command prompt as local system! Genius! I can&#8217;t take credit though, link to source. Copy Pasta below: Windows XP 1. Open a command prompt > CMD 2. Run the &#8216;at&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>So, we both know that you can use the &#8220;AT&#8221; command (http://support.microsoft.com/kb/313565) to schedule jobs as Local System. </p>
<p>Guess what? Use it to open a command prompt as local system! Genius! I can&#8217;t take credit though, <a href="http://forum.landesk.com/support/docs/DOC-1645/version/2">link to source</a>.</p>
<p>Copy Pasta below: </p>
<p><strong>Windows XP</strong><br />
1. Open a command prompt  > CMD<br />
2. Run the &#8216;at&#8217; command with the following  syntax:   &#8220;at hh:mm /interactive cmd &#8221;<br />
3. At the time in the command a new command prompt window will open.  This window is running as local system.<br />
4. In the new command window test the permissions. Example: &#8220;net use * server\share&#8221;</p>
<p>hh:mm = is the time in 24 hour time at which you want the new DOS box to open.</p>
<p><strong>Windows Vista/7</strong><br />
Download PSTools from <a href="http://technet.microsoft.com/en-us/sysinternals/default.aspx">SysInternals</a>. You will use the file named PSexec.exe.</p>
<p>1. Find  the shortcut to the CMD prompt (Start, type CMD in the search box and  wait for it to locate it…should be pretty fast). Once it locates it,  right click it and choose to “Run as administrator”. (Do this even if  your user account is an admin.)<br />
2. Once the command prompt opens, change the directory  path to the location of PSexec (unless psexec is in a folder in your  PATH already).<br />
3. Type the following line.  (-i is for interactive, -s is to run as system)</p>
<p> psexec -i -s cmd.exe</p>
<p>4. Once you hit enter, another command prompt will open that will be running as the system account (NT Authority\System).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2011/02/22/open-a-command-prompt-with-local-system-privileges/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up Hyper-V with NAT</title>
		<link>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-hyper-v-with-nat</link>
		<comments>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 05:59:22 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[RRAS]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=344</guid>
		<description><![CDATA[This post was originally posted by me at http://forums.serverbeach.com/showthread.php?t=6411. I&#8217;ve edited out the ServerBeach specific stuff and will post pictures&#8230;. soonish. The following link has some great pictures not included here. http://sqlblog.com/blogs/john_paul_c&#8230;h-hyper-v.aspx I&#8217;ll add some nice little pictures here once I get some screenshots together. CONFIGURE HYPERV 1. Configure an &#8220;Internal&#8221; HyperV network 2. Set each [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post was originally posted by me at </em><a href="http://forums.serverbeach.com/showthread.php?t=6411"><em>http://forums.serverbeach.com/showthread.php?t=6411</em></a><em>. </em></p>
<p><em>I&#8217;ve edited out the ServerBeach specific stuff and will post pictures&#8230;. soonish.</em></p>
<p>The following link has some great pictures not included here. <a href="http://sqlblog.com/blogs/john_paul_cook/archive/2008/03/23/using-wireless-with-hyper-v.aspx" target="_blank">http://sqlblog.com/blogs/john_paul_c&#8230;h-hyper-v.aspx</a></p>
<p>I&#8217;ll add some nice little pictures here once I get some screenshots together.</p>
<p>CONFIGURE HYPERV</p>
<p>1. Configure an &#8220;Internal&#8221; HyperV network<br />
2. Set each Virtual Machine to use the Internal network and assign them and your HyperV host on the correct subnet (in this example 10.0.0.1 for the host and 10.0.0.10 for the VM).</p>
<p>ENABLE ROUTING AND REMOTE ACCESS ON THE HOST MACHINE</p>
<p>1. Click -&gt; Start -&gt; Administrative Tools -&gt; Routing and Remote Access<br />
2. Right Click on Server#### (local) -&gt; Configure &amp; Enable Routing &amp; Remote Access<br />
3. Click -&gt; Next on Welcome Window<br />
4. Select Custom Configuration Click -&gt; Next<br />
5. Select NAT Click -&gt; Next<br />
6. Select your public interface<br />
7. Select your Internal HyperV interface<br />
8. Select &#8220;I will set up name and address services later&#8221; Click -&gt; Next<br />
9. Click -&gt; Finish</p>
<p>CONFIGURE ROUTING AND REMOTE ACCESS ON THE HOST MACHINE</p>
<p>1. Routing and Remote Access should be running on the server now<br />
2. Expand out the Server<br />
3. Expand out IP Routing<br />
4. Select NAT/Basic Firewall<br />
5. Right-click your public interface. Select properties<br />
7. Network Address Translation Properties Window will open<br />
8. Select Radio Button for &#8220;Public Interface Connected to the Internet&#8221;<br />
9. Select the check box for both &#8220;Enable NAT on this interface&#8221;<br />
10. Click on the Address Pool Tab<br />
11. Click the Add button and add your secondary IP addresses. The &#8220;Start Address&#8221; and &#8220;End Address&#8221; will be the same in most cases.</p>
<p>*NOTE* You do not want the secondary IP address configured in the TCP/IP Properties of the Host machine.</p>
<p>12. Click the Reservations button and enter your static IP mappings. That is, specify that you want traffic on your secondary IP mapped to your VM&#8217;s internal IP.<br />
13. In services.msc, make sure that RRAS is set to start automatically and Windows ICS is disabled.</p>
<p>NOTES #1</p>
<p>When configuring and experimenting with the RRAS firewall, create a batch file to stop the service in case you forget to allow RDC or otherwise render the system inaccessible.</p>
<p>Code:</p>
<p>net stop &#8220;remoteaccess&#8221;</p>
<p>Then add the batch file to the scheduler and have it run some time after you apply your changes.</p>
<p>NOTE #2</p>
<p>RRAS is really finicky about the interfaces installed on the server. If an interface is changed in any significant way, it&#8217;ll have to be disabled and reconfigured.</p>
<p>Hyper-V is also similarly finicky about its virtual networks. I can&#8217;t count the number of times I had to remove and recreate networks. Thankfully, this was rather painless with only one VM to propagate changes to.</p>
<p>If you should encounter any difficulties with adding your additional VMs to the server, try resetting HyperV networking, individual VM network binding (in the VM&#8217;s settings), confirming physical host interfaces, and then reconfiguring RRAS in this order.</p>
<p>NOTE #3</p>
<p>Those who have had HyperV configuration problems solved it by disabling <strong>TCP/Offload Engine</strong>. Symptoms include, RRAS just not working, or working sporadically. If in doubt, disable TCP/Offload Engine</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1c9be3b4-fa47-4d11-8458-d22aca6154ee" target="_blank">http://social.technet.microsoft.com/&#8230;8-d22aca6154ee</a><br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;904946" target="_blank">http://support.microsoft.com/default&#8230;b;EN-US;904946</a></p>
<p>So if this applies to you, run on the host and on any 2008 VMs:</p>
<p>$ netsh int ip set global taskoffload=disabled</p>
<p>and add the following registry key to any 2003 VMs:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\DisableTaskOffload</p>
<p>This is a DWORD entry that should have a value of 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2010/01/19/setting-up-hyper-v-with-nat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Windows XP Mode</title>
		<link>http://blog.jim80.net/2009/11/20/windows-xp-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-xp-mode</link>
		<comments>http://blog.jim80.net/2009/11/20/windows-xp-mode/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:59:08 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/2009/11/20/windows-xp-mode/</guid>
		<description><![CDATA[If compatability mode is not enough for you, check this out: http://www.microsoft.com/windows/virtual-pc/download.aspx You can install a Windows XP VM in Virtual PC on your Windows 7 workstation. The cool part is the integration. Install a Windows XP application, and it&#8217;s automatically integrated into your Start Menu in Windows 7. I am so geeking out right [...]]]></description>
			<content:encoded><![CDATA[<p>If compatability mode is not enough for you, check this out:<br />
<a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">http://www.microsoft.com/windows/virtual-pc/download.aspx</a></p>
<p>You can install a Windows XP VM in Virtual PC on your Windows 7 workstation. The cool part is the integration. Install a Windows XP application, and it&#8217;s automatically integrated into your Start Menu in Windows 7.</p>
<p>I am so geeking out right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/11/20/windows-xp-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and Dirty Port Check (ch.pl v 0.1)</title>
		<link>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-and-dirty-port-check-ch-pl-v-0-1</link>
		<comments>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 21:13:40 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Toolbox]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=314</guid>
		<description><![CDATA[The core of the following script is based off work first started by my coworker Trent. The gist of the little script is to perform a quick scan of a hostname or IP by simply attempting to open a socket. I use this when I want to run a quick &#8220;is it online&#8221; scan of [...]]]></description>
			<content:encoded><![CDATA[<p>The core of the following script is based off work first started by my coworker Trent. The gist of the little script is to perform a quick scan of a hostname or IP by simply attempting to open a socket. I use this when I want to run a quick &#8220;is it online&#8221; scan of a server and determine if ports of interest are available to me. I added the bit that would let me open them directly from the script without having to type in an alternate command.</p>
<p>This is very much a poorly written hack-job script, and I very much expect that some of you will be able to identify some serious n00b mistakes (probably in that I still haven&#8217;t figured out how to properly localize variables), but hey, I don&#8217;t think this is half bad for my first PERL script. Yes, PERL. I&#8217;ve already been lectured about learning Python instead, but while that&#8217;s definitely on the to-do list, this script needed finishing, and I was already halfway through. It&#8217;s a tool that&#8217;s customized for me, so please hack away, and let me know what you do, as I may like it too!</p>
<p>So, I present, for your consideration and for your critique (please do), <a href="ftp://ftp.jim80.net/bin/ch.pl">&#8216;ch.pl&#8217; v 0.1</a>.</p>
<p>I generally alias ch=/usr/local/bin/ch.pl for this script in Linux and MacOS, as this lets me leave the file extension the same for when I use it in Windows. To use this in Windows, you&#8217;ll need to install PERL first. I use <a href="http://www.activestate.com">ActivePerl</a>. However please note, I&#8217;m still working on making this script Windows friendly.</p>
<p>To install in Linux/MacOS:</p>
<ul>
<li>download ch.pl using <a href="ftp://ftp.jim80.net/bin/ch.pl">FTP</a> or <a href="http://www.jim80.net/ftp/bin/ch.pl">wget</a> to /usr/local/bin/</li>
<li>chmod +x /usr/local/bin/ch.pl</li>
<li>modify your ~/.bash_aliases file (ubuntu), or your ~/.bashrc (RedHat) to include the following:
<ul>
<li>&#8216;alias ch=/usr/local/bin/ch.pl&#8217;</li>
</ul>
</li>
</ul>
<p>Usage: ch [hostname or IP]<em> [optional: port(s) to check, separated by commas]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Preview: Handy Sysinternals Utilities</title>
		<link>http://blog.jim80.net/2009/08/04/handy-sysinternals-utilities/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=handy-sysinternals-utilities</link>
		<comments>http://blog.jim80.net/2009/08/04/handy-sysinternals-utilities/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 20:22:40 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[file lock]]></category>
		<category><![CDATA[locking]]></category>
		<category><![CDATA[process explorer]]></category>
		<category><![CDATA[process monitor]]></category>
		<category><![CDATA[sysinternals]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=276</guid>
		<description><![CDATA[This article was first published as &#8220;Locked Files in Windows&#8221; on 22 Jul 2009. Note to self: Sysinternals is Microsoft&#8217;s saving grace: Process Explorer: A more advanced taskmgr, if you will. It&#8217;s most awesome feature is it&#8217;s ability to search for processes holding a certain handle, allowing you to resolve locked file issues: Home page: [...]]]></description>
			<content:encoded><![CDATA[<p>This article was first published as &#8220;Locked Files in Windows&#8221; on 22 Jul 2009. </p>
<p>Note to self: Sysinternals is Microsoft&#8217;s saving grace: </p>
<p><strong>Process Explorer</strong>: A more advanced taskmgr, if you will. It&#8217;s most awesome feature is it&#8217;s ability to search for processes holding a certain handle, allowing you to resolve locked file issues: </p>
<p>Home page: <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx">http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx</a></p>
<p>Or just run it from <a href="http://live.sysinternals.com/procexp.exe">http://live.sysinternals.com/procexp.exe</a></p>
<p><strong>Process Monitor</strong>: Basically, Regmon + Filemon: </p>
<p>Home page: <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx">http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx</a></p>
<p>Or just run it from <a href="http://live.sysinternals.com/Procmon.exe">http://live.sysinternals.com/Procmon.exe</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/08/04/handy-sysinternals-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check Your OS&#8217;s Installation Date</title>
		<link>http://blog.jim80.net/2009/07/30/check-your-oss-installation-date/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=check-your-oss-installation-date</link>
		<comments>http://blog.jim80.net/2009/07/30/check-your-oss-installation-date/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:58:59 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Installation date]]></category>
		<category><![CDATA[Systeminfo.exe]]></category>
		<category><![CDATA[WMIC]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=300</guid>
		<description><![CDATA[Linux: ls -alh /boot/grub #the majority of files in this folder don&#8217;t change from the time of install except for menu.lst ls -alh /restore #BSD Windows: Systeminfo #from the command line - or &#8211; CMD /K WMIC OS GET InstallDate You&#8217;ll see the Operating System installation date (in WMI format). The first eight characters in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Linux: </strong></p>
<p><code>ls -alh /boot/grub</code> #the majority of files in this folder don&#8217;t change from the time of install except for menu.lst</p>
<p><code>ls -alh /restore</code> #BSD</p>
<p><strong>Windows: </strong></p>
<p><code>Systeminfo</code> #from the command line</p>
<p>- or &#8211; </p>
<p><code>CMD /K WMIC OS GET InstallDate</code></p>
<p>You&#8217;ll see the Operating System installation date (in WMI format). The first eight characters in that output gives you the installation date.</p>
<p>*Windows bit stolen from <a href="http://windowsxp.mvps.org/getosdate.htm">http://windowsxp.mvps.org/getosdate.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/07/30/check-your-oss-installation-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make a Fat32 Partition in Linux</title>
		<link>http://blog.jim80.net/2009/07/29/make-a-fat32-partition-in-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=make-a-fat32-partition-in-linux</link>
		<comments>http://blog.jim80.net/2009/07/29/make-a-fat32-partition-in-linux/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 03:19:55 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Fat32]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[mkdosfs]]></category>
		<category><![CDATA[NTFS-3G]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=290</guid>
		<description><![CDATA[This is handy for transferring files between Windows and Linux, as many distro&#8217;s don&#8217;t have NTFS RW support built in. This is, of course if you do not have access to the NTFS-3G driver, which does allow for RW mounts. Overview: fdisk w/ a W95 partition table mkdosfs If you need the step by step, [...]]]></description>
			<content:encoded><![CDATA[<p>This is handy for transferring files between Windows and Linux, as many distro&#8217;s don&#8217;t have NTFS RW support built in. This is, of course if you do not have access to the NTFS-3G driver, which does allow for RW mounts. </p>
<p>Overview: fdisk w/ a W95 partition table<br />
mkdosfs</p>
<p>If you need the step by step, it&#8217;s below:</p>
<p><strong>fdisk /dev/sd</strong>(whatever drive you want to reparition, &#8216;b&#8217; in this case), then follow along: </p>
<p>The number of cylinders for this disk is set to 20023.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>m</strong><br />
Command action<br />
   a   toggle a bootable flag<br />
   b   edit bsd disklabel<br />
   c   toggle the dos compatibility flag<br />
   d   delete a partition<br />
   l   list known partition types<br />
   m   print this menu<br />
   n   add a new partition<br />
   o   create a new empty DOS partition table<br />
   p   print the partition table<br />
   q   quit without saving changes<br />
   s   create a new empty Sun disklabel<br />
   t   change a partition&#8217;s system id<br />
   u   change display/entry units<br />
   v   verify the partition table<br />
   w   write table to disk and exit<br />
   x   extra functionality (experts only)</p>
<p>Command (m for help): <strong>n</strong></p>
<p>Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
<strong>p</strong><br />
Partition number (1-4): <strong>1</strong><br />
First cylinder (1-20023, default 1):<br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-20023, default 20023):<br />
Using default value 20023</p>
<p>Command (m for help): <strong>t</strong><br />
Selected partition 1<br />
Hex code (type L to list codes): <strong>c</strong><br />
Changed system type of partition 1 to c (W95 FAT32 (LBA))</p>
<p>Command (m for help): <strong>p</strong></p>
<p>Disk /dev/sdb: 164.6 GB, 164696555520 bytes<br />
255 heads, 63 sectors/track, 20023 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x000f0136</p>
<p>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1               1       20023   160834716    c  W95 FAT32 (LBA)</p>
<p>Command (m for help): <strong>w</strong><br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.</p>
<p>WARNING: If you have created or modified any DOS 6.x<br />
partitions, please see the fdisk manual page for additional<br />
information.<br />
Syncing disks.</p>
<p>root@sbrescue:/# <strong>mkdosfs /dev/sdb1</strong><br />
mkdosfs 3.0.1 (23 Nov 2008)<br />
root@sbrescue:/# <strong>mount /dev/sdb1 /mnt</strong><br />
root@sbrescue:/# <strong>cd /mnt</strong><br />
root@sbrescue:/mnt# <strong>touch asdf</strong><br />
root@sbrescue:/mnt# <strong>ls</strong><br />
asdf<br />
root@sbrescue:/mnt# </p>
<p>All done! =D</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/07/29/make-a-fat32-partition-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hostnames Greater than 15 Characters Effectively Disables MSFTPSvc.</title>
		<link>http://blog.jim80.net/2009/07/22/hostnames-greater-than-15-characters-effectively-disables-msftpsvc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hostnames-greater-than-15-characters-effectively-disables-msftpsvc</link>
		<comments>http://blog.jim80.net/2009/07/22/hostnames-greater-than-15-characters-effectively-disables-msftpsvc/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 16:16:57 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[FAIL]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[msftpsvc]]></category>
		<category><![CDATA[Windows 2003]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=271</guid>
		<description><![CDATA[Wait, what?! Oh yeah. It just grinds to a halt, without any helpful error messages. This is just another thing that I want to jot down so I know to check for it the next time I run across a server with FTP issues. AFAIK, it has to do with a NETBIOS limitation.]]></description>
			<content:encoded><![CDATA[<p>Wait, what?! Oh yeah. It just grinds to a halt, without any helpful error messages. This is just another thing that I want to jot down so I know to check for it the next time I run across a server with FTP issues. </p>
<p>AFAIK, it has to do with a <a href="http://support.microsoft.com/kb/909264">NETBIOS limitation</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/07/22/hostnames-greater-than-15-characters-effectively-disables-msftpsvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

