<?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>danejeffrey.com &#187; windows</title>
	<atom:link href="http://danejeffrey.com/blog/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://danejeffrey.com/blog</link>
	<description>Good ways to break things.</description>
	<lastBuildDate>Wed, 05 Oct 2011 00:13:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>netsh &#8211; Set Multiple DNS Servers</title>
		<link>http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/</link>
		<comments>http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 00:07:10 +0000</pubDate>
		<dc:creator>danejeff</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://danejeffrey.com/blog/?p=557</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/' addthis:title='netsh &#8211; Set Multiple DNS Servers '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>So to set a single DNS server using netsh at the Windows command prompt you can do as follows: netsh&#62; interface ip netsh interface ip&#62;set dns "Local Area Connection" static addr=10.0.0.1 The first command changes to the interface ip context. The second command sets a single DNS server. That&#8217;s great when you have one server [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/' addthis:title='netsh &#8211; Set Multiple DNS Servers ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/' addthis:title='netsh &#8211; Set Multiple DNS Servers '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>So to set a single DNS server using netsh at the Windows command prompt you can do as follows:</p>
<pre class="brush:shell">netsh&gt; interface ip
netsh interface ip&gt;set dns "Local Area Connection" static addr=10.0.0.1</pre>
<p>The first command changes to the interface ip context. The second command sets a single DNS server. That&#8217;s great when you have one server but many networks will have alternate addresses as well. To add those, use this:</p>
<pre class="brush:shell">netsh interface ip&gt;add dns "Local Area Connection" addr=10.0.0.2</pre>
<p>You can also put index=X at the end of the command to put the server in the right place in the ordered list.</p>
<p>Finally, to get DNS servers via DHCP instead of static, do this:</p>
<pre class="brush:shell">netsh interface ip&gt;set dns "Local Area Connection" dhcp</pre>
<p>The same syntax as above can be used for WINS servers as well, just replace dns with wins.</p>
<p>For Windows 7, the commands are basically the same but some syntax has changed, for example, replace dns with dnsservers and wins with winsservers. The context has also changed when you switch to the interface ip context it will be labelled netsh interface ipv4. Do a &#8220;set/add dns ?&#8221; for command help.</p>
<img src="http://danejeffrey.com/blog/?ak_action=api_record_view&id=557&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/' addthis:title='netsh &#8211; Set Multiple DNS Servers ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://danejeffrey.com/blog/2011/10/05/netsh-set-multiple-dns-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 8 Developer Preview &#8211; Virtual Machine Install</title>
		<link>http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/</link>
		<comments>http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 23:33:56 +0000</pubDate>
		<dc:creator>danejeff</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://danejeffrey.com/blog/?p=551</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/' addthis:title='Windows 8 Developer Preview &#8211; Virtual Machine Install '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>Since Windows 8 Developer Preview / Pre-Beta is now available, thought I&#8217;d give it a test running as a virtual machine in VMware Workstation. Initially tried the 32-bit version of Windows 8 under VMware Workstation  7.0.1 but it failed to start with a HAL_INITIALIZATION_FAILED error, with the fancy new sad face BSOD. Tried multiple different [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/' addthis:title='Windows 8 Developer Preview &#8211; Virtual Machine Install ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/' addthis:title='Windows 8 Developer Preview &#8211; Virtual Machine Install '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Since Windows 8 Developer Preview / Pre-Beta is now <a href="http://msdn.microsoft.com/en-us/windows/apps/br229516">available</a>, thought I&#8217;d give it a test running as a virtual machine in VMware Workstation.</p>
