<?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>SysAdmin Talk &#187; Tutorials</title>
	<atom:link href="http://sysadmin-talk.org/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysadmin-talk.org</link>
	<description>Practical advice from front-line SysAdmins</description>
	<lastBuildDate>Tue, 08 May 2012 18:01:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Create your own Network Storage Solution using FreeNAS</title>
		<link>http://sysadmin-talk.org/2011/04/create-your-own-network-storage-solution-using-freenas/</link>
		<comments>http://sysadmin-talk.org/2011/04/create-your-own-network-storage-solution-using-freenas/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 14:20:07 +0000</pubDate>
		<dc:creator>Sean Duffy</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[freenas]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[shared storage]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=874</guid>
		<description><![CDATA[Having a central location to store all your data on the local network can come in very handy when it comes to sharing your files and providing access for other users. FreeNAS is an open source solution that is very quick to setup. My main use for FreeNAS is for creating shared storage for VMware ESX or ESXi hosts – a requirement when you want to use some of the vSphere clustering features like HA and DRS. I simply provision a VM that it runs on and use that to provide the storage in NFS (Network File System) format to my hosts. FreeNAS supports some great features. Namely – CIFS for Windows shares, FTP, NFS, iSCSI and many others. It also supports software RAID 0, 1, or 5 and is so small, you can even install it on a 64MB flash disk making it portable too.]]></description>
			<content:encoded><![CDATA[<p>Having a central location to store all your data on the local network can come in very handy when it comes to sharing your files and providing access for other users. FreeNAS is an open source solution that is very quick to setup. My main use for FreeNAS is for creating shared storage for VMware ESX or ESXi hosts – a requirement when you want to use some of the vSphere clustering features like HA and DRS. I simply provision a VM that it runs on and use that to provide the storage in NFS (Network File System) format to my hosts. FreeNAS supports some great features. Namely – CIFS for Windows shares, FTP, NFS, iSCSI and many others. It also supports software RAID 0, 1, or 5 and is so small, you can even install it on a 64MB flash disk making it portable too.</p>
<p><span id="more-874"></span></p>
<h2><span style="font-size: small;"><span style="font-weight: normal;"><span style="font-size: x-large;"><span><strong><br />
</strong></span></span></span></span></h2>
<h2><strong>Setting up FreeNAS in a VM</strong></h2>
<p><br class="blank" /></p>
<p>As I mentioned above, my main preference is to run FreeNAS in a VM. However, you can of course install it on a physical PC/Server or even run it in embedded mode using a USB flash drive. I will be <a href="http://www.supertux.org/freenas/FreeNAS7.2x86.rar">downloading</a> the 0.7.2 build in VMware Image format and setting this up.</p>
<p>Open the .VMX file for the VMware image in VMware Workstation or Server. Add an extra Hard disk to the VM choosing a SCSI disk with the desired size you would like to use for your Data Shares. I added a 120GB drive as I wanted to have 120GB for my ESXi hosts to use to run Virtual Machines from.</p>
<p>If you choose to go your own installation route, or would like to install FreeNAS on a physical machine, the installer is really simple to use, consisting of just a couple of options that ask which disk you would like to install it on and whether you want a swap partition or not.</p>
<p>Continuing with the VM setup, let us get started by powering on the FreeNAS server image. You will be asked if it has been moved or copied. Choose “I copied it”. Once it has booted you’ll be up and running with the fully installed version of FreeNAS and have some options to work with as seen below.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-console.jpg" rel="lightbox[874]"><img class="size-full wp-image-876 alignnone" title="freenas-console" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-console.jpg" alt="" width="649" height="362" /></a></p>
<p>Configure your Network interface by choosing option 2) and entering your local network information. Turn DHCP off as you’ll want a static IP address for this server. You’ll set up an interface name, IP address and subnet mask, default gateway and DNS.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-netconfig.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-878" title="freenas-netconfig" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-netconfig.jpg" alt="" width="540" height="425" /></a></p>
<p>Now you can browse to the IP address you configured using the format <a href="http://ipaddress/">http://IPAddress</a> in your local machine’s web browser. Your default credentials are admin/freenas to login with. You’ll see the main configuration page which should look similar to this:</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-webgui.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-879" title="freenas-webgui" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-webgui.jpg" alt="" width="640" height="480" /></a></p>
<p><br class="blank" /></p>
<h2><strong>Provisioning a NFS Share<br />
</strong></h2>
<p><br class="blank" /></p>
<p>First things first, we’ll get our data disk configured for use. Go to Disks -&gt; Management and click the little “+” (Plus) sign on the far right to add a disk. You should see your data disk (da1) in the dropdown menu. Just ensure you have your added disk selected in this dropdown. Type in a short description and leave all the other options at their defaults. Click the “Add” button to add the disk, following which you’ll see the disk set to “Initializing”. Click the “Apply changes” button to confirm changes.  You should now see your disk as ONLINE.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-diskmgmt.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-880" title="freenas-diskmgmt" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-diskmgmt.jpg" alt="" width="684" height="239" /></a></p>
<p>We need to format this disk, so open up Disks -&gt; Format, choose “da1” (your extra data disk) and select UFS for the file system. Assign a volume label and leave all other options at their defaults. Proceed with the format. Here is a rundown of the settings I used:</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-diskformat.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-881" title="freenas-diskformat" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-diskformat.jpg" alt="" width="666" height="400" /></a></p>
<p>Go to the Disks -&gt; Mount Point section next, then click the “+” (Plus) sign to add a mount point. Configure it as per the screenshot below (with the exception of assigning your own mount point name) then click “Add” at the bottom when done.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-mountpoints.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-882" title="freenas-mountpoints" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-mountpoints.jpg" alt="" width="587" height="678" /></a></p>
<p>Make sure you “Apply Changes” when the disk mount point has been added. Your Mount Point status should now show as OK.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-mountpoints-OK.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-883" title="freenas-mountpoints-OK" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-mountpoints-OK.jpg" alt="" width="671" height="231" /></a></p>
<p>Next up, navigate to Services -&gt; NFS. Click the “Enable” tick box for “Network File System” then click the “Save and Restart” button to enable the NFS service for your server. Now click the “Shares” tab under the NFS section and configure a share by clicking the “+” (Plus) button on the right.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-nfsservice.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-884" title="freenas-nfsservice" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-nfsservice.jpg" alt="" width="662" height="199" /></a></p>
<p>Configure your NFS share using the screenshot below as a guide – your path should be something like /mnt/YourMountPointName – this is the path that your client machines will connect to  (VMware ESXi hosts for example). In my configuration case, the Path is: <strong>/mnt/Datastore120GB</strong>. Select the authorized network range (the client network that will be allowed access to this share) and tick the option for “Share all sub directories”. Be sure to click the “Add” button at the bottom when finished, and apply the changes on the page that follows.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-nfsexportsettings.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-885" title="freenas-nfsexportsettings" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-nfsexportsettings.jpg" alt="" width="627" height="319" /></a></p>
<p><br class="blank" /></p>
<h2>Conclusion</h2>
<p><br class="blank" /></p>
<p>Now that the share is setup it should be simple enough for your clients (or in my case ESXi hosts) to connect to. Here is how I connected my ESXi hosts to this share so that they could use a centralized storage location to run multiple VMs from. Having this shared storage allows them, whilst being connected to vCenter Server, to use features such as HA (High Availability) and DRS (Distributed Resource Scheduling – as all hosts need to have access to the exact same storage as a requirement).</p>
<ol>
<li>Connect to ESX/ESXi host      using vSphere client</li>
<li>Go to configuration tab</li>
<li>Click on Storage -&gt; Add      Storage</li>
<li>Select “Network File      System”</li>
<li>Enter the FreeNAS IP      address as the Server</li>
<li>Enter the “Folder” as the      share name.</li>
</ol>
<p>Finish the wizard.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-connectingclient1.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-902" title="freenas-connectingclient1" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-connectingclient1.jpg" alt="" width="600" height="463" /></a></p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-connectingclient2.jpg" rel="lightbox[874]"><img class="alignnone size-full wp-image-887" title="freenas-connectingclient2" src="http://sysadmin-talk.org/wp-content/uploads/2011/04/freenas-connectingclient2.jpg" alt="" width="640" height="98" /></a></p>
<p>You can of course use your FreeNAS server to host other shares too. As mentioned in the beginning, you can use other protocols such as CIFS, FTP, iSCSI (another great protocol for VMware hosts needing shared storage), and many others with FreeNAS. Network Attached Storage is a great way to provide shares to more than one client machine and in my case makes for an excellent lab storage virtual appliance.</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2011/04/create-your-own-network-storage-solution-using-freenas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Video: How to Import PST files into Exchange 2010 &#8211; Part 3 of 3</title>
		<link>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-3-of-3/</link>
		<comments>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-3-of-3/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 15:24:02 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Shell]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=716</guid>
		<description><![CDATA[In this final video in James' 3-part series, we see how to use the Exchange Management Shell to import PST files into their appropriate mailboxes in Exchange 2010.]]></description>
			<content:encoded><![CDATA[<p>This is the third and final clip in this series explaining how to use the Exchange Management Shell to import PST files into Exchange 2010 mailboxes. In this video, now that we have a list of relevant machine names, as well as the names, owners and locations of PST files <em>on</em> those machines, we&#8217;ll run through a script to set up the Mailbox-Import requests from these PST files into their relevant mailboxes in Exchange. Further information can be found in this <a title="ding PST Files on the Network – The Manual Way" href="http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/">article</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/8EIPLVKt3ok?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/8EIPLVKt3ok?fs=1&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>In <a title="Part 1" href="http://sysadmin-talk.org/video-how-to-import-pst-files-into-exchange-2010-part-1-of-3/" target="_blank">part one of this series</a>, we looked at how to identify the relevant machines on your network (i.e. machines which are currently offering refuge to PST files), and <a title="Part 2" href="http://sysadmin-talk.org/video-how-to-import-pst-files-into-exchange-2010-%e2%80%93-part-2-of-3/" target="_blank">in part 2</a> we covered how to use the Exchange Management Shell to identify the filenames, owners and locations of the PST files those machines. This final video will complete the process, and cover the actual import procedure.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-3-of-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video: How to Import PST Files into Exchange 2010 – Part 2 of 3</title>
		<link>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-%e2%80%93-part-2-of-3/</link>
		<comments>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-%e2%80%93-part-2-of-3/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 12:28:42 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Shell]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=705</guid>
		<description><![CDATA[The second video in a series of 3 videos explaining how to use the Exchange Management Shell to import PST files into Exchange 2010 mailboxes. In this video we will take the list of machine names we created in the previous video and use WMI to search each of these for PST files. We will [...]]]></description>
			<content:encoded><![CDATA[<p>The second video in a series of 3 videos explaining how to use the Exchange Management Shell to import PST files into Exchange 2010 mailboxes. In this video we will take the list of machine names we created in the previous video and use WMI to search each of these for PST files. We will then record the location of these files and the file owners. Further information can be found in this <a title="ding PST Files on the Network – The Manual Way" href="http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/">article</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Peejf6kEAFc?fs=1&amp;hl=en_GB" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/Peejf6kEAFc?fs=1&amp;hl=en_GB" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>In the previous <a title="Video: How to Import PST Files into Exchange 2010 – Part 2 of 3" href="video-how-to-import-pst-files-into-exchange-2010-part-2-of-3">video</a> I identified the machine names of the computers on my network for use in a subsequent search for PST files. In the next video I will look at the scripts that will setup the Import-Mailbox requests from these PSTs into the relevant mailboxes in Exchange.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-%e2%80%93-part-2-of-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: How to Import PST Files into Exchange 2010 &#8211; Part 1 of 3</title>
		<link>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-1-of-3/</link>
		<comments>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-1-of-3/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 13:57:51 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Shell]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importer]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=681</guid>
		<description><![CDATA[I previously wrote a series of 3 articles explaining how to use the Exchange Management Shell to import PST files into Exchange 2010 mailboxes. To support these I am now creating a series of 3 videos. In this, the first video I look at identifying the machine names of the computers on your network for [...]]]></description>
			<content:encoded><![CDATA[<p>I previously wrote a series of <a href="http://sysadmin-talk.org/2010/08/how-to-import-pst-files-into-exchange-2010-the-manual-way/">3 articles</a> explaining how to use the Exchange Management Shell to import PST files into Exchange 2010 mailboxes. To support these I am now creating a series of 3 videos. In this, the first video I look at identifying the machine names of the computers on your network for use in a subsequent search for PST files.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/P3_bv0gaSrk?fs=1&amp;hl=en_GB" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/P3_bv0gaSrk?fs=1&amp;hl=en_GB" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>In the next <a title="Video: How to Import PST Files into Exchange 2010 – Part 2 of 3" href="video-how-to-import-pst-files-into-exchange-2010-part-2-of-3">video</a> I will go through finding PST files on your network.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/10/video-how-to-import-pst-files-into-exchange-2010-part-1-of-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Importing the Remote PSTs into Exchange 2010</title>
		<link>http://sysadmin-talk.org/2010/09/importing-psts-into-exchange-2010/</link>
		<comments>http://sysadmin-talk.org/2010/09/importing-psts-into-exchange-2010/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 15:45:33 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importer]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[PST]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=547</guid>
		<description><![CDATA[In the previous part of this guide we looked at gaining a list of PST files and machines. In this, the final part of this series, we will look at how to import these into Exchange 2010. The following script does just that: # Read in pst file locations and users $strPSTFiles = Get-Content -Path "c:\pstdetails.csv" [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a title="Finding PST Files on the Network" href="http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/" target="_self">previous part of this guide </a>we looked at gaining a list of PST files and machines. In this, the final part of this series, we will look at how to import these into Exchange 2010.<span id="more-547"></span></p>
<p>The following script does just that:</p>
<p><code># Read in pst file locations and users<br />
$strPSTFiles = Get-Content -Path "c:\pstdetails.csv"<br />
foreach($strPSTFile in $strPSTFiles)<br />
{</code><br />
<code>$strMachine = $strPSTFile.Split(',')[0]<br />
$strPath = $strPSTFile.Split(',')[1]<br />
$strOwner = $strPSTFile.Split(',')[2]</code></p>
<p><code># Get network path for pst file<br />
$source = "\\" + $strMachine + "\" + $strPath.Replace(':','$')</code></p>
<p><code># import pst to mail box.<br />
<span style="background-color: #ffff66;">Import-Mailbox -PSTFolderPath $source -Identity $strOwner</span><br />
<span style="background-color: #ff6666;">New-MailboxImportRequest -FilePath $source -Mailbox $strOwner</span><br />
}</code></p>
<p>The yellow highlighted text shows the Exchange 2010 RTM cmdlet, the red the Exchange 2010 SP1. Delete the unneeded version as appropriate.</p>
<p>The Exchange 2010 SP1 version of the script will execute in far less time, due to the asynchronous nature of the ImportRequest cmdlet. These requests are processed in the background and can be monitored with the Get-MailboxImportRequest cmdlet to observe their status.</p>
<p>There are quite a few potential pitfalls here:</p>
<ol>
<li>The user’s machine must be on.</li>
<li>File sharing must be on, to allow for the file to be transferred.</li>
<li>Outlook must not be running on the remote user’s machine. If Outlook is running and has the PST file attached, the file will be locked and unable to be imported.</li>
<li>The PowerShell cmdlet used by Exchange to import PST files does not support passwords.</li>
</ol>
<p>There are various things you could to augment this script.Some suggestions include:</p>
<ul>
<li> Have WMI shut down Outlook on a remote user’s machine before attempting import http://www.computerperformance.co.uk/vbscript/wmi_process.htm</li>
<li>It could be useful to generate a further file detailing a list of all the PSTs which failed to import, with the reason. These files could have been password protected, or the machine hosting them may have been shut down, or become disconnected since they were identified.</li>
</ul>
<p>I hope you have found this series of articles on manually importing PST files into Exchange 2010 useful. Although, like me, I&#8217;m sure you feel that this is a bit of a mammoth task, particularly for the Powershell novice!</p>
<blockquote><p>To automatically import PST files into Exchange 2010 without Powershell visit:<br />
<a title="PST Importer 2010 - Automatically import PSTs into Exchange 2010" href="http://www.red-gate.com/products/pst_importer_2010/?utm_source=sysadmintalk" target="_blank">www.red-gate.com/products/pst_importer_2010</a>. Here you can find out more information on PST Importer 2010 and download a free 14 day trial.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/09/importing-psts-into-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding PST Files on the Network – The Manual Way</title>
		<link>http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/</link>
		<comments>http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 13:54:43 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importer]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[PST]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=506</guid>
		<description><![CDATA[In the last part of this guide the process for importing a local PST file into exchange server was shown. However, in reality it is likely that these PST files are scattered liberally around your network on the hard drives of your users machines as a result of Outlooks personal archiving. Ideally – so that [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a title="How to Import PST Files into Exchange 2010" href="http://sysadmin-talk.org/2010/08/how-to-import-pst-files-into-exchange-2010-the-manual-way/" target="_self">last part of this guide</a> the process for importing a local PST file into exchange server was shown. However, in reality it is likely that these PST files are scattered liberally around your network on the hard drives of your users machines as a result of Outlooks personal archiving. Ideally – so that this process is transparent to your users, you’d like some way of finding all these PST files – pairing them up with their users, and importing them into the appropriate mailbox. Here I show you how.<span id="more-506"></span></p>
<p>To start this, we  can query Active Directory for a list of all the machines attached to your domain. We can then use Windows Management Instrumentation (WMI) to search each of these machines for PST files. The file paths for these PSTs should hopefully give a clue as to which user they belong to, as they will be created in a directory path containing the username by default. We can also grab the file owner file attribute which should correlate with the file path.</p>
<p>This technique requires that all the machines in your network are switched on and accessible by WMI. A list of the machines which could not be queried can be provided as output</p>
<p><strong>Notes about WMI:</strong></p>
<p>By default WMI is blocked by the windows firewall in Windows 7 and 2008 R2. You’ll need to open up the ports on all your users’ machines. This can be done with the ‘netsh’ command, or through a change to group policy.</p>
<p>What are the implications of this? WMI is a powerful beast, and allows remote access to many aspects of a user’s machine. As such it could be considered a security vulnerability&#8230; It’s typically accessed though port 135. This not only permits access to WMI – but also any other DCOM components which may be installed on a machine, open for exploitation by Trojans and the like. Needless to say, the ports are blocked by default for a reason – so require careful consideration of the implications when opening. WMI will also not help you if the machines you wish to tinker with are subject to NAT (Network Address Translation). You’ll be unable to reach these machines. The following script generates a txt file (the filename defined on line 2) of all the computers on your domain to be searched. This can then be edited with notepad to remove those you don’t wish to search.</p>
<p style="padding-left: 60px;"><code>$strCategory = "computer"<br />
$strOutput = "c:\computernames.txt"<br />
$objDomain = New-Object System.DirectoryServices.DirectoryEntry</code></p>
<p style="padding-left: 60px;"><code>$objSearcher = New-Object System.DirectoryServices.DirectorySearcher<br />
$objSearcher.SearchRoot = $objDomain<br />
$objSearcher.Filter = ("(objectCategory=$strCategory)")</code></p>
<p style="padding-left: 60px;"><code>$colProplist = "name"<br />
foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}</code></p>
<p style="padding-left: 60px;"><code>$colResults = $objSearcher.FindAll()<br />
[bool]$firstOutput = $true<br />
foreach ($objResult in $colResults)<br />
{<br />
$objComputer = $objResult.Properties;<br />
if($firstOutput)<br />
{<br />
Write-output $objComputer.name | Out-File -filepath $strOutput<br />
$firstOutput = $false;<br />
}<br />
else<br />
{<br />
Write-output $objComputer.name | Out-File -filepath $strOutput `<br />
-append<br />
}<br />
}</code></p>
<p>The next script will generate a CSV (Comma separated values) detailing the network paths of the PSTS you need.</p>
<p style="padding-left: 60px;"><code>$strComputers = Get-Content -Path "c:\computernames.txt"<br />
[bool]$firstOutput = $true<br />
foreach($strComputer in $strComputers)<br />
{<br />
$colFiles = Get-Wmiobject -namespace "root\CIMV2" `<br />
-computername $strComputer `<br />
-Query "Select * from CIM_DataFile `<br />
Where Extension = 'pst'"<br />
foreach ($objFile in $colFiles)<br />
{<br />
if($objFile.FileName -ne $null)<br />
{<br />
$filepath = $objFile.Drive + $objFile.Path + $objFile.FileName + "." `<br />
+ $objFile.Extension;<br />
$query = "ASSOCIATORS OF {Win32_LogicalFileSecuritySetting='" `<br />
+ $filepath `<br />
+ "'} WHERE AssocClass=Win32_LogicalFileOwner ResultRole=Owner"<br />
$colOwners = Get-Wmiobject -namespace "root\CIMV2" `<br />
-computername $strComputer `<br />
-Query $query<br />
$objOwner = $colOwners[0]<br />
$user = $objOwner.ReferencedDomainName + "\" + $objOwner.AccountName<br />
$output = $strComputer + "," + $filepath + "," + $user<br />
if($firstOutput)<br />
{<br />
Write-output $output | Out-File -filepath c:\pstdetails.csv<br />
$firstOutput = $false<br />
}<br />
else<br />
{<br />
Write-output $output | Out-File -filepath c:\pstdetails.csv -append<br />
}<br />
}<br />
}<br />
}</code></p>
<p>This script will take as input a text file containing a list of machine names (conveniently the output of the first script), and will generate a csv file of all the pst files found on those machines, and the owners associated with them.</p>
<blockquote><p>Find PST files across your network quickly and easily with PST Importer 2010. To find out more and to download a free 14 day trial please visit:<br />
<a title="PST Importer 2010 - Automatically import PSTs into Exchange 2010" href="http://www.red-gate.com/products/pst_importer_2010/?utm_source=sysadmintalk" target="_blank">www.red-gate.com/products/pst_importer_2010</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/08/finding-pst-files-on-the-network-the-manual-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I Hit a Bug in Exchange 2010 SP1 Beta Manually Importing PST Files &#8211; Here is what I did</title>
		<link>http://sysadmin-talk.org/2010/08/manually-importing-pst-files-and-i-hit-a-bug-in-exchange-2010-sp1-beta/</link>
		<comments>http://sysadmin-talk.org/2010/08/manually-importing-pst-files-and-i-hit-a-bug-in-exchange-2010-sp1-beta/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 16:18:35 +0000</pubDate>
		<dc:creator>James Allison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[PST Files]]></category>
		<category><![CDATA[PST Importer]]></category>
		<category><![CDATA[PST Importing]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[PST]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=486</guid>
		<description><![CDATA[I was going through the laborious task of manually importing PST files into Exchange 2010 SP1 beta and I hit a bug: Error: Error was found for (username) because: Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219 + CategoryInfo          : InvalidOperation: (0:Int32) [Import-Mailbox], RecipientTaskException + FullyQualifiedErrorId : CFFD629B,Microsoft.Exchange.Management.RecipientTasks.ImportMailbox [...]]]></description>
			<content:encoded><![CDATA[<p>I was going through the laborious task of manually importing PST files into Exchange 2010 SP1 beta and I hit a bug:</p>
<p><code>Error:<br />
Error was found for (username) because: Error occurred in the step: Approving object. An unknown error<br />
has occurred., error code: -2147221219<br />
+ CategoryInfo          : InvalidOperation: (0:Int32) [Import-Mailbox], RecipientTaskException<br />
+ FullyQualifiedErrorId : CFFD629B,Microsoft.Exchange.Management.RecipientTasks.ImportMailbox</code></p>
<p>Here is how I worked round it.</p>
<p><span id="more-486"></span></p>
<p>After doing some digging,  I found the site <a href="http://www.korneel.nl/?p=28">http://www.korneel.nl/?p=28</a> that  identifies most of the problems you might hit importing a PST file.</p>
<p>The cause for the error in my case transpired to be an acknowledged (according to the blog post) bug in exchange, presumably with an upcoming hotfix. However, it seems to be a generic error for all ills, as other solutions on the web suggest using the ‘fixmapi’ command (though admittedly referring to exchange 2007&#8230;). <a href="http://social.technet.microsoft.com/Forums/en-US/exchangesvrmigration/thread/82424f36-2611-4188-808e-df9aad36a5b7">http://social.technet.microsoft.com/Forums/en-US/exchangesvrmigration/thread/82424f36-2611-4188-808e-df9aad36a5b7</a> (And the most common suggestion being adding the import export role to the user account.)</p>
<p>Another potential pitfall is the requirement for the 64bit version of outlook 2010 to be installed. It’s worth noting that by default an installation of Office 2010 on a clean machine will install the 32bit version.</p>
<p>As an unrelated aside,  installing the SP1 beta on exchange also caused a few problems – it required the manual installation of several hot fixes – and more annoyingly one package (UCMA 2.0 Runtime 64bit)– which despite coming as an ‘msi’ installation package, and on running giving all the signs it had installed successfully – had actually only ‘installed’ the installation files, which then had to be run separately. I’m sure these niggles will be ironed out before SP1 is released, but it wasn’t the friendliest of upgrades.</p>
<blockquote><p>PST Importer 2010 provides a simple and transparent way to find and import PST files into Exchange 2010. To find out more information and to download a free 14 day trial please visit: <a title="PST Importer 2010 - Automatically import PSTs into Exchange 2010" href="http://www.red-gate.com/products/pst_importer_2010/?utm_source=sysadmintalk" target="_blank">www.red-gate.com/products/pst_importer_2010</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/08/manually-importing-pst-files-and-i-hit-a-bug-in-exchange-2010-sp1-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transferring FSMO roles in Windows Server 2003</title>
		<link>http://sysadmin-talk.org/2010/06/transferring-fsmo-roles-in-windows-server-2003/</link>
		<comments>http://sysadmin-talk.org/2010/06/transferring-fsmo-roles-in-windows-server-2003/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 18:10:54 +0000</pubDate>
		<dc:creator>Sean Duffy</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fsmo]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=430</guid>
		<description><![CDATA[When you configure the first Domain Controller for your organization using the Active Directory Installation Wizard (or dcpromo for short), it is configured with all five FSMO roles by default. Here I will cover how you can view and transfer the specific FSMO roles of various Domain Controllers in your domain. As this is a [...]]]></description>
			<content:encoded><![CDATA[<p>When you configure the first Domain Controller for your organization using the Active Directory Installation Wizard (or dcpromo for short), it is configured with all five FSMO roles by default. Here I will cover how you can view and transfer the specific FSMO roles of various Domain Controllers in your domain. As this is a short how-to article, I won&#8217;t go into the specific details of when you would need to transfer roles, but in short you may want to take a certain domain controller down for maintenance one day and may find it necessary to transfer some, or all of these roles.</p>
<p>To start with you will obviously require more than one Domain Controller in your Windows domain. In my case I have a &#8220;Primary&#8221; and &#8220;Secondary&#8221; domain controller called &#8220;NOOBS-DC1&#8243; and &#8220;NOOBS-DC2&#8243;.</p>
<p><span id="more-430"></span></p>
<h3><strong>Transferring roles</strong></h3>
<p><strong><br />
</strong></p>
<p><span style="text-decoration: underline">RID, PDC or Infrastructure roles:</span></p>
<p>Start by opening Active Directory Users and Computers on the DC you want to change the role to. Right-click your domain name and select &#8220;Operation Masters&#8221; from the context menu.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo1.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-431" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo1-300x153.jpg" alt="" width="300" height="153" /></a></p>
<p>Select the tab corresponding to the role you would like to transfer. Below this you should be able to see the name of the DC you are currently on, or connected to. Click the &#8220;Change&#8221; button to change the role over to the DC listed.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo2.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-432" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo2-269x300.jpg" alt="" width="269" height="300" /></a></p>
<p>Confirm the change when asked, at which point you should receive a message stating that the procedure was successful.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo3.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-433" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo3-300x95.jpg" alt="" width="300" height="95" /></a></p>
<p>Remember that this method can be used to transfer any of the RID (Relative ID), PDC (PDC Emulator) or Infrastructure roles. Just select the role you want to transfer by using the relevant tab.</p>
<p class="MsoNormal"><span style="text-decoration: underline">Domain Naming Master role</span></p>
<p><span>Again, start on the DC that you would like to transfer this role to. Open Active Directory Domains and Trusts, then right-click the top level that reads &#8220;Active Directory Domains and Trusts&#8221; then select &#8220;Operations Master&#8221; from the context menu.</span></p>
<p><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo4.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-434" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo4-300x153.jpg" alt="" width="300" height="153" /></a></span></p>
<p><span><span>Check that the DC listed is the machine you would like to change the role to, then click &#8220;Change&#8221;.</span></span></p>
<p><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo5.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-435" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo5-300x210.jpg" alt="" width="300" height="210" /></a></span></span></p>
<p><span><span><span>Confirm the change &#8211; If all went well you should now receive a message stating the transfer was a success.</span></span></span></p>
<p><span><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo6.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-436" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo6-300x109.jpg" alt="" width="300" height="109" /></a></span></span></span></p>
<p><span><span><span><span>Note that you can also use the &#8220;Connect to Domain Controller&#8221; option in the context menu to connect to the DC you would like to transfer the role to. Access this by right-clicking &#8220;Active Directory Domains and Trusts&#8221; and then selecting the &#8220;Connect to Domain Controller&#8221; option. Here is what the Connect to Domain Controller window should look like:</span></span></span></span></p>
<p><span><span><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo7.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-437" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo7-230x300.jpg" alt="" width="230" height="300" /></a></span></span></span></span></p>
<p><span><span><span><span> </span></span></span></span></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal"><span style="text-decoration: underline">Schema Master role</span></p>
<p class="MsoNormal">The Schema master role needs a little bit of extra work to change as the MMC snap-in you use is usually hidden. We will first need to register a .dll file before we are able to access this.</p>
<p><span>Again, start on the DC you would like the change the role to. Open a command prompt window and type in &#8220;regsvr32 schmmgmt.dll&#8221; then press Enter. You should receive a message stating the .dll was registered.</span></p>
<p><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo8.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-438" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo8-300x111.jpg" alt="" width="300" height="111" /></a></span></p>
<p><span><span>Now open a brand new MMC console. (Start -&gt; Run -&gt; type in &#8220;mmc&#8221; then press Enter). Select &#8220;File&#8221; then &#8220;Add/remove Snap-in&#8221; and click the &#8220;Add&#8221; button. You should see our newly added snap-in called &#8220;Active Directory Schema&#8221;. Select this option, then click &#8220;Add&#8221; and then &#8220;Close&#8221;. Click the &#8220;OK&#8221; button to go to back to your MMC.</span></span></p>
<p><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo9.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-439" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo9-300x196.jpg" alt="" width="300" height="196" /></a></span></span></p>
<p><span><span><span>Right-click &#8220;Active Directory Schema [your DC name]&#8221; and select &#8220;Change Domain Controller&#8221; if you are not already connected to the DC that you would like to inherit the role. Specify the DC&#8217;s name and confirm. In the screenshots below, I was defaulted to being connected to the DC1 server when loading the snap-in, but wanted to change to DC2 as this was the server that was going to be receiving the &#8220;Schema Master&#8221; role.</span></span></span></p>
<p><span><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo10.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-440" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo10-300x194.jpg" alt="" width="300" height="194" /></a></span></span></span></p>
<p><span><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo11.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-441" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo11-300x194.jpg" alt="" width="300" height="194" /></a></span></span></span></p>
<p><span><span><span><span>Right-click &#8220;Active Directory Schema [your DC name]&#8221; and select &#8220;Operations Master&#8221;. Finally, click the &#8220;Change&#8221; button to initiate the change. Confirm by click &#8220;Yes&#8221;, and you should receive a success message.</span></span></span></span></p>
<p><span><span><span><span><a href="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo12.jpg" rel="lightbox[430]"><img class="aligncenter size-medium wp-image-442" src="http://sysadmin-talk.org/wp-content/uploads/2010/06/fsmo12-300x159.jpg" alt="" width="300" height="159" /></a></span></span></span></span></p>
<p><span><span><span><span><span>That should cover the basics of transferring your five FSMO roles between Domain Controllers. In the next part we&#8217;ll take a practical look at how to seize roles using the ntdsutil.exe command.</span></span></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/06/transferring-fsmo-roles-in-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Tear your Hair Out over Access to Cisco Devices</title>
		<link>http://sysadmin-talk.org/2010/05/dont-tear-your-hair-out-over-access-to-cisco-devices/</link>
		<comments>http://sysadmin-talk.org/2010/05/dont-tear-your-hair-out-over-access-to-cisco-devices/#comments</comments>
		<pubDate>Wed, 12 May 2010 10:11:32 +0000</pubDate>
		<dc:creator>Sean Duffy</dc:creator>
				<category><![CDATA[Cisco devices]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=283</guid>
		<description><![CDATA[I just about tore my hair out the other night trying to find the right equipment to connect up to a small Cisco 1721 router. I wanted to get the afore mentioned router configured for some training I was doing. The problem of course being that I lacked a PC with any COM ports to [...]]]></description>
			<content:encoded><![CDATA[<p>I just about tore my hair out the other night trying to find the right equipment to connect up to a small Cisco 1721 router. I wanted to get the afore mentioned router configured for some training I was doing. The problem of course being that I lacked a PC with any COM ports to connect the Cisco console cable up to.  Just to think a few years ago I had rejoiced when motherboard manufacturers ceased supplying COM ports on their boards and replaced them with extra USB ports.<span id="more-283"></span></p>
<p>I really do take back what I had said regarding the usefulness of these ancient communications ports back then. I had been pacing through the house trying to find a USB to Serial adaptor, but after an hour or two of searching I came out empty-handed. Suddenly it dawned on me that my old PowerEdge 2450 sitting in my home lab set up had two COM ports. &#8220;Why didn&#8217;t I think of that earlier?&#8221;, I muttered as I hauled my equipment over to the lab to begin setting up. The answer? Well it was running VMware ESX 3.5 and I had absolutely no clue how to display a device&#8217;s console via ESX&#8217;s service console!</p>
<p><strong>Solution</strong></p>
<p>If for any reason you need to connect to a Cisco device (or any device with a serial cable to connect to the console for that matter) via an ESX 3.5 or 4.0 server then the following should also work for you. I&#8217;m also quite confident that this will also work for other Redhat based distibutions of linux.</p>
<p>Start by logging in to your ESX service console as the root user.</p>
<p style="text-align: center;"><a href="http://sysadmin-talk.org/wp-content/uploads/2010/05/ESXserviceconsole1.gif" rel="lightbox[283]"><img class="size-medium wp-image-285 aligncenter" title="ESX Service Console" src="http://sysadmin-talk.org/wp-content/uploads/2010/05/ESXserviceconsole1-300x81.gif" alt="ESX Service Console" width="300" height="81" /></a></p>
<p>You should by default be logged into the root user&#8217;s home folder. To ensure you are in the root home folder, you can run the following command:</p>
<p><code>[root@esx3lab root]#  cd ~</code></p>
<p>Next, we need to download some RPM packages to get the terminal emulation software we are going to be using installed. You could probably download these straight from the service console&#8217;s command line, but I prefer to download them to my management machine first then use WinSCP to copy them across to the ESX server. We need two packages, namely: <strong>minicom-2.00.0-12 RPM for i386</strong> and <strong>lockdev-1.0.0-16 RPM for i386</strong>. A google for these two packages turns up many download links, but here are two download links that are currently valid:</p>
<p>lockdev &#8211; ftp://ftp.linux.ncsu.edu/pub/realmlinux/realmkit-7.3/i386/RedHat/RPMS/lockdev-1.0.0-16.i386.rpm</p>
<p>Minicom &#8211; ftp://fr.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/minicom-2.00.0-12.i386.rpm</p>
<p>Once you have these two files we&#8217;ll need to copy them over to the ESX server and place them in the root user&#8217;s home folder. If you don&#8217;t already have WinSCP installed, <a href="http://winscp.net/eng/download.php" target="_blank">go grab it from winscp.net</a> now and install it on your Windows management machine.</p>
<p>On the service console of your ESX Host, we&#8217;ll need to make a quick change to allow SSH logins from the root user over the network. WinSCP uses an SSH login so this will be necessary if we are going to get anything transferred via WinSCP. Do the following to enable root logins to this ESX Host:<br />
<code><br />
[root@esx3lab root]# nano /etc/ssh/sshd_config</code></p>
<p>Find the line that reads <strong>PermitRootLogin no</strong> and change this to read: <strong>PermitRootLogin yes</strong></p>
<p>Press Ctrl + X to exit the nano editor and then press Y followed by the Enter key to save changes and exit. You&#8217;ll now need to restart the SSH service so do the following command:</p>
<p><code>root@esx3lab root]# service sshd restart</code></p>
<p>Back on the management machine with WinSCP installed, launch WinSCP and at the login window, type in the IP address of your ESX server, ensure that port 22 is selected and that you type in the username of root and your ESX server&#8217;s root password. Click the Login button, and click &#8220;Yes&#8221; when asked if you want to accept the private SSH key.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/05/WinSCPLogin.gif" rel="lightbox[283]"><img class="aligncenter size-medium wp-image-286" title="WinSCP Login" src="http://sysadmin-talk.org/wp-content/uploads/2010/05/WinSCPLogin-300x212.gif" alt="WinSCP Login" width="300" height="212" /></a></p>
<p>Once you are connected, you&#8217;ll be greeted by a file browser interface, with your host machine on the left and your ESX server on the right. The default location will the root user&#8217;s home folder on the right, so just select the two RPM packages you downloaded earlier on your host machine, then drag and drop them to the ESX server on the right. Select the &#8220;Copy&#8221; option when prompted. This will copy the two packages to your root user&#8217;s home folder on the ESX Server.</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/05/rootusershomefolderontheESXServer.gif" rel="lightbox[283]"><img class="aligncenter size-medium wp-image-287" title="Root user's home folder on the ESX Server" src="http://sysadmin-talk.org/wp-content/uploads/2010/05/rootusershomefolderontheESXServer-300x191.gif" alt="Root user's home folder on the ESX Server" width="300" height="191" /></a></p>
<p>Now, back at the service console (ESX Server) issue the following commands to get the lockdev library and minicom terminal emulator installed:</p>
<p><code>root@esx3lab root]# rpm --install lockdev-1.0.0-16.i386.rpm</code></p>
<p><code>root@esx3lab root]# rpm --install minicom-2.00.0-12.i386.rpm</code></p>
<p>Note that seeing as though you now have root SSH access to the ESX server, you could also just login to the Service Console using PuTTy &#8211; use the same details to login as we did with WinSCP. This will save you the hassle of having to sit in front of the ESX server itself, or connecting via a Remote Access Card.</p>
<p>We&#8217;ll now identify the serial port interfaces that our physical ESX server has. Run the following command:</p>
<p><code>root@esx3lab root]# dmesg |grep tty</code></p>
<p>You should get an output similar to the image below:</p>
<p><a href="http://sysadmin-talk.org/wp-content/uploads/2010/05/ESXoutput.gif" rel="lightbox[283]"><img class="aligncenter size-medium wp-image-288" title="ESX output" src="http://sysadmin-talk.org/wp-content/uploads/2010/05/ESXoutput-300x63.gif" alt="ESX output" width="300" height="63" /></a></p>
<p>ttyS0 refers to the COM1 port and ttyS1 refers to the COM2 port on the server I am working on. Note the values that you get down. We&#8217;ll be using these to set up minicom next.<br />
To start configuring minicom (provided it installed in the previous step!) issue the following command on your ESX host:</p>
<p><code>root@esx3lab root]# minicom -s</code></p>
<p>Go to Serial port setup in the menu, press <strong>Enter</strong>, then press <strong>A</strong> to configure the Serial Device as illustrated in the screenshot below. Type in <strong>/dev/ttyS0</strong> if you are going to be using COM1 to connect the serial cable to your Cisco / network device. Note that ttyS0 assumes that this is the device you found when you ran the &#8220;dmesg |grep tty&#8221; command previously. In my case I found ttyS0 and ttyS1 for COM1 and COM2. Press <strong>Enter</strong> to accept the entry. Now configure the &#8220;Bps/Par/Bits&#8221; setting. Press &#8220;<strong>E</strong>&#8221; to adjust this and ensure it reads <strong>9600 8N1</strong> &#8211; you should actually match this to the baud rate needed by the device you are connecting to. I used the above line as this is the standard for most default Cisco equipment. Press <strong>Enter</strong> to accept, then <strong>Enter</strong> again to go back to the main menu.</p>
<p>Next up, go to &#8220;<strong>Modem and dialing</strong>&#8220;. You&#8217;ll notice some strings entered in the &#8220;<strong>Init string</strong>&#8221; and &#8220;<strong>Reset string</strong>&#8221; lines. Erase these so that they are blank, then hit Enter to accept the setting and return to the main menu.</p>
<p>Now choose &#8220;<strong>Save setup as dfl</strong>&#8221; and then select &#8220;<strong>Exit from Minicom</strong>&#8221; to exit back to the ESX console.</p>
<p>Now, for the grand finale. Connect your serial console cable to the ESX server&#8217;s relevant COM port, then plug the other end into your Cisco or other network device that you want to configure. Type in the following from the ESX Service Console to connect:</p>
<p><code>root@esx3lab root]# minicom</code></p>
<p>You should be greeted by the Minicom welcome screen. Hit <strong>Enter</strong> and you should now see the console of your device you are plugged into!<br />
<a href="http://sysadmin-talk.org/wp-content/uploads/2010/05/minicom.gif" rel="lightbox[283]"><img class="aligncenter size-medium wp-image-289" title="Minicom welcome screen" src="http://sysadmin-talk.org/wp-content/uploads/2010/05/minicom-300x128.gif" alt="Minicom welcome screen" width="300" height="128" /></a></p>
<p>Here are a few commands for minicom to get you started:</p>
<p><strong>CTRL + A, then Q</strong> &#8211; Quit minicom and return to server console.</p>
<p><strong>CTRL + A, then F</strong> &#8211; Send a &#8220;Break&#8221; to your connected device. (Quite useful for Cisco equipment).</p>
<p><strong>CTRL + A, then Z</strong> &#8211; Show the minicom help screen, which displays other useful commands.</p>
<p><strong>Conclusion</strong></p>
<p>You should now have an ESX host that is able to interface with your equipment via a console cable. This how-to doesn&#8217;t necessarily only apply to ESX servers &#8211; you should be able to use it for just about any linux-based machine you have at your disposal.  Hopefully, like it did with me, this process will save your sanity one day when you find you are without the means to connect to a device console over serial cable!</p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/05/dont-tear-your-hair-out-over-access-to-cisco-devices/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 SCR Activation Error</title>
		<link>http://sysadmin-talk.org/2010/02/exchange-2007-scr-activation-error/</link>
		<comments>http://sysadmin-talk.org/2010/02/exchange-2007-scr-activation-error/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 11:12:23 +0000</pubDate>
		<dc:creator>Ben Lye</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange Testing]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=165</guid>
		<description><![CDATA[We use Standby Continuous Replication as part of our disaster recovery strategy.&#160; Our environment consists of an Exchange 2007 clustered mailbox server using CCR which also replicates to an SCR server.&#160; All our servers run Exchange 2007 SP2. This week we did a test activation of the SCR replica in our test environment, but ran [...]]]></description>
			<content:encoded><![CDATA[<p>We use Standby Continuous Replication as part of our disaster recovery strategy.&nbsp; Our environment consists of an Exchange 2007 clustered mailbox server using CCR which also replicates to an SCR server.&nbsp; All our servers run Exchange 2007 SP2.</P><br />
<P>This week we did a test activation of the SCR replica in our test environment, but ran into an issue that we could not find a documented solution for.&nbsp; In the hope that it saves someone else some time and anguish I’ve written about it here.<IMG class="mceWPmore mceItemNoResize" alt="" src="http://sysadmin-talk.org/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif"></P><br />
<P>The procedure for activating an SCR copy is pretty well documented on <A href="http://technet.microsoft.com/en-us/library/bb738150%28EXCHG.80%29.aspx">Microsoft TechNet</A>.</P><br />
<P>Step four in the activation procedure is to run the Exchange 2007 command line setup program, setup.com, to configure the clustered mailbox server on the SCR server.&nbsp; The command line looks like this:</P><br />
<P><CODE>Setup.com /RecoverCMS /CMSName:&lt;CMS Name&gt; /CMSIPAddress:&lt;IPAddress&gt;</CODE></P><br />
<P>When we ran the command on our SCR server we received this error output:</P><br />
<P><CODE>Clustered Mailbox Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. FAILED<BR></CODE><BR><CODE>Deleting virtual directory &#8216;IIS://exchangecms.example.com/W3SVC/1/ROOT/Exchange&#8217; on &#8216;exchangecms&#8217; failed.</CODE></P><br />
<P><CODE>The virtual directory &#8216;Exchange&#8217; already exists under &#8216;exchangecms.example.com/Default Web Site&#8217;.</CODE></P><br />
<P><CODE>Parameter name: VirtualDirectoryName</CODE></P><br />
<P><CODE>The Exchange Server Setup operation did not complete. For more information, visit http://support.microsoft.com and enter the Error ID.</CODE></P><br />
<P><CODE>Exchange Server setup encountered an error.<BR></CODE><BR>An event 1002 error was also logged in the Application event log:<BR><CODE><BR>Exchange Server component Clustered Mailbox Server failed.</CODE></P><br />
<P><CODE>Error: Error:</CODE></P><br />
<P><CODE>Deleting virtual directory &#8216;IIS://exchangecms.example.com/W3SVC/1/ROOT/Exchange&#8217; on &#8216;exchangecms&#8217; failed.</CODE></P><br />
<P><CODE>WMI exception occured on server ‘exchangecms.example.com’: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)</CODE><BR><CODE><BR>The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)</CODE></P><br />
<P><CODE>Error:</CODE></P><br />
<P><CODE>The virtual directory &#8216;Exchange&#8217; already exists under &#8216;exchangecms.example.com/Default Web Site&#8217;.</CODE></P><br />
<P><CODE>Parameter name: VirtualDirectoryName</CODE></P><br />
<P><CODE>For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</CODE></P><br />
<P>There is a similar issue described in this Microsoft Knowledge Base article: <A href="http://support.microsoft.com/kb/971713">http://support.microsoft.com/kb/971713</A>, but that did not help us as the conditions of our situation were different – both our SCR and CCR test servers are in the same AD site.&nbsp; Nevertheless we checked our DCs and replication and found no problems.</P><br />
<P>After first checking the obvious things – domain controller replication, DNS and WINS name registrations and resolution, and re-running the command several times, we realised that the SCR server had managed to partially bring up the clustered mailbox server.&nbsp; The Exchange services had been added to the cluster group, including the cluster name and IP address.&nbsp; This meant that the server which setup was trying to modify must have been the SCR server itself.&nbsp; We started IIS manager on the SCR server, and sure enough, the ‘Exchange’ virtual directory did indeed exist under the ‘Default Web Site’.</P><br />
<P><IMG alt="" src="/Profiles/MICHAE~1.FRA/LOCALS~1/Temp/moz-screenshot.jpg"><IMG alt="" src="/Profiles/MICHAE~1.FRA/LOCALS~1/Temp/moz-screenshot-1.jpg"><IMG alt="" src="/Profiles/MICHAE~1.FRA/LOCALS~1/Temp/moz-screenshot-2.jpg"><IMG alt="" src="/Profiles/MICHAE~1.FRA/LOCALS~1/Temp/moz-screenshot-3.jpg"></P><br />
<P><br />
<DIV class="mceTemp mceIEcenter"><br />
<DL><br />
<DT><A href="http://sysadmin-talk.org/wp-content/uploads/2010/02/exchangevirtualdirectory4.png" rel="lightbox[165]"><IMG class="size-medium wp-image-177" alt="‘Exchange’ virtual directory did indeed exist under the ‘Default Web Site’." src="http://sysadmin-talk.org/wp-content/uploads/2010/02/exchangevirtualdirectory4-300x200.png" width="300" height="200"></A></DT><br />
<DD>‘Exchange’ virtual directory did indeed exist under the ‘Default Web Site’.</DD></DL></DIV></P><br />
<P>We removed the three Exchange virtual directories, Exadmin, Exchange, and Public, and re-ran the setup.com command and the process went through without any further errors.</P><br />
<P>So, if you are trying to activate an SCR replica, and you get an error telling you that the Exchange virtual directories already exist, try removing them on the SCR server.</p>
<div>have baby boyhaving a baby what do i need  <a href="http://beachplastic.com/">How do get pregnant</a>  steps of having a babywhen will i have a baby predictor</div>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/02/exchange-2007-scr-activation-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

