<?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; Software Testing</title>
	<atom:link href="http://sysadmin-talk.org/category/software-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysadmin-talk.org</link>
	<description>Practical advice from front-line SysAdmins</description>
	<lastBuildDate>Fri, 05 Aug 2011 16:59:32 +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>Are you Fast, Faultless and Powerful?</title>
		<link>http://sysadmin-talk.org/2011/03/are-you-fast-faultless-and-powerful/</link>
		<comments>http://sysadmin-talk.org/2011/03/are-you-fast-faultless-and-powerful/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:54:19 +0000</pubDate>
		<dc:creator>Michael Francis</dc:creator>
				<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=854</guid>
		<description><![CDATA[Are you fast, faultless and powerful? If you are, then take a look at the cool wallpapers (for mobile or desktop) and screensaver that the Oracle team have designed for download. If you&#8217;re not working with Oracle, but you know someone who is, please tell them about Red Gate&#8217;s oracle tools and they too can [...]]]></description>
			<content:encoded><![CDATA[<p>Are you fast, faultless and powerful? If you are, then take a look at the cool <a href="http://www.red-gate.com/products/oracle-development/deployment-suite-for-oracle/entrypage/schema-data-deployed?utm_source=sysadmintalk&amp;utm_medium=blog&amp;utm_content=iam&amp;utm_campaign=deploymentsuite"><strong>wallpapers</strong></a> (for mobile or desktop) and screensaver that the Oracle team have designed for download. If you&#8217;re not working with Oracle, but you know someone who is, please tell them about Red Gate&#8217;s oracle tools and they too can add some colour to their desk top!</p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-858" title="I AM Fast" src="http://sysadmin-talk.org/wp-content/uploads/2011/03/Fast.jpg" alt="" width="500" height="300" /></p>
<p><span id="more-854"></span></p>
<p style="text-align: center;"><img class="size-full wp-image-864  aligncenter" title="I AM Faultless" src="http://sysadmin-talk.org/wp-content/uploads/2011/03/Faultless.jpg" alt="" width="500" height="300" /></p>
<p style="text-align: center;"><img class="size-full wp-image-865  aligncenter" title="I AM Powerful" src="http://sysadmin-talk.org/wp-content/uploads/2011/03/Powerful.jpg" alt="" width="500" height="300" /></p>
<p><a href="http://www.red-gate.com/products/oracle-development/deployment-suite-for-oracle/entrypage/schema-data-deployed?utm_source=sysadmintalk&amp;utm_medium=blog&amp;utm_content=iam&amp;utm_campaign=deploymentsuite"><strong>Download the wallpapers (for mobile or desktop) and screensaver</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2011/03/are-you-fast-faultless-and-powerful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing with Exchange Server – Tips and Tricks – Part 2 – Creating Mailboxes</title>
		<link>http://sysadmin-talk.org/2010/06/testing-with-exchange-server-%e2%80%93-tips-and-tricks-%e2%80%93-part-2-%e2%80%93-creating-mailboxes/</link>
		<comments>http://sysadmin-talk.org/2010/06/testing-with-exchange-server-%e2%80%93-tips-and-tricks-%e2%80%93-part-2-%e2%80%93-creating-mailboxes/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 10:24:28 +0000</pubDate>
		<dc:creator>Reka Burmeister</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Testing]]></category>
		<category><![CDATA[IT Professional]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[PST Importer]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Exchange software testing]]></category>
		<category><![CDATA[PST]]></category>
		<category><![CDATA[PST Files]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=463</guid>
		<description><![CDATA[In a previous article I mentioned how to create users and computers in active directory, the first stage of testing the PST Importer (and ESA). The next step is to go to Exchange and create mailboxes to the users that we just created and for further comfortable management, add access permissions to them where needed. [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://sysadmin-talk.org/2010/02/testing-with-exchange-server-tips-and-tricks-part-1-setting-up-active-directory/" target="_blank">previous article</a> I mentioned how to create users and computers in active directory, the first stage of testing the PST Importer (and ESA). The next step is to go to Exchange and create mailboxes to the users that we just created and for further comfortable management, add access permissions to them where needed.<span id="more-463"></span></p>
<p>This is much easier in Exchange 2007 than it was in Exchange 2003 as here we can use PowerShell. I would like to mention that in case of using Ex 2007, we don’t even have to create the users in advance, the server will take care of that for you. For the full 2007 PowerShell reference guide please see this page <a href="http://technet.microsoft.com/en-us/library/bb123703%28EXCHG.80%29.aspx#NthruR">http://technet.microsoft.com/en-us/library/bb123703%28EXCHG.80%29.aspx#NthruR</a></p>
<p>In short, in order to create a new user type in:</p>
<p><code>New-Mailbox -Name &lt;String&gt; -Database &lt;DatabaseIdParameter&gt; -Password &lt;SecureString&gt; -UserPrincipalName &lt;String&gt; [-DisplayName &lt;String&gt;] [-FirstName &lt;String&gt;] [-Initials &lt;String&gt;] [-LastName &lt;String&gt;]</code></p>
<p>You might notice that if you simply type a string in for the password you’ll get an error:</p>
<p><code>New-Mailbox : Cannot bind parameter 'Password'. Cannot convert value "[given_password]" to type "System.Security.SecureString". Error: "Invalid cast from 'System.String' to ‘System.Security.SecureString'."</code></p>
<p>The reason for this is that the given password has to be a secure string type. In order to create it, type in the following (has to be separate from the previous command):</p>
<p><code><br />
$Password = ConvertTo-SecureString '&lt;string&gt;' -AsPlainText –Force</code></p>
<p>After this you could refer to the given password as $Password.</p>
<p>We usually use this command in two different ways. The first one is to use a scripting language (my preference is Python) to generate the commands with different names. I have a list with the thousand most popular first names and the thousand most popular surnames. My script simply combines the two, giving me quite a lot of options. The second method is to name the users using a counter such as User 1; User 2;&#8230; User n and use a cycle in PowerShell to generate all required user names, such as:</p>
<p><code>$Password = ConvertTo-SecureString '&lt;password&gt;' -AsPlainText –Force</code></p>
<p><code>for ($i=0; $i -le 10; $i++)</p>
<p>{</code></p>
<p><code>New-Mailbox –Name &lt;name&gt;$i -Database &lt;dbname&gt; -Password $Password -UserPrincipalName &lt;UPname&gt; -DisplayName "&lt;name&gt; $i" -FirstName &lt;firstname&gt; -LastName $i</p>
<p>}</code></p>
<p>If someone doesn’t like PowerShell or doesn’t have it (e.g. Exchange 2003), the batch files I mentioned earlier used in active directory work just fine. After creating the users using those the mailboxes can be assigned to them fairly easily. In Exchange 2007, we have to start the “create new mailbox” process and select “existing users” in the first window. </p>
<p>This will show all users in AD that don’t have mailboxes. Fortunately multiselection is allowed so we don’t have to handle them one by one. Exchange 2003 doesn’t have this feature but there’s an easy workaround. Do a search using Exchange 2003’s Active Directory Users and Computers application for all users and multiselect them. Right clicking once will open the context menu where we can select “Exchange tasks” and “Create exchange mailbox” from there.</p>
<p>Finally, the command to add full access rights to a specific user so all mailboxes could be opened (and managed) from one outlook:</p>
<p><code>foreach ($sg in Get-StorageGroup) { if ((Get-ExchangeServer<br />
$sg.Server).Domain.Equals("<em>DomainName.com</em>")) { get-mailboxdatabase<br />
-storagegroup $sg.Identity | add-adpermission -user <em>UserName</em><br />
<em> </em>-accessrights GenericAll; } }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/06/testing-with-exchange-server-%e2%80%93-tips-and-tricks-%e2%80%93-part-2-%e2%80%93-creating-mailboxes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yikes!!! Windows Server 2008 can’t boot, winload.exe can’t be located</title>
		<link>http://sysadmin-talk.org/2010/02/yikes-windows-server-2008-can%e2%80%99t-boot-winload-exe-can%e2%80%99t-be-located/</link>
		<comments>http://sysadmin-talk.org/2010/02/yikes-windows-server-2008-can%e2%80%99t-boot-winload-exe-can%e2%80%99t-be-located/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:29:32 +0000</pubDate>
		<dc:creator>Reka Burmeister</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange Archiving]]></category>
		<category><![CDATA[Exchange Testing]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Exchange software testing]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=136</guid>
		<description><![CDATA[I just came across this problem (Windows Server 2008 can’t boot, winload.exe can’t be located) and as it took me about 3 (yes THREE!!) hours to fix I thought I&#8217;d share with you all to save you time. Working on Exchange email archiving software and PST Importing tools we have a test network with quite [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across this problem (Windows Server 2008 can’t boot, winload.exe can’t be located) and as it took me about 3 (yes THREE!!) hours to fix I thought I&#8217;d share with you all to save you time.</p>
<p>Working on <a title="Exchange email archiving software" href="http://www.red-gate.com/products/Exchange/index.htm?subject=sysadmintalk">Exchange email archiving software</a> and PST Importing tools we have a test network with quite a few virtual machines, many with Windows Server 2008 installed.<span id="more-136"></span></p>
<p>The first lesson learnt was to never try to create a virtual (or real) Windows 2008 network with less than 50 GB of hard drive space. The Windows installation itself takes up about 10 GB, and then everyone’s favourite the winsxs folder will just grow and grow,  and in the end you run out of disk space although you have nothing else on your C drive but a basic server installation and Exchange (Exchange installation that is, all relevant data files and databases are on a different drive of course).</p>
<p>Anyhow, after a while we found ourselves in a situation where we have a nice pool of complex networks with virtual machines and half of them are complaining about low disk space. The solution is to extend the virtual disk, but it’s not as easy as one might think.</p>
<p>First, you have to shut your virtual machine down, open a command prompt on your host and navigate to your VMware server installation where you’ll have to use vmware-vdiskmanager.exe as such:</p>
<p><code>vmware-vdiskmanager.exe –x [Size][dimension] [path to virtual disk]</code></p>
<p><code>e.g.: vmware-vdiskmanager.exe –x 50Gb E:\virtual_machines\Medium\Exchange4\Exchange4.vmdk</code></p>
<p>Make sure that you specify the real virtual disk’s path and not the flat file or a partial slice (the tool’s error reporting is very poor on that regard). You also have to make sure that you have no snapshots for the computer in question otherwise the tool will refuse to work (with the proper error message this time at least).</p>
<p>If everything goes well, your virtual disk will be resized to the specified value after the process finished. The next step is to mount this drive into a different virtual machine, and edit its partitions using Disk Manager (built-in UI) or diskpart which is a built-in command line tool. If you choose the former, you’ll have to select the drive that you wish to make bigger, right click on it and select “extend”, while in diskpart type:</p>
<p><code>list volume<br />
select volume [n]<br />
extend</code></p>
<p>List volume lists all available volumes, with the select command you can select the one that is to be extended and type <code>extend</code> to carry out the action.</p>
<p>After all this, theoretically just unmount (remove) your disk from the second machine, start the first one up and it should all work fine.</p>
<p>It worked for Windows Vista, but my Windows 2008 failed to boot with the error:</p>
<p><code>Can’t find c:\Windows\System32\winload.exe the file is missing or corrupted</code></p>
<p>This seemed vaguely familiar, I thought it’s just the old “NTLDR is missing or corrupted” that I was always able to fix using the installation disk. I was looking forward to have some built-in tool in the installer that might just have been developed to fix such issues. To my surprise, there was none.</p>
<p>The repair options were “Restore computer”, “Windows Memory Diagnostic Tool” and “Command Prompt”. Unfortunately Restore Computer needs a backup file to work with that I obviously didn’t have (virtual test machine) and rebuilding it wasn’t an option as it was one of my exchange servers in the system&#8230; I started to get rather upset and stressed about it and began googling for the problem desperately.</p>
<p>The first few hits were of no help and at some point I even wandered around Microsoft’s TechNet forum where I read that the start-up repair option was removed from 2008 per design (!?).  It wasn’t easy, but after several unsuccessful searchers I found another blog post with the solution:</p>
<p><code>Execute next commands in repair mode (Vista / Win2k8):<br />
c:\windows\system32\bcdedit /set {default} device partition=c:<br />
c:\windows\system32\bcdedit /set {default} osdevice partition=c:<br />
c:\windows\system32\bcdedit /set {bootmgr} device partition=c:</code></p>
<p>It worked like a charm, my system could boot without any problems and I didn’t have to waste a day to reinstall the server and exchange.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/02/yikes-windows-server-2008-can%e2%80%99t-boot-winload-exe-can%e2%80%99t-be-located/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Testing with Exchange Server &#8211; Tips and Tricks &#8211; Part 1 &#8211; Setting up Active Directory</title>
		<link>http://sysadmin-talk.org/2010/02/testing-with-exchange-server-tips-and-tricks-part-1-setting-up-active-directory/</link>
		<comments>http://sysadmin-talk.org/2010/02/testing-with-exchange-server-tips-and-tricks-part-1-setting-up-active-directory/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:38:02 +0000</pubDate>
		<dc:creator>Reka Burmeister</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange Archiving]]></category>
		<category><![CDATA[Exchange Testing]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Exchange software testing]]></category>
		<category><![CDATA[messages]]></category>

		<guid isPermaLink="false">http://sysadmin-talk.org/?p=122</guid>
		<description><![CDATA[Testing in an Exchange environment has been a challenge for Red Gate Software for some time now as we developed and tested Exchange Server Archiver. Now we are working on a PST Importer tool, we had to once again &#8216;fire up&#8217; our virtual servers. The problem was a bit more complex this time, because if [...]]]></description>
			<content:encoded><![CDATA[<p>Testing in an Exchange environment has been a challenge for <a href="http://www.red-gate.com?subject=sysadmintalk">Red Gate Software</a> for some time now as we developed and tested <a href="http://www.red-gate.com/products/Exchange/index.htm?subject=sysadmintalk">Exchange Server Archiver</a>. Now we are working on a PST Importer tool, we had to once again &#8216;fire up&#8217; our virtual servers. The problem was a bit more complex this time, because if we want to create a realistic  test environment we should have about a hundred virtual machines that we could hook on to our domain. As before, we’ll need mailboxes for these users but this time we would like some of the PST files to be opened in some of the users’ Outlook (I’ll explain this later). So here’s how we managed to do this all without actually creating all the machines for it.<span id="more-122"></span></p>
<p>The first step was the easiest – create around a hundred machines in different organisational units in active directory.</p>
<p>We needed this part as our Search wizard queries Active Directory for computers in the system. The user than can select the computers they wish to search for PST files. The grid where they are displayed and various features around selection should be tested, but at this stage it is enough if the computer is simply created in Active Directory. You can go to your Domain Controller, run “Active Directory Users and Computers” management console, right click on any container, select “New” and select “Computer”. This way you can create any computer in your AD tree without physically having it in your system. If one desires to create a larger amount of computers, doing it manually really shouldn’t be an option, in which case a simple .bat file solves the problem.</p>
<p>To create an OU where the new computer(s) should go:</p>
<p><code>dsadd ou "OU=[name_of_OU],DC=[name_of_domain],DC=[name_of_domain]"</code></p>
<p>For embedded OUs:</p>
<p>dsadd ou &#8220;OU=[name_of_OU_child2], OU=[name_of_OU_child1], OU=[name_of_OU_parent],DC=[name_of_domain],DC=[name_of_domain]&#8221;</p>
<p>To add the computer:</p>
<p><code>dsadd computer "cn=[computer_name],ou=[ou_name(s)],dc=[name_of_domain],dc=[name_of_domain]" -uc</code></p>
<p>And now that we have the window open anyway, to add a user:</p>
<p><code>dsadd user "CN=[user_name],OU=[name_of_ou],DC=[name_of_domain],DC=[name_of_domain]" -samid [name_of_user (SAM id)] -upn [user_name@fqdn]<br />
-fn [First_name] -ln [last_name] -display "[display_name]" -pwd [password]</code></p>
<p>This enables us to test most of the basic grid functionality and enablement. In order to check that these non-existing machines are handled correctly when the PST agent is installed on them our developers created a “data faker”, that browses the AD tree to get all computer names and we can set all available statuses for the computers found. This data faker is used to simulate search results as well.</p>
<p>We usually do a script that creates these user/computer names with an incrementing counter, but in some cases it might be a collection of really nasty characters/deeply embedded OUs or other special cases.</p>
<p><strong>*<a href="http://sysadmin-talk.org/2010/06/testing-with-exchange-server-%E2%80%93-tips-and-tricks-%E2%80%93-part-2-%E2%80%93-creating-mailboxes/" target="_blank">Coming up in Part 2 &#8211; Reka will cover scripts to create mailboxes in Exchange 2007, and how to modify access rights on them</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://sysadmin-talk.org/2010/02/testing-with-exchange-server-tips-and-tricks-part-1-setting-up-active-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