<p>Initially tried the 32-bit version of Windows 8 under VMware Workstation  7.0.1 but it failed to start with a HAL_INITIALIZATION_FAILED error, with the fancy new sad face BSOD.</p>
<p><a href="http://danejeffrey.com/blog/wp-content/uploads/2011/09/w8bsod.png"><img class="aligncenter size-medium wp-image-558" title="w8bsod" src="http://danejeffrey.com/blog/wp-content/uploads/2011/09/w8bsod-300x222.png" alt="" width="300" height="222" /></a></p>
<p>Tried multiple different CPU, Memory and HDD configurations but would always end up with the same result. So, to be sure it wasn&#8217;t going to run in Workstation 7, I downloaded the latest build version 7.1.4 and gave that a try. Same result.</p>
<p>As is documented in <a href="http://social.msdn.microsoft.com/Forums/en-US/windowsdeveloperpreviewgeneral/thread/eceed57c-9a14-4a1d-9994-929e731ed999">numerous</a> <a href="http://www.mywindowsclub.com/resources/5079-Windows-installation-error.aspx">places</a> <a href="http://www.windowslifestyle.com/solve-halinitializationfailed-error-installing-windows-8-developer-preview-build/">online</a>, the Windows 8 Developer Preview will work in VMware Workstation 8 and in the latest build of <a href="http://www.virtualbox.org">VirtualBox</a> (v4.1.2). It is not supported in most older virtualization software including Virtual PC. If you&#8217;re just intending to run up a Windows 8 virtual machine for testing purposes, VirtualBox is probably the way to go. You can run VMware Workstation as a <a href="http://www.vmware.com/go/tryworkstation">trial for 30 days</a> but you will then need to purchase whereas VirtualBox is freely available under the GNU GPL v2.</p>
<p>As for Windows 8 on VMware ESX or ESXi (any version), subscribe to this KB for updates:  <a href="http://kb.vmware.com/kb/2006859">http://kb.vmware.com/kb/2006859</a> Note: Although there are Windows 8 options in the Guest Operating System drop down in vSphere / ESXi 5 (though only when editing the VM, not creating it), VMware is not currently supporting Windows 8 in that environment. I ended up getting the same HAL_INITIALIZATION_FAILED sad face BSOD as above in Workstation when trying to get Windows 8 to start under ESXi 5.</p>
<img src="http://danejeffrey.com/blog/?ak_action=api_record_view&id=551&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/' addthis:title='Windows 8 Developer Preview &#8211; Virtual Machine Install ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://danejeffrey.com/blog/2011/09/20/windows-8-developer-preview-virtual-machine-install/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Windows 7 BitLocker To Backup Recovery Info To Active Directory In A Windows Server 2003 Domain</title>
		<link>http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/</link>
		<comments>http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 01:23:11 +0000</pubDate>
		<dc:creator>danejeff</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[7]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://danejeffrey.com/blog/?p=530</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/' addthis:title='Getting Windows 7 BitLocker To Backup Recovery Info To Active Directory In A Windows Server 2003 Domain '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>Long title but pretty much explains it all. Thread about this here [social.technet.microsoft.com] So you&#8217;ve got Windows 7 clients and a Windows Server 2003 domain. All the domain preparation has been completed  (schema extensions for Vista, etc)  and all your Group Policy settings in place to require a machine to backup its recovery keys / [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/' addthis:title='Getting Windows 7 BitLocker To Backup Recovery Info To Active Directory In A Windows Server 2003 Domain ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/' addthis:title='Getting Windows 7 BitLocker To Backup Recovery Info To Active Directory In A Windows Server 2003 Domain '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Long title but pretty much explains it all. Thread about this <a href="http://social.technet.microsoft.com/Forums/en-GB/w7itprosecurity/thread/32f8d069-e8c8-4936-895b-5d5db1f4ae7a" target="_blank">here</a> [social.technet.microsoft.com]</p>
<p>So you&#8217;ve got Windows 7 clients and a Windows Server 2003 domain. All the domain preparation has been completed  (schema extensions for Vista, etc)  and all your Group Policy settings in place to require a machine to backup its recovery keys / recovery passwords to Active Directory before enabling BitLocker, but it isn&#8217;t working.</p>
<p>First, try running:</p>
<pre class="brush:shell">manage-bde -protectors -adbackup c: -id &lt;numerical_id&gt;</pre>
<p>I was getting a group policy permission denied error which matched the situation in this <a href="http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/2db92303-3430-4627-a264-196b8b5636d0/" target="_blank">thread</a> [social.technet.microsoft.com]</p>
<p>I initially tried setting the necessary GPO options via local policy, see <a href="http://blogs.technet.com/b/askcore/archive/2010/02/16/cannot-save-recovery-information-for-bitlocker-in-windows-7.aspx" target="_blank">here</a> [blogs.technet.com] &#8211; refers to Group Policy, but use local policy (gpedit.msc) on the target Windows 7 machine. This will work, but because you have Windows Server 2003 domain controllers and even trying to set Group Policy on a Windows 7 machine with RSAT installed, the Windows 7 group policy options are not available (i.e. the Fixed Data drive, Operating System drive, etc options). They are only available in the ADMX templates which Windows 2003 can&#8217;t read. So, you need to set them using Extra Registry Settings instead.</p>
<p>Also, it turns out that the backup to AD registry settings that get applied have changed from Windows Vista to Windows 7 (because Windows 7 extends upon BitLocker beyond what Vista offered). In Vista the policy created keys called:</p>
<ul>
<li>ActiveDirectoryBackup, REG_DWORD (1)</li>
<li>ActiveDirectoryInfoToStore, REG_DWORD (1)</li>
<li>RequireActiveDirectoryBackup, REG_DWORD (1)</li>
</ul>
<p>Windows 7 does not recognise these as they are now on a drive type basis. So, create in your GPO Extra Registry Settings as follows (this is for enabling FVE on an OS drive):</p>
<ul>
<li>OSActiveDirectoryBackup, REG_DWORD (1)</li>
<li>OSActiveDirectoryInfoToStore, REG_DWORD (1)</li>
<li>OSRequireActiveDirectoryBackup, REG_DWORD (1)</li>
</ul>
<p>These registry settings should be created in HKLM\SOFTWARE\Policies\Microsoft\FVE</p>
<p>Remove the local settings (if you chose to test that way) and once Group Policy is updated, the correct settings will be applied and AD backup of BitLocker recovery info will work. Note that backup of recovery info is only ever attempted once during the BitLocker enable process. It can be retried with the manage-bde command as shown above though.</p>
<img src="http://danejeffrey.com/blog/?ak_action=api_record_view&id=530&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/' addthis:title='Getting Windows 7 BitLocker To Backup Recovery Info To Active Directory In A Windows Server 2003 Domain ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://danejeffrey.com/blog/2011/06/01/getting-windows-7-bitlocker-to-backup-protectors-keys-to-active-directory-in-a-windows-server-2003-domain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows NTFS Permissions To Allow Create File Access But Not Modify Files</title>
		<link>http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/</link>
		<comments>http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:13:32 +0000</pubDate>
		<dc:creator>danejeff</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://danejeffrey.com/blog/?p=512</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/' addthis:title='Windows NTFS Permissions To Allow Create File Access But Not Modify Files '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>Generally speaking, NTFS permissions for creating files and modifying data are one and the same, that is, Create files / write data are a single item in the Advanced Security Settings -&#62; Permissions Entry dialog. However, it is possible to grant create file access separately to write data access. This is done by granting the [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/' addthis:title='Windows NTFS Permissions To Allow Create File Access But Not Modify Files ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/' addthis:title='Windows NTFS Permissions To Allow Create File Access But Not Modify Files '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Generally speaking, NTFS permissions for creating files and modifying data are one and the same, that is, Create files / write data are a single item in the Advanced Security Settings -&gt; Permissions Entry dialog.</p>
