<?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>Nixadmins.net &#187; Windows</title>
	<atom:link href="http://www.nixadmins.net/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Thu, 26 Jan 2012 12:18:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Install Software Updates hang on Downloading update</title>
		<link>http://www.nixadmins.net/2011/12/14/install-software-updates-hang-on-downloading-update/</link>
		<comments>http://www.nixadmins.net/2011/12/14/install-software-updates-hang-on-downloading-update/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 14:56:35 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Sofware Update]]></category>
		<category><![CDATA[SUP]]></category>
		<category><![CDATA[WSUS]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/12/14/install-software-updates-hang-on-downloading-update/</guid>
		<description><![CDATA[Today I ran into an issue where the Build And Capture hung on Downloading update 1. Some googling lead to a known issue in ConfigMGR 2007 SP2 and there is a patch to solve the issue. http://support.microsoft.com/kb/2509007 &#160; Once I installed the patch Software updates were downloaded and installed to the capture computer. This issue [...]]]></description>
			<content:encoded><![CDATA[<p>Today I ran into an issue where the <em>Build And Capture </em>hung on Downloading update 1. Some googling lead to a known issue in ConfigMGR 2007 SP2 and there is a patch to solve the issue. </p>
<p><a title="http://support.microsoft.com/kb/2509007" href="http://support.microsoft.com/kb/2509007">http://support.microsoft.com/kb/2509007</a></p>
<p>&#160;</p>
<p>Once I installed the patch Software updates were downloaded and installed to the capture computer. This issue seems to affect only Windows 7 captures and with software update packages containing more than 80 patches.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/12/14/install-software-updates-hang-on-downloading-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCCM 2007 management point fails to install</title>
		<link>http://www.nixadmins.net/2011/07/27/sccm-2007-management-point-fails-to-install/</link>
		<comments>http://www.nixadmins.net/2011/07/27/sccm-2007-management-point-fails-to-install/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 20:06:32 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Systems Center]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/07/27/sccm-2007-management-point-fails-to-install/</guid>
		<description><![CDATA[First time I ran in to this problem was in my new virtual test environment. The management point failed to install and MPSetup.log was reporting the WebDav settings were not correct. Looking at them in IIS Manager everything looked just like it should, everything was setup according to the prerequisite document on Technet. I had [...]]]></description>
			<content:encoded><![CDATA[<p>First time I ran in to this problem was in my new virtual test environment. The management point failed to install and MPSetup.log was reporting the WebDav settings were not correct. Looking at them in IIS Manager everything looked just like it should, everything was setup according to the prerequisite document on Technet.</p>
<p>I had to find the problem somewhere else, and I did. Apparently the settings in the GUI didn’t get written to Webdav_schema.xml, and someone was kind enough to document how to change them, so here is the link for future reference.</p>
<p><a title="http://scug.dk/blogs/configurationmanager/archive/2009/12/30/webdav-fails-on-windows-server-2008-r2.aspx" href="http://scug.dk/blogs/configurationmanager/archive/2009/12/30/webdav-fails-on-windows-server-2008-r2.aspx">http://scug.dk/blogs/configurationmanager/archive/2009/12/30/webdav-fails-on-windows-server-2008-r2.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/07/27/sccm-2007-management-point-fails-to-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Windows Server DHCP for SCCM2007</title>
		<link>http://www.nixadmins.net/2011/07/27/setting-up-windows-server-dhcp-for-sccm2007/</link>
		<comments>http://www.nixadmins.net/2011/07/27/setting-up-windows-server-dhcp-for-sccm2007/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 15:17:58 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Systems Center]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Deployment]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[WDS]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/07/27/setting-up-windows-server-dhcp-for-sccm2007/</guid>
		<description><![CDATA[Every now and then I get the question about setting up your DHCP server for SCCM when the DHCP server doesn’t reside on the same host as the SCCM/WDS server. So to get this working you need to set option 66 and option 67 in your DHCP server. The options should be set to as [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then I get the question about setting up your DHCP server for SCCM when the DHCP server <strong><em>doesn’t </em></strong>reside on the same host as the SCCM/WDS server.</p>
<p>So to get this working you need to set option 66 and option 67 in your DHCP server.</p>
<p>The options should be set to as following:</p>
<p>Option 66 (boot server host name): IP of your server, ex 10.0.0.1</p>
<p>Option 67 (bootfile name): <strong>SMSBoot\boot.sdi</strong></p>
<p>There are many guides out there on this topic, but most don’t need or want to understand the inner workings of DHCP, they just want the filenames. So there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/07/27/setting-up-windows-server-dhcp-for-sccm2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Techdays 2011&#8211;Finland</title>
		<link>http://www.nixadmins.net/2011/04/03/microsoft-techdays-2011finland/</link>
		<comments>http://www.nixadmins.net/2011/04/03/microsoft-techdays-2011finland/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 18:58:47 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Intune]]></category>
		<category><![CDATA[WIOSKI]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/04/03/microsoft-techdays-2011finland/</guid>
		<description><![CDATA[I attended Techdays here in Finland 31 March and 1 April. This was a great event so I’m going to post a big thank you here to the people behind this event. The only thing I had trouble with was prioritizing which sessions to attend. There were just so many great speakers. Things that really [...]]]></description>
			<content:encoded><![CDATA[<p>I attended Techdays here in Finland 31 March and 1 April. This was a great event so I’m going to post a <strong>big</strong> thank you here to the people behind this event. The only thing I had trouble with was prioritizing which sessions to attend. There were just so many great speakers.</p>
<p>Things that really stuck were the session on Microsoft Intune by Salcom Group and the 7 ways to break into Windows 7 by Sami Laiho from Sovelto and Petri Paavola from Aalto Yliopisto and a really special session by Sami Laiho talking about <a href="http://www.wioski.com/" target="_blank">WIOSKI</a>.</p>
<h3>Microsoft Intune</h3>
<p>This is going to be big for any small companies. Remember I said this. Not because I’m really into cloud computing yet but the fact that any small-midsize company can easily get a management system for their computers.</p>
<p>Reporting is a big part of todays security, so getting reports on how many of your computers are patched is actually a big deal.</p>
<p>But the thing that I liked most about Intune was the fact that the license <strong><em>includes a copy of Windows 7 Enterprise</em></strong>, and when a new Windows version comes along you have the privilege to upgrade. This will effectively give small size businesses a chance to get <strong>BitLocker</strong> in use. And from a security perspective that’s a big deal.</p>
<p>One of the really great things is that since the whole system operates from the cloud the systems administrator can work from anywhere.</p>
<p>The remote assist feature is also a part of Intune but my personal opinion is that you’d be better of with something like <a href="http://www.teamviewer.com" target="_blank">TeamViewer</a>.</p>
<p>Intune also includes Microsoft’s Forefront Endpoint protection, so technically you could ditch your current antivirus. I haven’t tried FEP but many who have says it can actually protect your computer from the malware and viruses you throw at it.</p>
<p>The pricing also looks quite affordable, at 11€ / workstation / month it’s really not that bad. You get a great system <strong>and</strong> you can ditch some costs, like Antivirus licenses and you’ll cut the management costs since you don’t have to keep your own servers. And that is a cost saver for SMB’s, since they are rarely able to keep them up to date and secured properly anyway.</p>
<p>You can find information about Intune here <a title="http://www.microsoft.com/windows/windowsintune/pc-management.aspx" href="http://www.microsoft.com/windows/windowsintune/pc-management.aspx">http://www.microsoft.com/windows/windowsintune/pc-management.aspx</a></p>
<h3>7 ways to break into Windows 7</h3>
<p>This was a really interesting seminar, thanks to Sami Laiho and Petri Paavola for this one, these guys really know how to take an audience.</p>
<p>The ways they break in isn’t in any way new, most of us know that if the systems physical security is compromised in any way, you can’t trust the system anymore.</p>
<p>The interesting part is that with simple disk encryption, like Bitlocker, most of the hacks can be stopped.</p>
<p>The hacks they did were simply to replace the <strong><em>Sticky keys (sethc.exe), Displayswitch.exe </em></strong>to cmd.exe. This way when Windows boots just press Windows+P or 5xShift to get a command prompt running with system privileges. After that just use net.exe to add your administrative user and the computer is yours.</p>
<p>This could, as I said be prevented with BitLocker because you can’t get to the encrypted drive and modify it from WinPE or a Linux LiveCD.</p>
<p>Even if BitLocker is enabled there are ways in if you don’t use pre-boot PIN codes. And since central management for the PIN code isn’t available yet many haven’t&#160; applied it. This hack was using a Linux distribution to access the computer by writing directly to the memory, using the FireWire port. The scary thing is that this isn’t something that’s only available on Windows based PC’s. Any computer that has a Firewire port activated can be hacked using the same tools.</p>
<p>In Windows Administrators can use Group policies to force Firewire drivers never to install but I’m not sure how to get this done in any other environment.</p>
<p>And if you think you’re safe because you don’t have a Firewire port, think again. There are PCMCIA cards supplying this port and any modern operating system will without a question install the drivers unless it’s denied to do so.</p>
<h3>WIOSKI</h3>
<p>This is basically a really smart way to run a KIOSK computer. What Sami has done is put together a bunch of scripts using only standard Microsoft techniques. It works by using two VHD’s (Virtual Hard drives). Using one differential and one master image.</p>
<p>Basically you first operate the master one, install anything you need and after that reboot the computer to the differential VHD. The next time the computer is booted anything on the differential drive get’s trashed.</p>
<p>So every reboot you have a fresh start and the computer is just as it was when the administration installed and approved it.</p>
<p>The installation is dead simple and the performance isn’t bad in any way since no virtualization is done.</p>
<p>The only downside is that the only Windows versions able to boot from a VHD file is Windows 7 Enterprise OR Ultimate. So you need a license for one of them.</p>
<p>Anyway, you can find the Wioski medias and a instruction video from the site <a href="http://www.wioski.com">http://www.wioski.com</a>.</p>
<p>&#160;</p>
<p>Thanks again for a great couple of days to the organizers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/04/03/microsoft-techdays-2011finland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Signing Tomcat CSR with Microsoft ADCS</title>
		<link>http://www.nixadmins.net/2011/03/08/signing-tomcat-csr-with-microsoft-adcs/</link>
		<comments>http://www.nixadmins.net/2011/03/08/signing-tomcat-csr-with-microsoft-adcs/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 13:47:16 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ADCS]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[PKI]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/03/08/signing-tomcat-csr-with-microsoft-adcs/</guid>
		<description><![CDATA[Today I got a request to sign a Tomcat server with our Microsoft PKI. After some trial and error I could not get the server to sign the certificate with the standard templates, Web server or Code Signing. After some searching on the web I found a solution, use the Subordinate Certification Authority template. This [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got a request to sign a Tomcat server with our Microsoft PKI. After some trial and error I could not get the server to sign the certificate with the standard templates, Web server or Code Signing.</p>
<p>After some searching on the web I found a solution, use the <em><strong>Subordinate Certification Authority</strong></em> template. This is not ideal but it works. So anyone out there getting errors like</p>
<p><strong>The certificate is not valid for the requested usage. 0x800b0110</strong></p>
<p>Can use the Subordinate CA to sign the certificate in question.</p>
<p>If you have a better solution please post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/03/08/signing-tomcat-csr-with-microsoft-adcs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ConfigMGR 2007 clients</title>
		<link>http://www.nixadmins.net/2011/01/24/install-configmgr-2007-clients/</link>
		<comments>http://www.nixadmins.net/2011/01/24/install-configmgr-2007-clients/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 06:08:33 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2011/01/24/install-configmgr-2007-clients/</guid>
		<description><![CDATA[Previously I used the SUP to deploy clients in our SCCM environment. This was a really easy way to deploy but sadly I had issues with patch-management. The group policy setting for WSUS kept interfering with ConfigMGR client so I had to look for a another way to deploy the client. After some discussion on [...]]]></description>
			<content:encoded><![CDATA[<p>Previously I used the SUP to deploy clients in our SCCM environment. This was a really easy way to deploy but sadly I had issues with patch-management. The group policy setting for WSUS kept interfering with ConfigMGR client so I had to look for a another way to deploy the client. After some discussion on Microsoft’s Technet Forums <a href="http://blog.coretech.dk/author/kea/" target="_blank">Kent Agerlund</a> pointed me to a script written by <a href="http://blogs.catapultsystems.com/jsandys/archive/2010/12/30/updated-configmgr-startup-script.aspx" target="_blank">Jason Sandys</a>. This script really does the job and it’s well documented.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2011/01/24/install-configmgr-2007-clients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating from IMAP to Exchange 2010</title>
		<link>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/</link>
		<comments>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 12:49:00 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Exchange Server 2010]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/</guid>
		<description><![CDATA[I know this is a challenge for many professionals out there. And while there are many third party applications to migrate users from old systems to Exchange 2010 they don’t come cheap. There is also the fact that most old Linux based email systems use databases for user/password storage so you will need to get [...]]]></description>
			<content:encoded><![CDATA[<p>I know this is a challenge for many professionals out there. And while there are many third party applications to migrate users from old systems to Exchange 2010 they don’t come cheap. There is also the fact that most old Linux based email systems use databases for user/password storage so you will need to get into them to properly move accounts. Due to this we need to be able to customize the process.</p>
<p>This is a highly customized process for the migration. I suggest you test <strong>everything</strong> here in your test lab <strong>before</strong> you even attempt to run it in production. All advice is provided as is and if something goes wrong you are on your own.</p>
<p><em>Image 1</em> displays a simplified setup of an Exchange system where we have two client access servers in a simple cluster and three backend mailbox servers.</p>
<p>&#160;</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/12/image.png"><img style="background-image: none; border-right-width: 0px; margin: 10px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Image 1" border="0" alt="Image 1" src="http://www.nixadmins.net/wp-content/uploads/2010/12/image_thumb.png" width="354" height="394" /></a></p>
<h3>What this article does not discuss</h3>
<p>I will not go into any email routing so you need to make sure the email is routed correctly to your backend servers. <strong><font color="#ff0000">This article will only take a look at activating the user mailbox in Exchange 2010 and synchronizing the IMAP account from the Linux server to the Exchange server.</font></strong></p>
<h3>Software and information</h3>
<p>To successfully follow this article you need to know how to reset the IMAP users passwords and you need to know their usernames. That’s not something I will go into here, we used scripts to reset the passwords but you might want to do it another way.</p>
<p>You also need to install <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> on the Linux server, it doesn’t necessarily have to be the one hosting the mailboxes, it could be another server. We used a third server for this because it was easier to install <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> on a fresh <a href="http://www.centos.org/" target="_blank">CentOS 5</a> server than getting it set up on the old Linux server. The <a href="http://www.linux-france.org/prj/imapsync/" target="_blank">IMAPSync</a> .rpm is available in the rpmforge repository. More information on that here <a title="http://dag.wieers.com/rpm/" href="http://dag.wieers.com/rpm/">http://dag.wieers.com/rpm/</a>.</p>
<h3>Simple walkthrough of the process</h3>
<p>The HUB servers have a common FQDN, like exchange.domain.com. The HUB servers need to have the IMAP service started since this is the interface for the transfer. Normally this service is stopped in Exchange servers.</p>
<p>Our Linux server is running IMAP so we can connect to it without making any changes to it.</p>
<p>The flowchart in <em>image 2</em> shows us the process</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/12/image1.png"><img style="background-image: none; border-right-width: 0px; margin: 10px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Image 2" border="0" alt="Image 2" src="http://www.nixadmins.net/wp-content/uploads/2010/12/image_thumb1.png" width="296" height="345" /></a></p>
<p>As I said above, <strong><font color="#ff0000">you need to take care of the email routing before you activate mailboxes.</font></strong> Once the mailbox is activated all internal email from other Exchange users will go to the Exchange mailbox.</p>
<p>So to prepare we need to file the users we want to move in tables to be exported to comma separated values. We used Excel but you may use whatever you want. The file was set up like this</p>
<table border="0" cellspacing="0" cellpadding="2" width="536">
<tbody>
<tr>
<td valign="top" width="96"><strong>uname</strong></td>
<td valign="top" width="170"><strong>alias</strong></td>
<td valign="top" width="268"><strong>smtp</strong></td>
</tr>
<tr>
<td valign="top" width="96">user1</td>
<td valign="top" width="170">Fname.Sname</td>
<td valign="top" width="268">fname.sname@domain.com</td>
</tr>
<tr>
<td valign="top" width="96">user2</td>
<td valign="top" width="170">Fname2.Sname2</td>
<td valign="top" width="268">fname2.sname2@domain.com</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<p>This table was collected from local support engineers so they were able to define the users they wanted us to move. This article assumes the username for the Linux server is the whole SMTP address. Yours might differ and you would have to adapt this to any of my simple scripts.</p>
<h3>The files needed for the servers</h3>
<p>For the Exchange Server we need all of the columns so export everything to a CSV file. After export the file should look something like this</p>
<p class="terminal">uname,alias,smtp    <br />user1,Fname.Sname,fname.sname@domain.com     <br />user2,Fname2.Sname2,fname2.sname2@domain.com     </p>
<p>Assuming your alias combined with the domain.com is the username on the Linux server you would only need to export the Alias column to a file which should look something like this</p>
<p class="terminal">Fname.Sname    <br />Fname2.Sname2     </p>
<p>When you have the two files, for simplicity let’s call them Exchange.csv and Linux.txt, copy them to the servers. The Linux.txt file should locate on the server you want to run IMAPSync from.</p>
<h3>Activating mailboxes and setting the permissions</h3>
<p>To move email we are going to use <em>one </em>special purpose account created only to move other users email. So open up your <strong>Active Directory Users and Computers</strong> and create a simple domain user account. During this example I’ll call this user <strong><em>Exch_mig_user</em></strong>. You can call it anything, or if you really want to, you can use an existing account. </p>
<p>Once you have an suitable account to set the Full access permissions for we can go ahead and create some mailboxes. So log into your mailbox server and fire up Exchange management shell.</p>
<p>The Exchange.csv file should already be located on the server, let’s say it’s in C:\.</p>
<p>To activate the mailboxes we run the following PowerShell command</p>
<p class="ps">PS C:\&gt;Import-CSV C:\Exchange.csv | foreach-object{Enable-Mailbox –Identity $_.uname –Alias $_.alias –PrimarySMTPAddress $_.smtp}    </p>
<p>This imports our CSV file and uses the values from the file to fill in the blanks in our <strong>Enable-Mailbox</strong> command. <font color="#c0504d"><strong>If you want to see what this command would do before using it just ad –WhatIF after $_.smtp.</strong></font><font color="#000000"> –WhatIf can be used with any of the PowerShell commands here.</font></p>
<p>After this we need to set the permissions on the mailboxes so the Exch_mig_user account will be able to access the mailbox.</p>
<p>Once again using PowerShell we run</p>
<p class="ps">PS C:\&gt;Import-CSV Exchange.csv |foreach-object{Add-MailBoxPermission $_.Alias –user Exch_mig_user –AccessRights FullAccess} </p>
<p>Again, using –WhatIf will show you what would be done.</p>
<p>After running this we will be able to access any of the user accounts defined in the Exchange.csv file using the <strong>Exch_mig_user </strong>account. This is done so we don’t have to reset any user passwords in Active directory.</p>
<p>After you’re done move over to the Linux server but do not delete the Exchange.csv file, we will use it again later.</p>
<h3>Reset Linux passwords</h3>
<p>Looking at the flowchart in Image 2 this is where we reset the passwords for the Linux email users so they wont be able to log into the old system anymore and so we can access their email data. As I said before every system here can be different so I’m going to leave this part to you. You can script it, do it manually or have someone else do it. Just set the password to something useful if the server will continue to be active so it wont get hacked.</p>
<h3>Using IMAPSync</h3>
<p>Now that we have our Exchange accounts active and our Linux account passwords changed we can start the sync process. Notice the word <strong><em>sync</em></strong>, as this will not remove any email from the old server. It will sync them and if you run it again only new items will be moved.</p>
<p>So in our Linux server we have our Linux.txt file containing the First name and Surname of the users we are going to move.</p>
<p>The simple bash script I used looks like this</p>
<p class="terminal">#!/bin/bash    <br />logfile=&quot;synclog.txt&quot;     <br />testlog=&quot;/tmp/testlog.txt&quot;     <br />host1=linuximap.domain.com     <br />#host1 is Source     <br />host2=exchange.domain.com     <br />#host2 is Dest     <br />domain=domain.com     <br />#domain is where email account is #everything after @ symbol ######     <br />Do not modify past here #######################################     <br />date=`date +%X_-_%x`     <br />echo &quot;&quot; &gt;&gt; $logfile echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&quot; &gt;&gt; $logfile     <br />echo &quot;IMAPSync started.. $date&quot; &gt;&gt; $logfile     <br />echo &quot;&quot; &gt;&gt; $logfile     <br />{ while IFS=&#8217;;&#8217; read u1; do     <br />user=$u1&quot;@&quot;$domain     <br />echo &quot;Syncing User $user&quot;     <br />date=`date +%X_-_%x`     <br />echo &quot;Start Syncing User $u1&quot;     <br />echo &quot;Starting $u1 $date&quot; &gt;&gt; $logfile     <br />imapsync &#8211;buffersize 8192000 &#8211;nosyncacls &#8211;subscribe &#8211;syncinternaldates &#8211;noauthmd5 &#8211;host1 $host1 &#8211;user1 &quot;$user&quot; &#8211;password1 <strong><font color="#d16349">TheLinuxPassword</font></strong> &#8211;ssl1 &#8211;port1 993 &#8211;host2 $host2 &#8211;user2 <strong><font color="#d16349">AD_DOMAINNAME</font></strong>/Exch_mig_user/$u1 &#8211;password2 <font color="#d16349"><strong>Exch_mig_user_PASSWORD        <br /></strong></font>date=`date +%X_-_%x`     <br />echo &quot;User $user done&quot; echo &quot;Finished $user $date&quot; &gt;&gt; $logfile     <br />echo &quot;&quot; &gt;&gt; $logfile     <br />done ; } &lt; Linux.txt     </p>
<p>date=`date +%X_-_%x`     <br />echo &quot;&quot; &gt;&gt; $logfile echo &quot;IMAPSync Finished.. $date&quot; &gt;&gt; $logfile     <br />echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&quot; &gt;&gt; $logfile </p>
<p><em><strong><font color="#ff0000">As with any script downloaded from the internet, read it, understand it and use it at your own peril!</font></strong></em></p>
<p>Since we have changed all Linux users passwords to a specific password we can use a static password. If you want to use different passwords for different accounts you need to modify the script and the Linux.txt file.</p>
<p>Also the user used to access the Exchange mailboxes is the same for every account so the password can be static there to.</p>
<p>You need to change the following in the script</p>
<ul>
<li><strong><font color="#d16349">TheLinuxPassword</font></strong> </li>
<li><strong><font color="#d16349">AD_DOMAINNAME</font></strong> </li>
<li><strong><font color="#d16349">Exch_mig_user_PASSWORD</font></strong> </li>
</ul>
<p>Once they are set to your private settings you can run the script and it will sync the users from the IMAP server to Exchange Server via IMAP. Every account synced will be logged to the synclog.txt file.</p>
<p>Once the synchronization is done it’s time to once again go over to the Exchange server and remove the Full Access Permissions for the Exch_mig_user account.</p>
<h3>Removing the full access permissions</h3>
<p>Now that we have synced the defined users mail from our old system to our new system it’s time to remove the full access permissions of the account we used while moving email.</p>
<p>Again open the Exchange Management shell and run the following</p>
<p class="ps">PS C:\&gt;Import-CSV Exchange.csv | foreach-object{Remove-MailboxPermission $_.Alias –user Exch_mig_user –AccessRights FullAccess –confirm: $false} </p>
<p>The –confirm: $false statement is there so we don’t have to confirm every permission change. If you move hundreds of users a time you don’t want to confirm this for every mailbox.</p>
<p>Once the script is done you should be done.</p>
<h3>Summary</h3>
<p>This might not be the most effective or the best way to move users from IMAP to Exchange, but it works and it does not cost anything but time spent on it. One problem is that IMAP folders will be synced one-to-one so if you have subfolders etc. your Exchange mailbox might get a little cluttered. But users have a tendency to clean it up, and we see to it that they get everything with them from the old system.</p>
<p>If you do use this method I’d really like to hear about it and if you have any questions feel free to ask. You can use comments here or send me an message using the <strong>contact page</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/12/02/moving-from-imap-to-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Supporting family and friends</title>
		<link>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/</link>
		<comments>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 13:21:54 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/?p=716</guid>
		<description><![CDATA[As most readers here are quite technical I thought I&#8217;d share one little application with you. Some may already be using it and others will be using it in a moment. Have you ever had a friend or family member call you because they have issues with their computer? I guess all of us have [...]]]></description>
			<content:encoded><![CDATA[<p>
As most readers here are quite technical I thought I&#8217;d share one little application with you. Some may already be using it and others will be using it in a moment.<br />
Have you ever had a friend or family member call you because they have issues with their computer? I guess all of us have since we are the experts in this area. In a corporate world we fire up some remote assistance software to help the user with his/her issues if we can&#8217;t solve it over the phone. What do we do at home? Mostly try to explain where to find settings and when it won&#8217;t work we get in our car and go to fix the computer locally. Well not anymore.
</p>
<h3>TeamViewer to the rescue</h3>
<p>
This is just one wonderful piece of software, never again will I have to get away from the comfort of my home office to fix a friends computer. I use <a href="http://www.teamviewer.com/">TeamViewer</a> for every last one of these problems.<br />
There are two reasons for this, the first one is in non-commercial use TeamViewer is free as in beer and the second is the variety of platforms you can run <a href="http://www.teamviewer.com/">TeamViewer</a> on.  <a href="http://www.teamviewer.com/">TeamViewer</a> runs on Windows, Mac, Linux and mobile devices. Granted I wouldn&#8217;t use my iPhone to support someone on a 24&#8243; monitor but it is be possible.<br />
Using it is so easy even your 90-year old grandma can use it.  Just have them download and start up the QuickSupport version of <a href="http://www.teamviewer.com/">TeamViewer</a> and you can install the All-In-One full version. <br />
From your client you will get the sessionID and the password, tap them into your full client and you are connected to their screen.<br />
I promise you will save a lot of time using this. What ever your personal support incidents might be. Just remember it wont work if their problem is the connection to the network <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/12/01/supporting-family-and-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuration Manager computer association speed up</title>
		<link>http://www.nixadmins.net/2010/09/24/configuration-manager-computer-association-speed-up/</link>
		<comments>http://www.nixadmins.net/2010/09/24/configuration-manager-computer-association-speed-up/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 08:05:53 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Server 2008 r2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Deployment]]></category>
		<category><![CDATA[abortpxe]]></category>
		<category><![CDATA[pxe boot]]></category>
		<category><![CDATA[SCCM]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2010/09/24/configuration-manager-computer-association-speed-up/</guid>
		<description><![CDATA[Usually when I install bare metal systems I have to wait over an hour for SCCM:s PXE to work on the newly imported computer. Before the Windows deployment services cache has expired that is. And the standard setting for that i 3600 seconds. Sometimes you really don’t have the time to wait for the hour [...]]]></description>
			<content:encoded><![CDATA[<p>Usually when I install bare metal systems I have to wait over an hour for SCCM:s PXE to work on the newly imported computer. Before the Windows deployment services cache has expired that is. And the standard setting for that i 3600 seconds.</p>
<p>Sometimes you really don’t have the time to wait for the hour to pass by. I’ve found two ways to speed this up, if you know something I don’t please inform me in the comments.</p>
<h3>Speed up for lab environments</h3>
<p>This first one is NOT recommended in production environments. If however you use a test environment this is a nice way to speed up the PXE service once and for all.</p>
<p>On the server running PXE and Windows Deployment Services (WDS) open regedit and add the following key</p>
<p><strong>HKLM\Software\Microsoft\SMS\PXE\CacheExpire</strong></p>
<p>The type should be DWORD and the Value 300 for 5 minutes in decimal. Without this key the standard cache time is 3600 seconds as mentioned above.</p>
<h3>Speed up for production environments</h3>
<p>This way is not in any way permanent. And it’s really easy when you need to get an install going quickly. </p>
<p>Just open services on the server running WDS and PXE service point. Find Windows Deployment Services and restart the service. Once restarted the cache is cleared and the bare metal system should go to PXE boot immediately instead of abortpxe.</p>
<p>&#160;</p>
<p>Hope you found this useful and don’t hesitate to comment if you did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/09/24/configuration-manager-computer-association-speed-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unable to use Active Sync / direct push on Exchange 2010</title>
		<link>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/</link>
		<comments>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/#comments</comments>
		<pubDate>Mon, 24 May 2010 08:06:54 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Active Sync]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/</guid>
		<description><![CDATA[We had some trouble with users not being able to sync their mail, contacts and calendar to their mobile phone. The configuration works but when the synchronization starts we get a entry in the local log “Error in Exchange Server”. Checking the logs on the Client Access server pointed me to look at permissions and [...]]]></description>
			<content:encoded><![CDATA[<p>We had some trouble with users not being able to sync their mail, contacts and calendar to their mobile phone. The configuration works but when the synchronization starts we get a entry in the local log “Error in Exchange Server”.</p>
<p>Checking the logs on the Client Access server pointed me to look at permissions and it seems like some accounts have disabled the inherited security rights. This is the problem since Exchange can’t access the account information.</p>
<p>To check this you use Active Directory Users and Computers and open the user in question. Open the Security tab and press Advanced. On the open window you should se the “Include inheritable permissions from this object’s parent”. If it’s not selected your Active sync will fail.</p>
<p><a href="http://www.nixadmins.net/wp-content/uploads/2010/05/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.nixadmins.net/wp-content/uploads/2010/05/image_thumb.png" width="382" height="104" /></a> </p>
<p>Hope this shortens someone’s troubleshooting session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2010/05/24/unable-to-use-active-sync-direct-push-on-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

