<?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>Luka Manojlovic &#187; MS Windows server</title>
	<atom:link href="http://luka.manojlovic.net/category/ms-windows-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://luka.manojlovic.net</link>
	<description>Luka&#039;s technical blog</description>
	<lastBuildDate>Sun, 18 Dec 2011 14:19:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hyper-V virtual machine backup script&#8230;</title>
		<link>http://luka.manojlovic.net/2011/09/29/hyper-v-virtual-machine-backup-script/</link>
		<comments>http://luka.manojlovic.net/2011/09/29/hyper-v-virtual-machine-backup-script/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 10:59:27 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[MS Scripting]]></category>
		<category><![CDATA[VBS Scripts]]></category>
		<category><![CDATA[Windows server 2008]]></category>
		<category><![CDATA[Windows server 2008 R2]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=339</guid>
		<description><![CDATA[Today my friend Marko Cepe sent me his VBS script that does great job to backup virtual machines that are running on Hyper-V. This script does shut down virtual machine by sending shut down command to machine using integration services, then it waits virtual machine to enter stopped state, after that it does export of [...]]]></description>
			<content:encoded><![CDATA[<p>Today my friend Marko Cepe sent me his VBS script that does great job to backup virtual machines that are running on Hyper-V.<br />
This script does shut down virtual machine by sending <a href="http://luka.manojlovic.net/2010/05/24/manage-hyper-v-virtual-machines-using-wmi-and-vbs-scripts/" target="_blank">shut down command to machine using integration services</a>, then it waits virtual machine to enter stopped state, after that it does export of the machine and turns the machine back on.</p>
<p><strong>Usage:</strong></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="636">C:\SKRIPTE\&gt; ExportVM.vbs VMName ExportDirectory</td>
</tr>
</tbody>
</table>
<p><strong>Example: </strong></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="636">C:\SKRIPTE\&gt; ExportVM.vbs TestVM X:\Backup\TestVM</td>
</tr>
</tbody>
</table>
<p><a href="http://store.manojlovic.net/vbsscripts/hyper-v/ExportVM.vbs" target="_blank">Click, download and enjoy the script.</a></p>
<p>Comments appreciated&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/09/29/hyper-v-virtual-machine-backup-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>SBS2011 RDGateway (g)UI?</title>
		<link>http://luka.manojlovic.net/2011/08/03/sbs2011-rdgateway-gui/</link>
		<comments>http://luka.manojlovic.net/2011/08/03/sbs2011-rdgateway-gui/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:29:24 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[SBS 2011]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=336</guid>
		<description><![CDATA[Many of you have asked where you can find RDGateway user interface in SBS 2011 &#8211; in fact RDGateway is working but you can not access its interface in SBS 2011. Well you can do that by reading this MS KB article&#8230; How to Manage the Remote Desktop Gateway Service in SBS 2011 http://support.microsoft.com/kb/2472211]]></description>
			<content:encoded><![CDATA[<p>Many of you have asked where you can find RDGateway user interface in SBS 2011 &#8211; in fact RDGateway is working but you can not access its interface in SBS 2011. Well you can do that by reading this MS KB article&#8230;</p>
<p><strong>How to Manage the Remote Desktop Gateway Service in SBS 2011</strong><br />
<a href="http://support.microsoft.com/kb/2472211">http://support.microsoft.com/kb/2472211</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/08/03/sbs2011-rdgateway-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My contribution to IPv6 day &#8211; Configuring IPv6 in Windows server 2008 R2 &#8211; video tutorial</title>
		<link>http://luka.manojlovic.net/2011/06/08/my-contribution-to-ipv6-day-configuring-ipv6-in-windows-server-2008-r2-video-tutorial/</link>
		<comments>http://luka.manojlovic.net/2011/06/08/my-contribution-to-ipv6-day-configuring-ipv6-in-windows-server-2008-r2-video-tutorial/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 21:44:20 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows server 2008 R2]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=322</guid>
		<description><![CDATA[My contribution to IPv6 day will be this small &#8220;lab&#8221; test where I will show you some basic IPv6 configuration that you can do with Windows server 2008 R2. Here are the videos: IPv6 day &#8211; configuring IPv6 in Windows server 2008 R2 part 1 - http://www.screencast.com/t/Ifj2lx4hTG IPv6 day &#8211; configuring IPv6 in Windows server 2008 [...]]]></description>
			<content:encoded><![CDATA[<p>My contribution to IPv6 day will be this small &#8220;lab&#8221; test where I will show you some basic IPv6 configuration that you can do with Windows server 2008 R2.<br />
Here are the videos:</p>
<p>IPv6 day &#8211; configuring IPv6 in Windows server 2008 R2 part 1 - <a href="http://www.screencast.com/t/Ifj2lx4hTG">http://www.screencast.com/t/Ifj2lx4hTG</a><br />
IPv6 day &#8211; configuring IPv6 in Windows server 2008 R2 part 2 &#8211; <a href="http://www.screencast.com/t/PSf3q5yr4BF">http://www.screencast.com/t/PSf3q5yr4BF</a></p>
<p>What do we have in our LAB?</p>
<p>1. Windows server 2008 R2 with two network cards:<br />
External &#8211; with IPv6, gateway and DNS configured<br />
Internal &#8211; with IPv6 address only</p>
<p>External IP has internal class static routed on our Cisco router in front of Windows server external card.</p>
<p>2. Windows 7 machine with single network card that is connected to the same switch as servers&#8217; internal card.</p>
<p>What will we do:</p>
<p>In the<a href="http://www.screencast.com/t/Ifj2lx4hTG" target="_blank"> fist video</a>:</p>
<p>First we will start with some basic checking of network configuration on server.<br />
Then we will run netsh (I <strong>run a command prompt with &#8220;Run as administrator&#8221;</strong>) and go to<br />
<strong>netsh / interface / ipv6</strong></p>
<p>with command</p>
<p>show route we can see ipv6 routes currently configured &#8211; we would like to <strong>enable publishing</strong> <strong>of route</strong> that I have highlighted in the video.</p>
<p><strong>set route PREFIX INTERFACE_NUMBER publish=yes</strong></p>
<p>then we will run an command to <strong>enable advertising</strong>, to <strong>disable address management</strong> (so Windows 7 will generate IPv6 without help od DHCPv6) (<strong><em>M flag</em></strong>) and we will <strong>disable other stateful configuration</strong> (<strong><em>O flag</em></strong>).</p>
<p><strong>set interface INTERFACE_NUMBER adv=enabled managed=disabled other=disabled</strong></p>
<p>Meanwhile we are checking IPv6 connectivity from our Windows 7 machine&#8230; Windows 7 is still unable to ping outside the network&#8230;</p>
<p>well we need to configure some other stuff on server now&#8230; we will <strong>enable forwarding on our two interfaces</strong> (External and Internal)</p>
<p><strong>set interface INTERFACE_NUMBER forwarding=enabled</strong></p>
<p>still no connectivity from win 7? <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>last step that we need to do on our server is to <strong>advertise default route to our clients</strong>&#8230;</p>
<p><strong>set interface INTERFACE_NUMBER advertisedefaultroute=enabled</strong></p>
<p>So our Windows 7 sudenly start to recive ICMPv6 echo replyes from some IPv6 machine outside our network WUHU! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But Windows 7 machine is not able to resolve hostnames to IPV6 addresses &#8211; this is becouse we have now global IPv6 address configured and default gateway &#8211; so we have connectivity but we are not able to resolve hostnames as we do not have any DNS servers to do that.</p>
<p>On Windows server 2008 R2 I will start the installation of two roles &#8211; first DHCP role which I wil configure later and DNS role.</p>
<p>When the roles are installed I will configure so called forwarders on my DNS server so my clients will be able to use my server as a DNS server for their queries.</p>
<p>In the <a href="http://www.screencast.com/t/PSf3q5yr4BF" target="_blank">second video</a>:</p>
<p>I will first flush IPv6 configuration on Windows 7 machine by using command<br />
<strong>ipconfig /release6<br />
ipconfig /renew6</strong> (is the opposite command to regain IPv6 configuration)</p>
<p>Secondly I will configure DHCPv6 server by starting New Scope wizard under IPv6 settings&#8230;</p>
<p>I will configure prefix &#8211; this ipv6 prefix of Internal network card</p>
<p>Skip the exceptions and activate the scope&#8230;</p>
<p>You will see that Windows 7 still did not ask DHCPv6 servers for address this is becouse managed flag is set to disabled on server so&#8230;</p>
<p>in <strong>netsh / interface / ipv6</strong> we need to <strong>activate managed flag</strong> by inserting this command:</p>
<p><strong>set interface INTERFACE_NUMBER managed=enabled</strong></p>
<p>Our Windows 7 machine can now be found in IPv6 leases on our DHCP server &#8211; but still it is unable to ping hostnames on the internet&#8230; This is becouse our DHCPv6 server is not giving DNS servers as scope options and Other stateful flag is disabled.</p>
<p>So we first need to add DNS Recursive Names Server IPv6 Address in our Scope options and then use netsh command:</p>
<p><strong>set interface INTERFACE_NUMBER other=enabled</strong></p>
<p>Yeeepppeee!!! Our Windows 7 is ready to ping hostnames on the internet &#8211; so it is able to surf the IPV6 internet&#8230;</p>
<p>When I am finishing this article is 8.6.2011 23:37 &#8211; this is my small contribution to IPv6 day so happy IPv6 day to all of you! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/06/08/my-contribution-to-ipv6-day-configuring-ipv6-in-windows-server-2008-r2-video-tutorial/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Get IP address of virtual machines running on Hyper-V &#8211; FIXED!</title>
		<link>http://luka.manojlovic.net/2011/03/16/get-ip-address-of-virtual-machines-running-on-hyper-v-fixed/</link>
		<comments>http://luka.manojlovic.net/2011/03/16/get-ip-address-of-virtual-machines-running-on-hyper-v-fixed/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 14:10:48 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows server 2008]]></category>
		<category><![CDATA[Windows server 2008 R2]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=311</guid>
		<description><![CDATA[Big thank you &#8211; goes to Max Trinidad my fellow MVP from Powershell group&#8230; Here is errorless script - much better than mine! Copa, paste and save as .ps1 - then run on your Hyper-V server and you will get IP&#8217;s of your virtual machines&#8230; Set-ExecutionPolicy -ExecutionPolicy RemoteSigned ## &#8211; Use Line below to list all your [...]]]></description>
			<content:encoded><![CDATA[<div>Big thank you &#8211; goes to <a href="http://www.maxtblog.com/" target="_blank">Max Trinidad</a> my fellow MVP from Powershell group&#8230;</div>
<div>Here is errorless script - much better than mine! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>Copa, paste and save as .ps1 - then run on your Hyper-V server and you will get IP&#8217;s of your virtual machines&#8230;</div>
<div>
<p>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned</p>
<p>## &#8211; Use Line below to list all your Virtualization Class<br />
#get-wmiobject -namespace &#8220;root/virtualization&#8221; -list</p>
<p>## &#8211; Load filter (or function first)<br />
filter Import-CimXml{</p>
<p>    $CimXml = [Xml]$_<br />
    $CimObj = New-Object -TypeName System.Object<br />
   <br />
    foreach ($CimProperty in $CimXml.SelectNodes(&#8220;/INSTANCE/PROPERTY&#8221;)){<br />
        if ($CimProperty.Name -eq &#8220;Name&#8221; -or $CimProperty.Name -eq &#8220;Data&#8221;){<br />
            $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE<br />
        }<br />
    }<br />
   <br />
    $CimObj<br />
}</p>
<p>## &#8211; Collect WMI Virtual information<br />
$getWmiVirtual = Get-WmiObject -Namespace &#8220;root\virtualization&#8221; -Query &#8220;Select * From Msvm_ComputerSystem&#8221; | sort-object elementname</p>
<p>## &#8211; Build your results from your collected objects<br />
ForEach($v in $getWmiVirtual){<br />
    $vm = $v.ElementName;<br />
    $VmObj = Get-WmiObject -Namespace &#8220;root\virtualization&#8221; -Query &#8220;Select * From Msvm_ComputerSystem Where ElementName=&#8217;$vm&#8217;&#8221;;<br />
    $KvpObj = Get-WmiObject -Namespace &#8220;root\virtualization&#8221; -Query &#8220;Associators of {$VmObj} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent&#8221;;<br />
    if($KvpObj.GuestIntrinsicExchangeItems -ne $null){<br />
        write-host $vm;<br />
        $KvpObj.GuestIntrinsicExchangeItems | Import-CimXml | where {$_.NAME -match &#8220;NetworkAddressIPv4&#8243;} | ft;<br />
    }<br />
}</p>
<p>## &#8211; End of Script</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/03/16/get-ip-address-of-virtual-machines-running-on-hyper-v-fixed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get IP address of virtual machines running on Hyper-V</title>
		<link>http://luka.manojlovic.net/2011/02/20/get-ip-address-of-virtual-machines-running-on-hyper-v/</link>
		<comments>http://luka.manojlovic.net/2011/02/20/get-ip-address-of-virtual-machines-running-on-hyper-v/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 15:33:01 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows server 2008 R2]]></category>
		<category><![CDATA[get ip hyper-v]]></category>
		<category><![CDATA[hyper-v ip]]></category>
		<category><![CDATA[powershell get ip]]></category>
		<category><![CDATA[virtual machines get ip]]></category>
		<category><![CDATA[virtual machines ip]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=298</guid>
		<description><![CDATA[I have been searching for an easy solution to somehow &#8220;scan&#8221; virtual machines and get their IP addresses becouse sometimes you need to find your virtual machines and it is more practical to somehow get a whole list of machines + IPs in stead of loging in from machne to machine and check IP&#8230; Well [...]]]></description>
			<content:encoded><![CDATA[<p>I have been searching for an easy solution to somehow &#8220;scan&#8221; virtual machines and get their IP addresses becouse sometimes you need to find your virtual machines and it is more practical to somehow get a whole list of machines + IPs in stead of loging in from machne to machine and check IP&#8230; Well it can be done using Powershell&#8230; I have encountered an <a href="http://blogs.technet.com/b/m2/archive/2010/07/29/how-to-get-the-ip-address-of-a-virtual-machine-from-hyper-v.aspx" target="_blank">article</a> but the problem is that here you need to put machine name on which you want to get data&#8230; I modified this script a bit so it looks like:</p>
<p>Get-WmiObject -Namespace root\virtualization -Query &#8220;Select * From Msvm_ComputerSystem&#8221;| sort-object elementname | ForEach-Object {$vm = $_.Elementname<br />
write-host $vm<br />
filter Import-CimXml<br />
{<br />
    $CimXml = [Xml]$_<br />
    $CimObj = New-Object -TypeName System.Object<br />
    foreach ($CimProperty in $CimXml.SelectNodes(&#8220;/INSTANCE/PROPERTY&#8221;))<br />
    {<br />
if ($CimProperty.Name -eq &#8220;Name&#8221; -or $CimProperty.Name -eq &#8220;Data&#8221;)<br />
{</p>
<p>         $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE</p>
<p>}<br />
    }<br />
    $CimObj<br />
}<br />
$VmObj = Get-WmiObject -Namespace root\virtualization -Query &#8220;Select * From Msvm_ComputerSystem Where ElementName=&#8217;$vm&#8217;&#8221;<br />
$KvpObj = Get-WmiObject -Namespace root\virtualization -Query &#8220;Associators of {$VmObj} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent&#8221;<br />
$KvpObj.GuestIntrinsicExchangeItems | Import-CimXml<br />
} | where {$_.NAME -match &#8220;NetworkAddressIPv4&#8243;} | ft<br />
read-host</p>
<p>So&#8230; Copy paste this script to an text file and save it as getip.ps1 and run it using powershell &#8211; it does need any other modules you should only run it on Windows Server where you have Hyper-V role installed&#8230; (I do not remember but I think you should enable execution policy for ps1 scripts&#8230; If you have truble executing your ps1 check <a href="http://technet.microsoft.com/en-us/library/ee176961.aspx" target="_blank">here</a>&#8230;)</p>
<p>By the way&#8230; This script has an error first virtual machine name will not fit in table (I do not know why <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) and you will get an error when this script will try to analyze your Hyper-V host machine&#8230; I do not know how to solve this two errors if someone out there solves it please provide feedback. <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/02/20/get-ip-address-of-virtual-machines-running-on-hyper-v/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SBS 2011 &#8211; Import PST in Exhange 2011</title>
		<link>http://luka.manojlovic.net/2011/01/11/sbs-2011-import-pst-in-exhange-2011/</link>
		<comments>http://luka.manojlovic.net/2011/01/11/sbs-2011-import-pst-in-exhange-2011/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 22:56:02 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[MS Exchange server 2010]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SBS 2011]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=292</guid>
		<description><![CDATA[To enable import and export of mailboxes on SBS 2011 you need to: Go to Windows SBS console and create a security group &#8211; that shuld be universal (by default) for example: Mailbox management Add administrator / admin account to the group Then you need to enable &#8220;import / export&#8221; feature on members of this [...]]]></description>
			<content:encoded><![CDATA[<p>To enable import and export of mailboxes on SBS 2011 you need to:</p>
<p>Go to Windows SBS console and create a <strong>security group</strong> &#8211; that shuld be universal (by default) for example: Mailbox management</p>
<p><strong>Add administrator / admin</strong> account to the <strong>group</strong></p>
<p>Then you need to <strong>enable &#8220;import / export&#8221; feature</strong> on members of this<strong> group</strong>. To do that you need to open <strong>Exchange Management Shell</strong> (Powershell with Exchange 2010 modules) as administrator and write:</p>
<p><strong>New-ManagementRoleAssignment -Name &#8220;Import Export Mailbox Admins&#8221; -SecurityGroup &#8220;Mailbox management&#8221; -Role &#8220;Mailbox Import Export&#8221;</strong></p>
<p>After that you can folow my article to <a href="http://luka.manojlovic.net/2010/12/22/happy-migration-exchange-2003-to-exchange-2010-sp1/" target="_blank">import or export mailboxes</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2011/01/11/sbs-2011-import-pst-in-exhange-2011/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Sinergija 2010 q&amp;a 2 &#8211; sbs 2008 / sbs 7 &#8211; tips and tricks</title>
		<link>http://luka.manojlovic.net/2010/11/18/sinergija-2010-qa-2-sbs-2008-sbs-7-tips-and-tricks/</link>
		<comments>http://luka.manojlovic.net/2010/11/18/sinergija-2010-qa-2-sbs-2008-sbs-7-tips-and-tricks/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 10:47:09 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[SBS 2008]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=266</guid>
		<description><![CDATA[Here are answers to the questions that we were discusing on my session @ Sinergija 2010 Wsus and port question:http://www.wsus.info/index.php?showtopic=10906http://www.wsuswiki.com/WSUSServerFAQ Console crash reasons?http://blogs.technet.com/b/sbs/archive/2009/03/12/sbs-console-crashes-when-duplicate-entries-from-av-products-are-written-into-security-center.aspx Migration? Check this out:http://www.sbsmigration.com/ Backup solutions for SBS 2008 &#8211; we had a presentation on Slovenian Small Business Specialists Community SI try this one&#8230;http://www.backupassist.com/index.html]]></description>
			<content:encoded><![CDATA[<p>Here are answers to the questions that we were discusing on my session @ <a href="http://www.mssinergija.net/sr/sinergija10/vesti/Pages/default.aspx" target="_blank">Sinergija 2010</a></p>
<p>Wsus and port question:<br /><a href="http://www.wsus.info/index.php?showtopic=10906">http://www.wsus.info/index.php?showtopic=10906</a><br /><a href="http://www.wsuswiki.com/WSUSServerFAQ">http://www.wsuswiki.com/WSUSServerFAQ</a></p>
<p>Console crash reasons?<br /><a href="http://blogs.technet.com/b/sbs/archive/2009/03/12/sbs-console-crashes-when-duplicate-entries-from-av-products-are-written-into-security-center.aspx">http://blogs.technet.com/b/sbs/archive/2009/03/12/sbs-console-crashes-when-duplicate-entries-from-av-products-are-written-into-security-center.aspx</a></p>
<p>Migration? Check this out:<br /><a href="http://www.sbsmigration.com/">http://www.sbsmigration.com/</a></p>
<p>Backup solutions for SBS 2008 &#8211; we had a presentation on Slovenian Small Business Specialists Community SI try this one&#8230;<br /><a href="http://www.backupassist.com/index.html">http://www.backupassist.com/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2010/11/18/sinergija-2010-qa-2-sbs-2008-sbs-7-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SBS 2008 / Exchange 2007 remote.company.com and TLS&#8230;</title>
		<link>http://luka.manojlovic.net/2010/09/05/sbs-2008-exchange-2007-remote-company-com-and-tls/</link>
		<comments>http://luka.manojlovic.net/2010/09/05/sbs-2008-exchange-2007-remote-company-com-and-tls/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 12:18:02 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[MS Exchange server 2007]]></category>
		<category><![CDATA[MS Scripting]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SBS 2008]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=250</guid>
		<description><![CDATA[Everyone that has ever installed SBS 2008 has encountered the wizard that create certificate and remote workplace &#8211; by default called remote.company.com (yes, you can chose other prefixes but let say that I like remote becouse it is easy to remember for my users&#8230;).SBS wizards generates a certificate for this hostname and uses it for [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone that has ever installed SBS 2008 has encountered the wizard that create certificate and remote workplace &#8211; by default called <strong>remote.company.com</strong> (yes, you can chose other prefixes but let say that I like remote becouse it is easy to remember for my users&#8230;).<br />SBS wizards generates a certificate for this hostname and uses it for all services (Outlook web access, Active Sync stuff and also for SMTP receive and send connectors&#8230;).<br />The problem is when you want to rename your SMTP receive and send connectors to match the records in DNS. It is a best practice to have same SMTP greetings as the records in DNS so for example if you have a domain <strong>company.com</strong> and you have an host record <strong>A</strong> called <strong>mail.company.com</strong> and <strong>MX</strong> record pointed to <strong>mail.company.com</strong> it is correct and I suggest you to folow this rule to have <strong>SMTP greeting</strong> or fqdn for SMTP connectors to match<strong> mail.company.com.</strong></p>
<p>You can rename your connectors however you want by using Exchange management console but you will lose functionality of <strong>TLS </strong>in SMTP traffic &#8211; becouse the certificate <strong>remote.company.com</strong> does not match fqdn or smtp greeting of a connector that advertise <strong>mail.company.com. </strong>You will also get an error in Event log saying:</p>
<p>Microsoft Exchange could not find a certificate that contains the domain name mail.company.com in the personal store on the local computer&#8230;</p>
<p> Ok, what can we do now?</p>
<p>Well turn on Exchange Management Shell &#8211; that is Powershell with modules for Exchange 2007 management &#8211; you can find it in star menu&#8230; And first of all we want to see current Exchange certificates that are enabled for Exchange services by using cmdlet:</p>
<p>[PS] C:\Windows\System32&gt;<strong>Get-ExchangeCertificate </strong></p>
<p>and you wil receive something like this:</p>
<div>Thumbprint                                Services   Subject<br />&#8212;&#8212;&#8212;-                                &#8212;&#8212;&#8211;   &#8212;&#8212;-<br />45EEEB44DF4BFE2EB1B7A7592EA1DF5BF93F44B4  IP.WS      CN=<strong>remote.company.com<br /></strong>42F146B12BEF918A6A8FC730F5AA87AC4ACB1CEB  IP..S      CN=<strong>remote.company.com</strong><br />817F1311CB72FB70F962EC0FAD2D8FA857F114A4  &#8230;.S      CN=sbssrv01.company.local<br />4BAAC7906689AFF0129767CF492AAE058B5DF494  &#8230;.S      CN=Sites<br />8F1D9C5FEB6EF0C39F25175AFBDEA54FE9668EF9  &#8230;..      CN=xxxxxx-xxxxxxxx-CA<br />8E4F33523325500F38ECF41FCDFBBE684AFC6145  &#8230;..      CN=WMSvc-WIN-K7KGUV5MQ40</div>
<div> </div>
<div>Now we should create a new certificate that we will use for SMTP connectors by using cmdlet:</div>
<div> </div>
<div><strong>New-ExchangeCertificate -domainname mail.company.com -PrivateKeyExportable:1</strong></div>
<div> </div>
<div><strong>Warning!</strong> When you are asked if you want to overwrite certificates chose <strong>No!</strong></div>
<div><strong> </strong> </div>
<div>
<div>Confirm<br />Overwrite existing default SMTP certificate,<br />&#8217;45EEEB44DF4BFE2EB1B7A7592EA1DF5BF93F44B4&#8242; (expires 14.1.2012 22:37:04), with<br />certificate &#8217;59D62E7850EE4093AFF1EC73E2623D52058C2B35&#8242; (expires 27.1.2015<br />17:09:02)?<br />[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help<br />(default is &#8220;Y&#8221;): <strong>N</strong></div>
<div> </div>
<div>so we get output:</div>
<div>Thumbprint                                Services   Subject<br />&#8212;&#8212;&#8212;-                                &#8212;&#8212;&#8211;   &#8212;&#8212;-<br />59D62E7850EE4093AFF1EC73E2623D52058C2B35  &#8230;..      CN=<strong>mail.company.com</strong></div>
<div> </div>
<div>Great!  If we want to be shure that everything is working correctly and that Exchange SMTP service is using our new certificate we can use cmdlet:</div>
</div>
<div>
<p>[PS] C:\Windows\System32&gt;<strong>Get-ExchangeCertificate </strong></p>
<p>[PS] C:\Windows\System32&gt;</p>
<div>Thumbprint                                Services   Subject<br />&#8212;&#8212;&#8212;-                                &#8212;&#8212;&#8211;   &#8212;&#8212;-<br />59D62E7850EE4093AFF1EC73E2623D52058C2B35  &#8230;.<strong>S</strong>      CN=<strong>mail.company.com</strong><br />45EEEB44DF4BFE2EB1B7A7592EA1DF5BF93F44B4  IP.W<strong>S</strong>      CN=<strong>remote.company.com</strong></div>
<div>42F146B12BEF918A6A8FC730F5AA87AC4ACB1CEB  IP..<strong>S</strong>      CN=<strong>remote.company.com</strong></div>
<div>817F1311CB72FB70F962EC0FAD2D8FA857F114A4  &#8230;.S      CN=sbssrv01.company.local<br />4BAAC7906689AFF0129767CF492AAE058B5DF494  &#8230;.S      CN=Sites<br />8F1D9C5FEB6EF0C39F25175AFBDEA54FE9668EF9  &#8230;..      CN=xxxxxxxxxxx-xxxxxxxxxxxx01-CA<br />8E4F33523325500F38ECF41FCDFBBE684AFC6145  &#8230;..      CN=WMSvc-WIN-K7KGUV5MQ40</div>
<div>We can now see that SMTP connectors are using all certificates (S defnies SMTP service).</div>
<div>Ok&#8230; How can you test that TLS works?</div>
<div>You can try it by using telnet client and connect to your server:</div>
<div><strong>telnet mail.company.com 25</strong></div>
<div>
<div> </div>
<div>Exchange should respond something like:</div>
<div>220 <strong>mail.company.com</strong> Microsoft ESMTP MAIL Service ready at Wed, 27 Jan 2010 17:<br />12:09 +0100</div>
<div> </div>
<div>then you can write:</div>
<div><strong>helo test.blablabla.com</strong></div>
<div> </div>
<div>220 <strong>mail.company.com</strong> Microsoft ESMTP MAIL Service ready at Wed, 27 Jan 2010 17:<br />13:07 +0100<br />helo test.blablabla.si<br />250 <strong>mail.xxxxxxxxxxxxxxxx.si</strong> Hello [xxx.xxx.xxxx.xxx]</div>
<div>after that enter command:</div>
<div><strong>starttls</strong></div>
<p><strong> </strong></p>
</div>
<div>server should respond:
<div>220 2.0.0 SMTP server ready</div>
<div> </div>
<div>Server ready? Super! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div> </div>
<div>PS.</div>
<div>If you did miss something you will receive error from server saying:</div>
<div> </div>
<div>starttls<br />500 5.3.3 Unrecognized command</div>
<div> </div>
<div>If you get that? Read this tutorial again <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>PS. PS. You do not need to restart anything when you apply this commands&#8230; No need for restarting Exchange services&#8230;</div>
<div>Special thanks to <a href="http://blog.mreza.info/" target="_blank">Saso Erdeljanov</a> for some hints about this issue&#8230;</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2010/09/05/sbs-2008-exchange-2007-remote-company-com-and-tls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 / 2010 &#8211; remove headers</title>
		<link>http://luka.manojlovic.net/2010/05/24/exchange-2007-2010-remove-headers/</link>
		<comments>http://luka.manojlovic.net/2010/05/24/exchange-2007-2010-remove-headers/#comments</comments>
		<pubDate>Mon, 24 May 2010 21:57:47 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[MS Exchange server 2007]]></category>
		<category><![CDATA[SBS 2008]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[remove headers]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=232</guid>
		<description><![CDATA[If you are using Windows server 2008 SBS or Exchange 2007 or Exchange 2010 you send with your e-mail also mail headers that (I think) you would not like to &#8220;share&#8221; with external world: Received: from mail.server.si (xxx.xxx.xxx.xxx) by mail.server2.si (172.31.200.2) with Microsoft SMTP Server (TLS) id 8.2.247.2; Wed, 19 May 2010 13:08:47 +0200Received: from SRVEXCH01.domain.local ([10.11.12.2]) [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using Windows server 2008 SBS or Exchange 2007 or Exchange 2010 you send with your e-mail also mail headers that (I think) you would not like to &#8220;share&#8221; with external world:</p>
<p>Received: from mail.server.si (xxx.xxx.xxx.xxx) by mail.server2.si<br /> (172.31.200.2) with Microsoft SMTP Server (TLS) id 8.2.247.2; Wed, 19 May<br /> 2010 13:08:47 +0200<br /><strong>Received: from SRVEXCH01.domain.local ([10.11.12.2]) by SRVEXCH01.domain.local<br /> ([10.11.12.2]) with mapi; Wed, 19 May 2010 13:08:02 +0200<br /></strong>From: xxxxx xxxxx xxxxx@xxxxx<br />To: =?iso-8859-2?Q?xxxxx_xxxxx=E6_=28xxxxx=xxxxx=2Exxxxx=29?=<br /> &lt;xxxxx@xxxxx&gt;<br />Return-Receipt-To: xxxxx@xxxxx<br />Date: Wed, 19 May 2010 13:08:00 +0200<br />Subject: xxxxx<br />Thread-Topic: xxxxx<br />Thread-Index: Acr3Q4r6dSBNnU37R9ypBLYy8PMzcA==<br />Message-ID: &lt;13204AAD07BCDD4EB69C3367FF1783A9124C065BB2@SRVEXCH01.domain.local&gt;<br />Accept-Language: sl-SI<br />Content-Language: en-US<br />X-MS-Has-Attach:<br />X-MS-TNEF-Correlator:<br />acceptlanguage: sl-SI<br />Content-Type: multipart/alternative;<br /> boundary=&#8221;_000_13204AAD07BCDD4EB69C3367FF1783A9124C065BB2_&#8221;<br />MIME-Version: 1.0<br />Return-Path: xxxxx@xxxxx<br />X-MS-Exchange-Organization-PRD: xxxxx.si<br />X-MS-Exchange-Organization-SenderIdResult: Pass<br />Received-SPF: Pass (xxxxx.xxxxx.xxxxx: domain of xxxxx@xxxxx<br /> designates xxx.xxx.xxx.xxx as permitted sender) receiver=xxxxx.xxxxx.local;<br /> client-ip=xxx.xxx.xxx.xxx; helo=mail.xxxxx.si;<br />X-MS-Exchange-Organization-SCL: 1<br />X-MS-Exchange-Organization-PCL: 2<br />X-MS-Exchange-Organization-Antispam-Report: DV:3.3.8917.498;SV:3.3.8919.449;SID:SenderIDStatus Pass;OrigIP:xxx.xxx.xxx.xxx</p>
<p>If you want to remove this stuff we need to create a Hub Transport Rule:<br />Open Microsoft Exchange Console<br />Navigate to:<br />Microsoft Exchange \ Organization Configuration \ Hub Transport \ Transport Rules</p>
<p>Right Click and select <strong>New Transport Rule</strong> and name it &#8220;<strong>Remove headers</strong>&#8221; click <strong>Next</strong>,</p>
<p>chose <strong>From users inside or outside the organization</strong> and select<strong> Inside </strong>click <strong>Next,</strong>chose <strong>Remove header </strong>and as message header just write: <strong>Received </strong>twice click Next&#8230;</p>
<p> </p>
<p>You are done&#8230; Headers will not be sent any more to users outside the organization&#8230;</p>
<p>Bye,<br />Luka (under influence of wonderful <a href="http://www.ntk.si" target="_blank">NT Konferenca 2010</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2010/05/24/exchange-2007-2010-remove-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2008 R2 Foundation on HP ML 110 G6 &#8211; SBSBIOSLock</title>
		<link>http://luka.manojlovic.net/2010/05/21/windows-server-2008-r2-foundation-on-hp-ml-110-g6-sbsbioslock/</link>
		<comments>http://luka.manojlovic.net/2010/05/21/windows-server-2008-r2-foundation-on-hp-ml-110-g6-sbsbioslock/#comments</comments>
		<pubDate>Fri, 21 May 2010 16:59:15 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Windows server 2008 R2]]></category>
		<category><![CDATA[R2 Foundation]]></category>
		<category><![CDATA[SBSBIOSLock]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=225</guid>
		<description><![CDATA[NT Konferenca 2010 is almost here&#8230; While preparing my demos for my sessions I needed to install Windows server 2008 R2 Foundation on an HP ML 110 G6 which was given to me for demos&#8230;After unpacking and starting the server I inserted DVD with installation inside&#8230; I get this nice screen telling me Validantih HP [...]]]></description>
			<content:encoded><![CDATA[<p>NT Konferenca 2010 is almost here&#8230;</p>
<p>While preparing my demos for my sessions I needed to install Windows server 2008 R2 Foundation on an HP ML 110 G6 which was given to me for demos&#8230;<br />After unpacking and starting the server I inserted DVD with installation inside&#8230; I get this nice screen telling me Validantih HP Platform Please Wait &#8230; <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After a minute I got this error &#8211; a popup windows came up with folowing message:</p>
<p><strong>SBSBIOSLock</strong></p>
<p><strong>could not find the media</strong></p>
<p>If you want to continue your installation you need to get to HP BIOS and change the value on SATA emulation from RAID to AHCI. It worked for me&#8230; Well leave me alone I need to finish my installation. <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2010/05/21/windows-server-2008-r2-foundation-on-hp-ml-110-g6-sbsbioslock/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