<p>However, it is possible to grant create file access separately to write data access. This is done by granting the following permissions (assume the group to apply this to is called CreateOnlyGroup):</p>
<table>
<tbody>
<tr>
<td><strong>Name</strong></td>
<td><strong>Permission</strong></td>
<td><strong>Apply To</strong></td>
</tr>
<tr>
<td>CreateOnlyGroup</td>
<td>Read &amp; Execute</td>
<td>This folder, subfolders and files</td>
</tr>
<tr>
<td>CreateOnlyGroup</td>
<td>Create files / write data</td>
<td>This folder and subfolders</td>
</tr>
<tr>
<td>CREATER OWNER</td>
<td>Read &amp; Execute</td>
<td>Files only</td>
</tr>
</tbody>
</table>
<p>If you wanted to allow the CreateOnlyGroup to then be able to modify the files that they created but not ones that they didn&#8217;t, just change the CREATER OWNER permissions to allow that.</p>
<img src="http://danejeffrey.com/blog/?ak_action=api_record_view&id=512&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/' addthis:title='Windows NTFS Permissions To Allow Create File Access But Not Modify Files ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://danejeffrey.com/blog/2011/02/23/windows-ntfs-permissions-to-allow-create-file-access-but-not-modify-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows PowerShell Send Email</title>
		<link>http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/</link>
		<comments>http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 01:16:11 +0000</pubDate>
		<dc:creator>danejeff</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://danejeffrey.com/blog/?p=337</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/' addthis:title='Windows PowerShell Send Email '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>This is posted in heaps of places online (this post is pretty useful &#8211; includes details on message format and attachments), so mainly for my own reference: $emailFrom = "someone@domain.com" $emailTo = "someone_else@domain.com" $subject = "Subject" $body = "Some text" $smtpServer = "mail-server.domain.com" $smtp = new-object Net.Mail.SmtpClient($smtpServer) $smtp.Send($emailFrom, $emailTo, $subject, $body)<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/' addthis:title='Windows PowerShell Send Email ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/' addthis:title='Windows PowerShell Send Email '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>This is posted in heaps of places online (this <a href="http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/5f7a9d63-6a37-4d98-b710-d76fde920a37">post</a> is pretty useful &#8211; includes details on message format and attachments), so mainly for my own reference:</p>
<pre class="brush:ps">
$emailFrom = "someone@domain.com"
$emailTo = "someone_else@domain.com"
$subject = "Subject"
$body = "Some text"
$smtpServer = "mail-server.domain.com"
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $body)</pre>
<img src="http://danejeffrey.com/blog/?ak_action=api_record_view&id=337&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/' addthis:title='Windows PowerShell Send Email ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://danejeffrey.com/blog/2010/07/06/windows-powershell-send-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

