<?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>MISDivision Blog</title>
	<atom:link href="http://www.misdivision.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.misdivision.com/blog</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 16 Dec 2012 19:02:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Microsoft Office 2013 Review and Transition Notes</title>
		<link>http://www.misdivision.com/blog/microsoft-office-2013-review-and-transition-notes</link>
		<comments>http://www.misdivision.com/blog/microsoft-office-2013-review-and-transition-notes#comments</comments>
		<pubDate>Thu, 08 Nov 2012 22:59:05 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Microsoft Exchange]]></category>
		<category><![CDATA[Microsoft Lync]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[PowerPoint]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2659</guid>
		<description><![CDATA[Below are various notes when it comes to using the upgrade feature when installing Office 2013 and what it changes and what it doesn&#8217;t. These notes are put in program order. Office 2013 (in general) &#8211; the new look that they gave it is easy on the eyes and it can be customized in the [...]]]></description>
			<content:encoded><![CDATA[<p>Below are various notes when it comes to using the upgrade feature when installing Office 2013 and what it changes and what it doesn&#8217;t. These notes are put in program order.<br />
Office 2013 (in general) &#8211; the new look that they gave it is easy on the eyes and it can be customized in the &#8220;Office Account&#8221; options within the settings of each program. The more noticeable changes they made in this release are cosmetic, they did away with the flashy icons and animation and got back to the roots of their previous versions and cooled it off with a brand new interface of colors. As far as programs that come with the newer release, of course, they vary by the purchase (Pro, Student, Basic, etc), but as far as newer programs, they have implemented a few, which are covered below. The installation and upgrading process is much quicker and easier than before and for people that are not really tech savvy, this will be a good platform to start learning on.</p>
<p>Access &#8211; it will leave your current database structure as is, however, some custom table calculations may be upgraded/not working. For databases with custom built interfaces with forms, some things may have to be realigned and some VB might have to be changed, but it does not affect the functionality if the code is somewhat modern.</p>
<p>Excel &#8211; thankfully when it comes to Excel, it has kept all its previous functions and added new ones. All the math functions still work correctly and if you had versions of Office previous to 2007, you still don&#8217;t have to worry, all the rules set in place for auto calculations and spreadsheet math are exactly the same. On a side note, if you&#8217;re a Quickbooks person, they also added in some of those custom functions you can find within Formulas&gt;Financial. Not much has really changed here.</p>
<p>Lync (client only) &#8211; for those of you who don&#8217;t know what Lync is, it&#8217;s basically Windows Live Messenger on steroids with VOIP capabilities and more cool features. The Microsoft Office Professional Plus 2013 release includes this program and they have given it a polished and sleek new look. Basic changes with this release are each chat is no longer a separate window, it&#8217;s one window with tabs to your left for each conversation; which makes it easier if you only have one monitor. Also, it includes all your basic settings for your phone, call forwarding, etc. On the back end, not really much has changed here, it&#8217;s more the cosmetics of the program that make it different.</p>
<p>OneNote &#8211; one of the favorites for mobile people, they made some cool adjustments on this end. For those of you who don&#8217;t know what OneNote is, it&#8217;s a program that allows you to sync data of various types to your phone and vice-verse; so when a change is made on either device, it is seen on both ends. Of course the features of the program is limited to the features of your device, but if you have a Windows phone or tablet and see a use for this, you&#8217;ll be in seventh heaven.</p>
<p>Outlook &#8211; they made this extremely easy. If you&#8217;re on an Exchange environment, other than making a backup of your .pst file, you don&#8217;t have to do anything. Let the upgrade feature work its magic and it will copy over your profile information, upgrade it, and your folder structure, calendar, etc are all the same as they were. Although this may seem standard to some, this has been a serious issue Microsoft has had with previous releases that I believe in this version they perfected. On the flip side, if you&#8217;re starting new with a new profile, they made the setup of the email account easier as well.</p>
<p>PowerPoint &#8211; one thing Microsoft did right with this release is they have integrated social media within PowerPoint; so now you can add these kinds of features to spice up your presentation. They have also gotten much better with current media technology (audio and video files). Also, before in previous versions, if a slide was overloaded with moving objects it would clip; in this new version there is a warning message that comes up to let you know that the slide may have difficulties when played.</p>
<p>SkyDrive &#8211; have data on a cloud somewhere? This Microsoft based FTP program will make sending/receiving data as easy as it can get. Not really too many thrills here, just the basic file transfer protocol functions done the Microsoft way. This tool is extremely useful for people who have data on multiple clouds as well, they have implemented cool features that allow you to manage all of them at once.</p>
<p>Word &#8211; staying true to their baby of it all, they keep all the previous functions and bells and whistles with Word and just give it the newer 2013 look and feel. All the older functions are still here plus the newer functions of Office 2007 and 2010. As noted with the Office 2013 review at the top, for someone who is not technical/computer savvy, this will be a good platform to teach Microsoft Word on. It&#8217;s colors and layout make it easier to the eyes than in previous releases, so people can find things and functions easier and faster.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/microsoft-office-2013-review-and-transition-notes/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Complete Lync Guide: Install, Configuration, Topology Builder, and backup and restore</title>
		<link>http://www.misdivision.com/blog/the-complete-lync-guide-install-configuration-topology-builder-and-backup-and-restore</link>
		<comments>http://www.misdivision.com/blog/the-complete-lync-guide-install-configuration-topology-builder-and-backup-and-restore#comments</comments>
		<pubDate>Thu, 07 Jun 2012 23:18:31 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2607</guid>
		<description><![CDATA[How to install Microsoft Lync Before installing, the profile on the machine you’re installing from needs to have every Administrator right possible. Before installing Lync, the server has to be part of a domain. Also before installing, install Directory Administrative Tools under the Features in the Server Manager under “Remote Server Administration Tools”. A reboot [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>How to install Microsoft Lync</strong></li>
</ul>
<p><em>Before installing, the profile on the machine you’re installing from needs to have every Administrator right possible. </em></p>
<ul>
<li>Before installing Lync, the server has to be part of a domain.</li>
<li>Also before installing, install Directory Administrative Tools under the Features in the Server Manager under “Remote Server Administration Tools”. A reboot is necessary to complete this installation.</li>
<li>SQL Server also has to be installed and working before installing Lync, it will be required when setting up the configuration store.</li>
<li>Net Framework 3.5 needs to be configured. It is already installed on the server but if it has not been activated it will not register with the installation. Go into the Server Manager under Features and click “Add Feature”, .NET Framework 3.5 should be at the top, click that and its dependencies and let it install.</li>
<li>In the next screen of selecting the role services associated with .NET Framework, select all the option boxes and continue.</li>
<li>You will also have to install the Microsoft C++ package to 2008 if it hasn’t been done already.</li>
<li>The first install box will confirm the program installation directory, click next to proceed and agree to the EULA.</li>
<li>The next screen that pops up has several different options on it, click “Install Topology Builder”. Once it completes it will take you back to the main menu and if successful, there is a green check mark next to it.</li>
<li>Next, click “Prepare Active Directory for Lync Server”.</li>
<li>In this next box that comes up, assuming that the current credentials work, and that the right tools are installed you should get no errors. In this case, go ahead and click the first “Run” button to the right.</li>
<li>For the following window, click next and Lync will execute commands to prepare the schema for the install. As it finishes compiling, it will then have “Prepare Schema” in the dropdown below it, click Finish.</li>
<li>In the next section of verifying the replication of the schema partition, it requires some manual interaction.
<ul>
<li>Log onto the domain controller and click Start&gt;Administrative Tools&gt;ADSI Edit</li>
<li>In this program window at the top, click Actions and select “Connect to…” In the next box, under “Select a well-known naming context”, select Schema and click okay.</li>
<li>In the list of schemas that appear, search for CN=ms-RTC-SIP-SchemaVersion. Open this schema and you want to confirm that the value of the <strong>rangeUpper</strong> attribute is 1100 and that the <strong>rangeLower</strong> is 14. If this information is what you see, then the Schema replicated correctly. Once step two is completed, go back to the Lync install screen.</li>
<li>On step 3, click Run and click next to proceed onto the screen where it asks for the Universal Group Location. This is basically asking in what domain the universal groups will be created. Seeing as how the server should already be attached to the domain, click Local Domain and click next. In the following screen, click Finish.</li>
<li>Back to the Lync install screen, proceed to step four. Now we need to make sure the global catalog replicated to the domain controller. To do this, go to the DC and open up Active Directory Users and Computers.</li>
</ul>
</li>
</ul>
<p>On the left, expand down to Users and view the user list. If you now see the CS users there, the replication has successfully completed. In this case, go on back to the Lync install menu to step five.</p>
<ul>
<li>Click Run to get step five started and click next and wait for the compiler to finish. Afterwards, click Finish.</li>
<li>We now need to verify that the domain replicated the results. From here, open the Lync Server Management Shell and wait for it to log in. Once logged in, type in Get-CsAdDomain –Domain (domain-name) – GlobalSettingsDomainController (full domain name) and press enter. If the domain replicated correctly, your end result should be “LC_DOMAINSETTINGS_STATE_READY”.</li>
<li>Lastly, we need to add users to provide administrative access to the Lync Server Control Panel. To do this, log back to the domain controller and open up Active Directory Users and Computers.</li>
<li>In the users folder on the bottom of the forest, right click on the CSAdministrator profile and open its properties. In the Members tab, click Add and then type in the profile user(s) you wish to add to this group. To help speed this process along, open up a cmd window and type in “gpupdate /force” (without the quotations). This will force the changes to replicate.</li>
</ul>
<ul>
<li>From here, back to the main menu and click “Prepare first standard edition server”.
<ul>
<li>It will run through its processes automatically.</li>
<li>During this particular process, the server might have to be rebooted in order for the installation to continue.</li>
<li>Once this is completed, click Finish and it will take you back to the main menu.</li>
<li>Back on the main menu, click “Install or update Lync server system”.</li>
</ul>
</li>
</ul>
<p><strong>The Topology has to be already setup to proceed from here. If the Topology Builder has not been setup completely and published, </strong><a href="#topology"><strong>you need to do that before proceeding</strong></a><strong>. </strong></p>
<ul>
<li>Click on Run for “Install local configuration store”.</li>
<li>In this next box that pops up, click the Advanced button under the dropdown and select the bottom option of the SQL default.</li>
<li>This next process will be automatic, go ahead and click next and as the processes get done, click Finish.</li>
<li>Time for the next option, click Run for “Setup for remove Lync server components” on the main menu. This process is also automatic; however, a reboot may be needed in the end. Once rebooted, go back to this same step in the Lync Setup and click Run again. Once all the msi packages gets done installing and the setup completes, click Finish.</li>
<li>Back on the main menu, click Run for “Request, install or assign certificates.”</li>
</ul>
<p><strong>You might have certificate problems, in that case, you need to check the certificate authority on the domain and make sure the certificate is imported into the front end server. </strong></p>
<ul>
<li>In this next window, you see a dropdown, click that to reveal the other certificates. Under the “status” column, make sure that all the entries have “Assigned”. If not, highlight the ones that don’t, and click “Assign” on the right and it will assign the local certificate to the entries. Once all entries have been assigned, click “Request”.</li>
<li>The next window that comes up will confirm what you’re needing to do, go ahead and click next to the request type, make sure the top option of “Send the request immediately….” Is checked and click next. It will run through a process and once its completed, click Finish. From there, another Window will pop up confirming to assign the authority to the certificates in the previous list. Once that process gets done, click Finish and close that window.</li>
<li>Onto step four to start the services, click Run. In the next window that comes click next to get the processes rolling. After it’s done, click Finish and exit the application, from there, you’re done.</li>
</ul>
<ul>
<li><strong>Setting up the Topology</strong></li>
</ul>
<p><em>Unfortunately when it comes to setting up the Topology, importing a file from another similar topology will cause errors, so it’s best to do this from scratch. </em></p>
<ul>
<li>On the Lync main menu, select Install Topology Builder and the pop up will ask you for what kind, select new topology.</li>
<li>The first box will ask you for the primary domain controllers name (i.e. misdivision.com), type the controller name in and click next.</li>
<li>This next screen will prompt you for any additional SIP domains you want to be added, enter these in here; click next when you’re done.</li>
<li>The “Define the first site” window is basically asking you for a name for your site you’re creating. Anything can be entered here to call your site, once you’re done, click next.</li>
<li>The next window will ask you for details on the site, enter these in correctly as the Topology depends on their accuracy for correct Lync usage.</li>
<li>This next window should be a confirmation screen saying your Topology has been successfully defined. Make sure the checkbox for “open the new front end wizard…” has been checked and click finish.
<ul>
<li><strong>Setting up the Front End Pool</strong><em> </em>
<ul>
<li>This first window is asking you what you want to call your FQDN, this is a unique identifier used to reference Lync, so adding lync to the name often helps (i.e. lyncpool.misdivision.com). Make sure the checkbox for “Enterprise Edition Front End Pool” is checked and click next.</li>
<li>This next window is asking for the features you want to install. All of these are not mandatory and are completely optional, but select the ones you want and click next.</li>
<li>In the “Selected collocated server roles” window, check the options you want added to the server, both of these are also optional, but highly recommended.</li>
<li>The “Associate Server roles…” window is asking for what servers and features you want enabled. To ensure a thorough Lync setup, check all of them and click next.</li>
<li>Define the SQL store; this window should already have the name of the server store you created when you check “Define a new SQL store”. From there, go ahead and click next.</li>
<li>This next window is asking you to define the file share. In order to make this possible, a file needs to be created on the Lync server and have everyone be able to read and write to it, you can find those permissions in the sharing options of the folder. Once this is completed, type the name of the Lync server and the name of the shared folder and click next.</li>
<li>If you are not using DNS load balancing, click finish on this screen, if you are then enter in the name of the web server you’re using in the “internal base URL” (i.e. lyncweb.misdivision.local) and enter in the “external base URL” of your website (i.e. lyncweb.misdivision.com).</li>
<li>This next screen is asking you for PSTN gateways. IPs are mandatory for this screen in order to use Lync to make a call to someone, so if you have PSTN gateways then they need to be entered in here. Once you’re done, go ahead and click finish.</li>
<li>Once you click finish from there, the initial Topology will then be created in the Lync Server Topology Builder. This is the first screen we see where the Topology has been completed and is ready to be Published.</li>
<li>To publish the topology, right click on the “Lync Server 2010” at the top of your topology and scroll down and select “Publish…”</li>
<li>The first screen that comes up is the window confirming your SQL database you setup earlier, leave it as is and click next.</li>
<li>The builder will then run through its processes and at the end, you should see “Publishing wizard complete” window. That’s it, you’re done.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><em> </em></p>
<ul>
<li><strong>How to back up a Microsoft Lync environment</strong></li>
</ul>
<p><em>All certificates need to be exportable before continuing. </em></p>
<ul>
<li>A command prompt batch file has been created by an employee of Global Technology Services that encompasses all the commands needed to backup everything within a Lync environment. This batch file can be found <a href="http://www.misdivision.com/blog/wp-content/uploads/2012/06/Lync_Backup.zip">here</a>.</li>
<li>Download the folder onto the C drive and extract its contents. From there, open it and right click the “LyncBackup.bat” file, and select to run as Administrator. Once the script is done, it will say it has completed successfully, press any button to close it.</li>
<li>Open the Topology Builder and download a copy of the current topology and save that to the same folder on the root.</li>
<li>Navigate to the backup folder that was created on the root and copy it to a network share.</li>
<li>From here, once everything is backed up, unjoin the server from the domain and remove the IP addresses.</li>
<li>Go into an Active Directory server in that domain and delete the server under “Computers”. From here, you&#8217;re done with the old Lync server.</li>
</ul>
<ul>
<li><strong>How to restore a Microsoft Lync environment</strong>
<ul>
<li><strong>Notes before restoring:</strong>
<ul>
<li>Everything about the new Lync server needs to be exactly the same: IP address, DNS defaults, computer name, previous domain user used, on the same domain, etc.</li>
<li>Create a folder on the new server on the C drive called “Share” (without quotes) and set its share permissions to allow everyone everything.</li>
<li>Use the instructions for installing Lync up until you get to the point of “Install or update Lync server system” and stop. (The preparing Active Directory will by default be skipped).</li>
<li><strong>Restoring Microsoft Lync</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><em>Items </em><span style="text-decoration: underline">underlined </span><em>are explained in the previous directions of </em><a href="#lync"><strong>Installing Microsoft Lync.</strong></a><strong> </strong></p>
<ul>
<li>Locate to the folder share when you stored the backup file and copy it to the root and extract all the data.</li>
<li>Open the mmc.exe panel and add the “Certificate” snap in. Import the certificates from the folder on the C drive.</li>
<li>Open the Topology Builder and when it asks you, choose to open a local file, select the topology file in the backup folder. <span style="text-decoration: underline">Once it’s loaded, publish it. </span></li>
<li>Go to the Lync install and continue from “Install or Update Lync Server System” and click Run for step one. <span style="text-decoration: underline">When it asks you if you already have CSConfig data, navigate to the backup folder under “CsConfig” and select that zipped folder. </span></li>
<li>Back on the install menu for step two, click Run for “Install Lync Server Components” <span style="text-decoration: underline">and go through that process.</span></li>
<li>For step three for installing and assigning certificates, <span style="text-decoration: underline">when you get to the screen where it displays the items needing a certificate</span>, click “Assign” and select the certificate you imported earlier and complete that process.</li>
<li>Once the certificate assigning is done, navigate to the “backup” folder on the root under “File Store&gt;Server Name” and you’ll see three folders. Copy the folders in the “backup” and overwrite the ones on the “Share” folder created earlier.</li>
<li>Open the Lync Server Control Panel and under the menu option “Topology” on the left, look at the status window of the PSTN’s and your server on the bottom. Verify your server on the bottom is green for status and that the “Replication” field has a green check mark. This verifies Lync is being replicated when changes are made. If any changes are made in this screen, all the services in that window need to be restarted.</li>
<li>While in the LSCP, open a Lync user and go into their properties. Make sure the “registrar pool” has the server name in it, if it doesn’t, run the following commands:
<ul>
<li>Open Powershell and type in Get-CsUser and press enter; you will then see all the users within the domain pop up.</li>
<li>Then type in Get-CsUser | Move-CsUser -Target &lt;domain here&gt; and press enter. This will correct the registrar entries for the users in the pool.</li>
<li>Go into Microsoft Lync and click the arrow by the wheel and go into Tools&gt;Options and click “Advanced” by the sign-in address. Click the radio button for “Manual Configuration” and enter in the server name in the “internal server name or IP” and OK that.</li>
<li>If you are able to sign into Microsoft Lync, make a call and have it go through and the Console works on the Lync server, your environment is functioning correctly.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/the-complete-lync-guide-install-configuration-topology-builder-and-backup-and-restore/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure a SCOM agent for a workgroup server</title>
		<link>http://www.misdivision.com/blog/how-to-configure-a-scom-agent-for-a-workgroup-server</link>
		<comments>http://www.misdivision.com/blog/how-to-configure-a-scom-agent-for-a-workgroup-server#comments</comments>
		<pubDate>Thu, 07 Jun 2012 22:59:22 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[Microsoft System Center Essentials]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Local Agent]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[workgroup server]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2601</guid>
		<description><![CDATA[Seeing as how this is a complicated procedure, feel free to use Ctrl+F to locate within the document what place you're at if you lose track. All necessary windows and prompts you come across are named and can be found in this document using that function. ]]></description>
			<content:encoded><![CDATA[<ul>
<li>.Net Framework 4.0 needs to be installed first.</li>
<li>Once it’s installed, go ahead and click the blue “Local Agent” below in “Optional Installations”.</li>
<li>Click next to verify the EULA and next again to verify the install directory and on the screen where it asks you to specify the Management Group Configuration. The Management Group name is the current name of your SCOM console setup (open the console on the SCOM server it will say something like “Agent Managed &#8211; SESSIONNAME – Operations Manager”. The middle part is your management group name, in this case, SESSIONNAME. The management server is the full FQDN of the SCOM server. Leave the server port number the way it is and click next.</li>
<li>On this next screen, because this is a workgroup server, keep it checked on “Local System” and click next. The next screen will ask if you want to use Microsoft Updates, click no and click next to the install screen to proceed.</li>
<li>Once the install is completed, we need to go to the AD server of the domain in which the workgroup server resides. Once you’re there, open IE and type in <a href="http://localhost/certsrv">http://localhost/certsrv</a>; click “Request a Certificate”, in the next screen click “Advanced Certificate Request”, and from there click “Create and submit a request to this CA”.</li>
<li>After clicking the prompt to continue, in the next screen that follows, the certificate template needs to be “SCOM Gateway”. In the “Identifying information for offline template section” in the first “Name” box, type in the full FQDN of the server you’re installing the agent on (i.e. frontend01.mydomain.com); leave everything else the way it is and scroll down to the bottom where it says “Friendly Name”, again type the full FQDN. <strong>Do this same exact thing for your SCOM server and repeat the steps.</strong></li>
<li>From there, click submit and click yes to the prompt for the certificate creation. In the next screen, click “Install this certificate”.</li>
<li>Now we need to open the snap-in for the certificates in the mmc.exe menu; but only load the “Current User” account, not the full computer. Under the “Personal” folder, you should then see certificates there that you just created.</li>
<li>Right click and select to export the certificates and when the screen comes up, check to export the private key as well. In the “Export File Format” screen, leave the default option, but check the “Export all extended properties” box and click next.</li>
<li>In the password box, type in anything you like that’s easy to remember and click next. Export the keys to the desktop and copy them to your local computer.</li>
<li>Back on the server you’re installing the agent on, paste the certificates you exported onto its desktop.</li>
<li>Open the Certificate snap-in in the mmc console for the whole computer and extend the “Personal” certificates. Import the “frontend01.mydomain.com” and “scom.mydomain.com” keys created on the AD server. Provide their passwords when needed make them exportable and put them in the “Personal” folder.</li>
<li>From there, open the SCOM CD/package and navigate to SupportTools\AMD64 and copy the “MOMCERTIMPORT.exe” to the C drive along with the frontend01 certificate.</li>
<li>Open a command prompt and type in “net stop healthservice” and wait for the service to stop. Then in another command prompt window, type in (without quotes) “c:\momcertimport.exe c:\frontend01.pfx” (this cert name is the name of the cert you copied to the C drive). It will then ask you for the password, type it in (you won’t see any characters) and press enter.</li>
<li>To verify that things were done correctly, now navigate to the SCOM server, go into the “Pending Management” section and refresh; you should then see the server you just got done working with. From here, right click and select “Approve” and approve the prompt that follows.</li>
<li>To verify that authentication and its other protocols execute correctly, go back to the server you installed the agent on and open up the Event Viewer. It is normal to see the two errors with the ID’s of “21016” and “20070”, if this has been followed correctly, these will go away.</li>
<li>Keep refreshing the error log (this transaction will take a few minutes) until the last entry in the log you see has error ID “1109” and it says “All credential references resolved successfully”. This is a confirmation message that all communications between the agent and the SCOM server are now active.</li>
</ul>
<p>Go back to the SCOM server into the “Agent Managed” window and you should then see your server registering as healthy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-configure-a-scom-agent-for-a-workgroup-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prep, configure, and setup a domain controller</title>
		<link>http://www.misdivision.com/blog/how-to-prep-configure-and-setup-a-domain-controller</link>
		<comments>http://www.misdivision.com/blog/how-to-prep-configure-and-setup-a-domain-controller#comments</comments>
		<pubDate>Mon, 21 May 2012 18:39:42 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[domain controller]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2589</guid>
		<description><![CDATA[Before actually posting the directions on how to setup the domain controller; some items to keep in mind before beginning are: - Verify your machine name is what you want it to be; this will be the last time to change it before proceeding. If it turns out you need to change the machine name [...]]]></description>
			<content:encoded><![CDATA[<p>Before actually posting the directions on how to setup the domain controller; some items to keep in mind before beginning are:</p>
<p>- Verify your machine name is what you want it to be; this will be the last time to change it before proceeding. If it turns out you need to change the machine name after you installed domain services, you will have to remove the domain and start over again.</p>
<p>- It often helps to have your network on a static configuration instead of DHCP. That way it will make managing the computers, your domain and your network as a whole that much easier.</p>
<p>- Keep an eye out for Windows Updates when it comes to your domain environment as your machine might need to be rebooted and might do so automatically depending on your AU settings. If the server goes down for updates, so does the domain functionality.</p>
<p>- Once you&#8217;re inside the domain, you will not have the ability to easily transfer files from your older profile to a new one; it would help to put your files on some other source before proceeding.</p>
<p><strong>The directions below are for Windows Server 2008 and adding a new domain into a new forest; it does not include directions on adding a domain into an existing forest. </strong></p>
<ul>
<li>Go into the Server Manager and into the Roles portion, “Active Directory Services” needs to be installed; a reboot is not necessary afterwards.</li>
<li>Once installed, click Start and in the command box, type in “dcpromo” (without the quotations). In the first box that comes up, click the “Use advanced mode installation.”</li>
<li>Press next to go through the Operating System Compatibility screen, reading this screen is only necessary if you plan to attach another domain with a different operating system.</li>
<li>In the next screen, select “Create a new domain in a new forest” and click next.</li>
<li>This next screen is asking for the domain name; enter in your domain name like the example below it.</li>
<li>The NETBIOS screen that comes up next will then ask if you want to keep the default name, it often helps to keep the default name to avoid confusion.</li>
<li>The next screen of “Set Forest Functional Level” is basically asking you how low (as far as operating systems) you want the compatibility to go. If your domain is in a network full of servers that need to be added to the domain that have different OS’s on them, set the functionality to Windows Server 2000, this will make adding older machines much easier.</li>
<li>In “Set Domain Functional Level”, it’s basically the same step as before but its asking you to verify OS functionality on a domain level instead of a forest level. It often helps to set this to the same selection as the previous screen.</li>
<li>Once clicking next it will then ask you for adding additional domain controller options, make sure the DNS option is checked, it makes attaching workgroup computers to the domain much less complicated. Once you click next on this screen, a security window will pop up asking if you want to confirm using static IP addresses, click the top option to continue.</li>
<li>A window might pop up after the AD gets done configuring the DNS telling you that a delegation for the server cannot be created. This is okay, just click Yes to proceed.</li>
<li>The next window will show you where all the log files are kept on the server. It is strongly recommended to keep all of these at default, but if you have a specific place you want to keep server log files, feel free to change them.</li>
<li>The next screen will take you to the “Directory Services Restore Mode” admin password; to help keep uniformity, it often helps to make this password the same as the local Admin password. Once you’re done, click next.</li>
<li>This next screen is your last chance to change something or cancel out as it will give you the option to scroll through your configuration settings before proceeding.</li>
<li>After clicking next, the Active Directory Domain Services will then begin and go through its phases. After it’s done, it will prompt you to restart, do that.</li>
<li>Reboot the server and log in and open up the network properties for the active public adapter. The first DNS entry might be the loopback address of 127.0.0.1 and if so, this needs to be changed to the current server IP. Since this machine is the domain controller, it will also be giving out DNS directions as well, so the server IP should also be the first DNS entry.</li>
</ul>
<p><strong>To join work group computers/servers to the domain: </strong></p>
<ul>
<li>Go into the network properties for the active adapter and open up IPv4 properties.</li>
<li>The first DNS entry needs to be the IP address of the domain server.</li>
<li>Right click on &#8220;My Computer&#8221; and scroll down to properties.</li>
<li>Click the &#8220;Computer Name&#8221; tab and click the Change button below.</li>
<li>In the section on the bottom of the window where it says &#8220;Member of&#8221;, type in the domain name as you specified in the previous set of instructions.</li>
<li>If done correctly, you will get a welcome notification welcoming you to the domain. From there, whether prompted or not, reboot.</li>
<li>Depending on your current operating system, you will need to change some things here to be able to log onto the domain.<br />
<strong>For Windows Vista/Windows 7/Server OS&#8217;s: </strong>your log on credentials go as follows (domainname\user, i.e. mynetwork\jdoe) and then the password you assigned for the profile.<br />
<strong>For Windows XP and below: </strong>when you log on, you will most likely see a dropdown box below the password field asking what network you want to log into, select the domain you just    created and type in the profile name and password.</li>
</ul>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-prep-configure-and-setup-a-domain-controller/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint Notes and Tricks</title>
		<link>http://www.misdivision.com/blog/sharepoint-notes-and-tricks</link>
		<comments>http://www.misdivision.com/blog/sharepoint-notes-and-tricks#comments</comments>
		<pubDate>Mon, 16 Apr 2012 16:47:01 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Microsft SharePoint]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2573</guid>
		<description><![CDATA[When it comes to SharePoint and moving farms and databases from one server to the other, I felt it would be good to make some public notes and things for anyone who has to work with this program and configurations next. - When performing a backup, there are a couple different types you can choose [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to SharePoint and moving farms and databases from one server to the other, I felt it would be good to make some public notes and things for anyone who has to work with this program and configurations next.</p>
<p>- When performing a backup, there are a couple different types you can choose from, however, only two really matter; the Site Backup and Full Backup. Either way, both these options can be used for importing/exporting and can both be found in the Central Admin Console.<br />
<strong>Site Backup &#8211; </strong>this will backup the preferences of your site and its configurations for the actual site, not the data. If any custom changes are made to the Central Admin page or the site itself, this should be exported along with the full backup.<br />
<strong>Full Backup &#8211; </strong>this will backup everything when it comes to the SharePoint server: the farm, the configurations (data wise), the databases, SQL express settings, everything except custom site changes. This is basically the way to go to take the entire SharePoint server contents from one site to the other.</p>
<p>- Some things to keep in mind when you&#8217;re having issues is:</p>
<ul>
<li>The Central Admin Console a registered service with IIS, so any changes that are made that affect the operation to the point to where the console is no longer accessible might mean the service has to be restarted.</li>
<li>The Central Admin Console is basically the GUI for the site itself. It  will allow you to control everything about the site, its configurations,  and how it operates</li>
<li>There is a what&#8217;s called &#8220;SharePoint Products Configuration&#8221; app that comes with the installation that allows you to basically roll the clock back on different products within the SharePoint environment leaving the current data untouched, think of it as a Windows System Restore. If you have any issues with the farm configuration, the CA console, site issues, etc, run this app and it will set everything back to default. Just be sure when it asks you to keep it on the same farm/database. You&#8217;ll find this in the Start Menu.</li>
<li>In order for some changes to be made by either the CA console or the app mentioned above, the SharePoint Central Admin Service must be turned off for a certain period of time. A reboot is not necessary but once the service is turned off and no longer recognizable by the related apps, it allows you to make certain changes now that were refused before (i.e. rolling back the CA console and getting an error).</li>
<li>When you perform a backup and you designate the location its being stored to, make sure the location is accessible by everyone within the folder security properties. For example, if you put it on the root of the C drive and try to perform a backup it will give you access denied to that location.</li>
<li>If you accidently turn off the Central Admin Console and its no longer accessible on the server, use the &#8220;SharePoint Products Configuration&#8221; app in the Advanced Settings to remove the website from the current server (keep it attached to the farm). Stop the SharePoint IIS services in IIS Manager and leave them for about five minutes. Then use the same SharePoint app and select to have the web applet on the current server, make sure during this whole process you keep the current farm selected. If done correctly, the CA Console should now be working using the original ID and password.</li>
<li>There can be multiple farms per site but only one site per server. If a different site has to be created for whatever reason, it will have to be installed on a different server running the same operating system and SharePoint version.</li>
</ul>
<p>Think that about covers it but I might add more and come back to this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/sharepoint-notes-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Configure Database Mirroring and Database Replication with Publisher Fail-over Partnership With Microsoft SQL Server 2008 R2</title>
		<link>http://www.misdivision.com/blog/how-to-configure-database-mirroring-and-database-replication-with-publisher-fail-over-partnership-with-microsoft-sql-server-2008-r2-part1</link>
		<comments>http://www.misdivision.com/blog/how-to-configure-database-mirroring-and-database-replication-with-publisher-fail-over-partnership-with-microsoft-sql-server-2008-r2-part1#comments</comments>
		<pubDate>Fri, 24 Feb 2012 20:37:55 +0000</pubDate>
		<dc:creator>Andrew Kuhlmann</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Microsoft SQL Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2473</guid>
		<description><![CDATA[Database mirroring and replication are both very popular technologies utilized by organizations which rely on business critical SQL databases in order to distribute load among various Database nodes and to provide high availability. It is possible to setup either database mirroring or replication without using Publisher Failover Partnership, however this leads to scenarios where in [...]]]></description>
			<content:encoded><![CDATA[<p>Database mirroring and replication are both very popular technologies utilized by organizations which rely on business critical SQL databases in order to distribute load among various Database nodes and to provide high availability. It is possible to setup either database mirroring or replication without using Publisher Failover Partnership, however this leads to scenarios where in the case that the Primary mirror database fails over to the backup server replication connections are lost and servers which rely on replication will be unable to synchronize until the primary server comes back online. Furthermore this can lead to replication sessions becoming compromised in cases where there is a long time duration before the primary server is restored.</p>
<p><strong>For this case we have the following scenario:</strong></p>
<p>A critical set of database servers which has grown from a relatively small deployment has expanded over the course of some time to include fully redundant high capacity primary database servers which are utilizing mirroring to provide high availability. Additionally there has been several servers added over the life of this environment which are utilizing replication, wherein the primary database server has been configured as the sole publisher and distributor of the publication. It has become evident that the replication sessions are too critical to leave in this state and therefor they must be redeployed to utilize a remote distributor database and publisher failover partnership.</p>
<p><strong>In the lab environment I will demonstrate the following procedure:</strong></p>
<ol>
<li>Remove existing publications, subscriptions and distributor database.</li>
<li>Remove database mirroring.</li>
<li>Take backup of Live Production Database.</li>
<li>Restore Backup of Live Production Database to Mirror.</li>
<li>Create Distributor Database on Remote Witness and Distributor server.</li>
<li>Configure Privileges on Distributor Database to Allow Backup Publisher.</li>
<li>Create Publication.</li>
<li>Deploy Database Mirroring.</li>
<li>Associate Secondary Mirror Server as a Publisher on Distributor Database.</li>
<li>Add Mirrored Server as Publisher to Distributor.</li>
<li>Add Agent Parameters for Failover Partner.</li>
</ol>
<table border="0" cellspacing="0" cellpadding="0" width="588">
<col width="389"></col>
<col width="199"></col>
<tbody>
<tr>
<td width="389" height="20"><strong>Server   Role</strong></td>
<td width="199"><strong>Server Name</strong></td>
</tr>
<tr>
<td height="20">Primary Mirror</td>
<td>sqldev-01.itcloudsuite.com</td>
</tr>
<tr>
<td height="20">Backup Mirror</td>
<td>sqldev-02.itcloudsuite.com</td>
</tr>
<tr>
<td height="20">Distribution Database, Mirroring Witness</td>
<td>sqldev-03.itcloudsuite.com</td>
</tr>
<tr>
<td height="20">Subscriber Server</td>
<td>sqldev-04.itcloudsuite.com</td>
</tr>
<tr>
<td height="20">Subscriber Server</td>
<td>sqldev-05.itcloudsuite.com</td>
</tr>
</tbody>
</table>
<p><strong>Reference Articles:</strong></p>
<p>Replication and Database Mirroring: <a href="http://msdn.microsoft.com/en-us/library/ms151799.aspx">http://msdn.microsoft.com/en-us/library/ms151799.aspx</a></p>
<p>Configuring Remote Distributor: <a href="http://msdn.microsoft.com/en-us/library/ms147363.aspx">http://msdn.microsoft.com/en-us/library/ms147363.aspx</a></p>
<p>Manually Removing Replication: <a href="http://support.microsoft.com/kb/324401">http://support.microsoft.com/kb/324401</a></p>
<p>How To Prepare a Mirror Database for Mirroring: <a href="http://technet.microsoft.com/en-us/library/ms189047.aspx">http://technet.microsoft.com/en-us/library/ms189047.aspx</a></p>
<p><strong>Step 1. Remove existing publications, subscriptions and distributor database.</strong></p>
<div>As this environment has previously been configured to utilize both mirroring and replication, we&#8217;ll need to do some cleanup. Firstly we should run the following command at the existing Distributor database as a way to verify the presence of an existing distributor database.</div>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_get_distributor</div>
<div>GO</div>
</blockquote>
</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step1.sp_get_distributor1.png"><img class="alignnone size-full wp-image-2479" style="border-style: initial;border-color: initial" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step1.sp_get_distributor1.png" alt="" width="444" height="403" /></a></div>
<div>In the above screenshot the column &#8216;distribution db installed&#8217; returns a Boolean value of 1 indicating that a distribution database exists on this server. We need to remove this before we proceed as part of sterilizing the environment prior to configuring our environment for fail-over partnership. The procedure for removing all of this is formally documented by Microsoft <a href="http://support.microsoft.com/kb/324401">here</a>, however I&#8217;ll briefly run through as this is a very important part of this procedure and getting this wrong could lead to additional downtime in a live deployment.</div>
<p><span style="font-weight: bold">First we need to &#8216;Drop all subscriptions that are configured for the replication.&#8217;</span></p>
<div>Depending on your environment, you may need to perform slightly different queries in order to remove all of your subscriptions. In our case we have a single snapshot replication session which is configured as a Push subscription. The query I&#8217;ll use to remove the subscription will be run on the Publisher server where the Database name is &#8216;MirrorRepTest&#8217; and the Publication name is &#8216;MirrorRepTest-Pub&#8217; as follows:</div>
<div>
<blockquote>
<div>USE MirrorRepTest</div>
<div>GO</div>
<div>EXEC sp_dropsubscription @publication = N&#8217;MirrorRepTest-Pub&#8217;, @article = N&#8217;all&#8217;, @subscriber = N&#8217;all&#8217;, @destination_db = N&#8217;all&#8217;</div>
</blockquote>
<div>
<div>If you need to drop pull subscriptions instead, or in addition to some push subscriptions, then you would need to use the following query first on the Subscriber server:</div>
<blockquote>
<div>USE &lt;Subscription database name&gt;</div>
<div>GO</div>
<div>EXEC sp_droppullsubscription @publisher = N&#8217;&lt;Publisher server name&gt;&#8217;, @publisher_db = N&#8217;&lt;Publisher database name&gt;&#8217;, @publication = N&#8217;&lt;Publication name&gt;&#8217;</div>
</blockquote>
<div>And then from the Publisher server:</div>
<blockquote>
<div>USE &lt;Publication database name&gt;</div>
<div>GO</div>
<div>EXEC sp_dropsubscription @publication =N&#8217;&lt;Publication name&gt;&#8217;, @subscriber = N&#8217;&lt;Subscriber server name&gt;&#8217;, @article = N&#8217;all&#8217;, @destination_db = N&#8217;&lt;Destination database name&gt;&#8217;</div>
</blockquote>
</div>
</div>
<div>Note that the above procedure also varies for Merge subscriptions, see MS guidance if needed.</div>
<div><strong>The second step for cleanly removing existing replication is to &#8216;Drop all publications that are configured for the replication.&#8217;</strong></div>
<div>For this demonstration, we&#8217;re working with a &#8216;Transactional&#8217; Publication. The procedure to drop Merge publications differs from the following, if needed see MS guidance. The command I that follows will be run on the publisher server where the Publication database name is &#8216;MirrorRepTest&#8217; and the Publication name is &#8217;MirrorRepTest-Pub&#8217;. This query will utilize two stored procedures (sp_droppublication &amp; sp_replicationdboption) which will basically drop all of the articles from the publication and then configure the replicated database to no longer participate in replication.</div>
<div>
<blockquote>
<div>USE MirrorRepTest</div>
<div>GO</div>
<div>EXEC sp_droppublication @publication = N&#8217;MirrorRepTest-Pub&#8217;</div>
<div>USE master</div>
<div>GO</div>
<div>EXEC sp_replicationdboption @dbname = N&#8217;MirrorRepTest&#8217;, @optname = N&#8217;publish&#8217;, @value = N&#8217;false&#8217;</div>
</blockquote>
<div><strong>The final step for removing replication is to &#8216;Drop the distributor that is configured for the replication.&#8217;</strong></div>
<div>Firstly on the Publisher we will need to execute the following script in order to drop the subscriber designation which is assigned to the subscriber server.</div>
<div>
<blockquote>
<div>USE master</div>
<div>GO</div>
<div>EXEC sp_dropsubscriber @subscriber = N&#8217;sqldev-03&#8242;, @reserved = N&#8217;drop_subscriptions&#8217;</div>
</blockquote>
</div>
<div>Next, we will run the following script on the Distributor server in order to remove the Distributor.</div>
<div>
<blockquote>
<div>USE master</div>
<div>GO</div>
<div>EXEC sp_dropdistributor @no_checks = 1</div>
</blockquote>
<div>Now that all of the replication configurations have been cleanly removed, we can simply use the SQL Management Studio GUI to remove any lingering push subscription records on the subscriber servers.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step1.Subscriber.GUIDelete.png"><img class="alignnone size-full wp-image-2489" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step1.Subscriber.GUIDelete.png" alt="" width="571" height="334" /></a></div>
<div><strong>Step 2. Remove database mirroring.</strong></div>
<div>Removing database mirroring is a lot less complicated than removing replication, for this I would advise simply using the GUI in SQL Studio. <strong>If for you need to fail-over first, remember to do this prior to removing mirroring.</strong></div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.remove.mirroring.png"><img class="alignnone size-full wp-image-2501" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.remove.mirroring.png" alt="" width="495" height="198" /></a></div>
<div>After removing mirroring, whichever database was the mirror at the time the mirroring session was broken will end up in a restoring state.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.PostFailover.DB_.Restoring.png"><img class="alignnone size-full wp-image-2505" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.PostFailover.DB_.Restoring.png" alt="" width="255" height="97" /></a></div>
<div>
<div>The restoring state indicates that the database is waiting for completion of the log restore before the database will enter a normal state. However, this also will prevent you from being able to remove this database. Although, if you intend to re-establish mirroring on this database this is a good state to leave the databaes in&#8230; But in some cases you may need to remove it. In that case, you would want to use the following script to force a recovery. In this case I&#8217;m executing against the DB called &#8216;MirrorRepTest&#8217;</div>
<blockquote>
<div>restore database MirrorRepTest with recovery</div>
</blockquote>
<div>Now that I&#8217;ve run this command, you can see the database is back to a normal state.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.PostFailover.DB_.Normal.png"><img class="alignnone size-full wp-image-2507" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step2.PostFailover.DB_.Normal.png" alt="" width="357" height="85" /></a></div>
</div>
<div>If needed I can perform normal operations such as dropping or altering this database now.</div>
<div>Note that in cases where databases become stuck &#8220;In Recovery&#8221; the above will not work. In those cases, if you need to remove the database&#8230; My method is simply to stop the entire SQL server and delete the actual MDF/LDF files and then start the server. Once you do this and refresh the list of databases, the stuck database will be gone.</div>
<div><strong>Step 3. Take backup of Live Production Database. </strong></div>
<div>Now that all the preliminary cleanup of our environment is complete, we&#8217;re ready to proceed with taking a backup of the live production database in preparation for configuring Mirroring. In my experience with huge databases it&#8217;s often good to use something like a USB hard-drive in order to transport the databases efficiently. However, for this demonstration I&#8217;ll simply be taking a regular backup to the C: drive of the server. There&#8217;s nothing particularly special about this operation other than to make sure you include this in your planning as this operation can take a long time to complete when dealing with huge databases.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step3.FullBackup.png"><img class="alignnone size-full wp-image-2509" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step3.FullBackup.png" alt="" width="422" height="374" /></a></div>
<div><strong>Step 4. Restore Backup of Live Production Database to Mirror.<br />
</strong></div>
<div>Please note that the following scenario is somewhat limited in scope and as always I would recommend reviewing the official <a href="http://technet.microsoft.com/en-us/library/ms189047.aspx">Microsoft guidance here</a> prior to performing this operation in a live environment.</div>
<div>The method I prefer for performing this operation starts with creating an empty database which will receive the backup taken in step 3. In our scenario this database will have the same name as the principal server &#8216;MirrorRepTest&#8217;. It&#8217;s important at this point to specify the correct logical drive/folder where you ultimately want your data files to reside.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.CreateDB.png"><img class="alignnone size-full wp-image-2511" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.CreateDB.png" alt="" width="424" height="381" /></a></div>
<div>Now that the DB is ready to receive the data, we&#8217;ll go ahead and restore the backup to this database. Firstly you&#8217;ll need to click on the following:</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.png"><img class="alignnone size-full wp-image-2513" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.png" alt="" width="531" height="296" /></a></div>
<div>From the next menu I simply want to select my data source, in our case it&#8217;s just a file on the C: that I&#8217;ve copied via remote desktop&#8230; However in a production scenario it would likely be either a USB drive, or possibly a SAN location or something of that nature.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.2.png"><img class="alignnone size-full wp-image-2515" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.2.png" alt="" width="420" height="248" /></a></div>
<div>Next I need to click on the &#8216;Options&#8217; tab on this menu and make sure to specify &#8216;RESTORE WITH NORECOVERY&#8217; in order for the DB to be in the correct state to initiate mirroring. You will also need to select WITH REPLACE as we&#8217;re over-writing the blank database that we created previously.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.31.png"><img class="alignnone size-full wp-image-2519" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step4.RestoreDB.Menu_.31.png" alt="" width="419" height="379" /></a></div>
<div>Once you&#8217;ve completed the above you may be ready to go. However, in a lot of cases you&#8217;ll also need to take another backup of transaction logs. In that case you&#8217;ll simply take a transaction log backup instead of a full backup, and then restore it to the database in the same way except this time using the logs&#8230; You&#8217;ll need to select NORECOVERY during that procedure as well. Once that&#8217;s complete you will be ready to proceed with the rest of the setup and you will see the database in a &#8216;Restoring&#8230;&#8217; state on the SQL Studio GUI.</div>
<div><strong>Step 5. Create Distributor Database on Remote Witness and Distributor server.</strong></div>
<div>Official Microsoft guidance for this portion can <a href="http://msdn.microsoft.com/en-us/library/ms147363.aspx">be found here</a>.</div>
<div>Now we&#8217;re getting into the real meat of this setup. In our lab environment I&#8217;ve specified a single server as a witness and a distributor server however this distributor server does not have to be on the same server as the witness as they are completely independent of each other.</div>
<div>The first script we&#8217;ll use will utilize stored procedures to setup the distributor database itself on the specified server. <strong>This must be run against what is to be the Distributor server.</strong></div>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_adddistributor @distributor= &#8216;sqldev-03&#8242;, @password= &#8216;v3rys3cur3p4ss&#8217;</div>
<div>GO</div>
</blockquote>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_adddistributiondb @database= &#8216;distributor&#8217;, @data_folder= &#8216;C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA&#8217;, @data_file= &#8216;distributor.mdf&#8217;, @log_folder= &#8216;C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA&#8217;, @log_file= &#8216;distributor.ldf&#8217;</div>
<div>GO</div>
</blockquote>
</div>
<div>Assuming this script is successful you should get a return showing a bunch of tables and clustered indexes being created that will be used for the distributor database.</div>
</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step5.CreateDistributorDB.png"><img class="alignnone size-full wp-image-2521" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step5.CreateDistributorDB.png" alt="" width="430" height="307" /></a></div>
<div><strong>Step 6. Configure Privileges on Distributor Database to Allow Backup Publisher.</strong></div>
<div>Once the distributor database is created, we&#8217;ll need to configure it to allow what is to become our primary mirror server to act as a publisher. As an additional note, we will first need to create a shared folder on the distributor server. In order for replication to function properly you&#8217;ll need to grant access to the appropriate SQL Server Agents to access this folder.</div>
<div>For making the needed configuration we will use the following script:</div>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_adddistpublisher @working_directory= &#8216;\\sqldev-03\RepShare&#8217;, @publisher= &#8216;sqldev-01&#8242;, @distribution_db= &#8216;distributor&#8217;</div>
<div>GO</div>
</blockquote>
</div>
<div><strong>Step 7. Create Publication.</strong></div>
<div>We&#8217;re now ready to create our primary publication. In our case, SqlDev-01 is to be the primary publisher as it will be the primary mirror and so the configurations will be made on that server.</div>
<div>If you remember, the first thing we did was check to see if a distributor database was installed on our server using the following script:</div>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_get_distributor</div>
<div>GO</div>
</blockquote>
</div>
<div>If this distributor database is already installed, then we&#8217;ll need to use the following command to get rid of it.</div>
<div>
<blockquote>
<div>USE master</div>
<div>GO</div>
<div>EXEC sp_dropdistributor @no_checks = 1</div>
</blockquote>
<div>Assuming the distributor database is not present, when we go to create the publication using the SQL Studio GUI wizard, the first menu prompt will be asking us which Distributor database we want to use. At this point we&#8217;re going to want to select the remote distributor we created in step 5. Again, if this menu does not appear then you&#8217;ve messed up somewhere along the way removing the Distributor.</div>
</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step7.CreatePub.1.png"><img class="alignnone size-full wp-image-2523" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step7.CreatePub.1.png" alt="" width="347" height="312" /></a></div>
<div>The next screen will ask you for a password. This is the password that you&#8217;ve entered in the script in step 5. In my lab it was &#8216;v3rys3cur3p4ss&#8217;.</div>
<div>Once that password is entered the rest of the wizard is just your standard publication creation. Make sure to select the correct Database. In my lab environment we&#8217;ll be creating a &#8216;Transactional publication&#8217;. With all tables and views selected, and creating a snapshot immediately to later initialize subscriptions with.</div>
<div>For the Agent Security menu I&#8217;m simply using my administrator account in the domain. This account needs access to that share we created earlier.</div>
<div>As a general rule, <strong>always check &#8216;Generate a script file with steps to create the publication&#8217; even if you&#8217;re letting the default script run.</strong> This can come in very handy if you run into problems with a publication later on.</div>
<div>If you check the script that it generates, you&#8217;ll notice that the first command it issues is as follows:</div>
<blockquote>
<div>use master</div>
<div>exec sp_adddistributor @distributor = N&#8217;sqldev-03&#8242;, @password = N&#8217;<strong>&lt;password needed&gt;</strong>&#8216;</div>
<div>GO</div>
</blockquote>
<div>This is running a stored procedure which is configuring the distributor database used by this SQL Server. We basically made this configuration on the first screen when we chose sqldev-03 as the distributor, however the command isn&#8217;t actually issued until the script runs. Note that the password field is blank as a security measure.</div>
<div>The reason I&#8217;m pointing out this command is that if you think about it, the backup mirror server will need to have this configuration made as well. Why? Well, if it&#8217;s going to become the publisher in the event of a failover&#8230; It will need to know what distributor to connect to.</div>
<div><strong>Step 8. Deploy Database Mirroring.</strong></div>
<div>Previously we had prepared the database for mirroring, but didn&#8217;t actually get around to setting it up. We could have done it earlier, but we&#8217;re doing it now instead&#8230;</div>
<div>Since the databases are already created, all we need to do is use the SQL Studio GUI to create the mirroring session. One thing to note here, at least in my experience, you&#8217;ll have a lot easier time doing this if you first generate a couple SQL accounts with full privileges solely for the purpose of mirroring on the primary, secondary, and witness servers. Make sure to configure these accounts not to expire passwords too&#8230; For obvious reasons.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Create.Mirror.png"><img class="alignnone size-full wp-image-2525" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Create.Mirror.png" alt="" width="311" height="202" /></a></div>
<div>For the first few screens you&#8217;re just picking the needed servers and specifying the service accounts that we intend to use for the mirroring session.</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Create.Mirror.Accounts.png"><img class="alignnone size-full wp-image-2529" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Create.Mirror.Accounts.png" alt="" width="296" height="265" /></a></div>
<div>Once you complete the wizard steps, you&#8217;ll be prompted as to whether you wish to start the mirroring session. Obviously you want to attempt this. At this point you may encounter a failure if SQL detects that it needs a transaction log backup. If that&#8217;s the case, refer back to step 4. Remember that you&#8217;re taking a transaction log backup though, and not another full backup. The transaction log backup should not take nearly as long on a large database as it would to take a full backup.</div>
<div>Also one thing to note, if you get stuck here and it seems like the restore transaction log menu is grayed out.. Don&#8217;t Panic! You simply need to cancel out of the mirroring session and refresh the secondary mirror database, and it will go back to being in a restoring state. This is caused by mirroring trying to grab the DB to bring it into the fold. The main thing here you need to be sure of is to <strong>leave the database in a NORECOVERY state</strong> by selecting the following:</div>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Translog.Backup.png"><img class="alignnone size-full wp-image-2531" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step8.Translog.Backup.png" alt="" width="421" height="380" /></a></div>
<div>If all goes well, you should now have an active mirroring session. We&#8217;re now ready to move on to finalizing the replication configurations.</div>
<div><strong>Step 9. Associate Secondary Mirror Server as a Publisher on Distributor Database</strong></div>
<div>This command is going to specify that the secondary mirroring server is allowed to be a publisher on the distributor server. This is needed in the event of a fail-over.<strong> This command is run on the distributor server.</strong></div>
<div>
<blockquote>
<div>USE [master]</div>
<div>exec sp_adddistpublisher @working_directory= &#8216;\\sqldev-03\RepShare&#8217;, @publisher= &#8216;sqldev-02&#8242;, @distribution_db= &#8216;distributor&#8217;</div>
<div>GO</div>
</blockquote>
</div>
<div>In this case I&#8217;m specifying sqldev-02 which is the secondary mirror.</div>
<div><strong>Step 10. Add Mirrored Server as Publisher to Distributor.</strong></div>
<div>Remember the command I made you look at when we created the publication? Well we need to run that now, this command is going to be run on the Secondary Miror Server. This command is a stored procedure which is configuring the remote distributor server to be used as a distributor for any publications.</div>
<div>
<blockquote>
<div>use master</div>
<div>exec sp_adddistributor @distributor = N&#8217;sqldev-03&#8242;, @password = &#8216; v3rys3cur3p4ss&#8217;</div>
<div>GO</div>
</blockquote>
<div>If you&#8217;ll remember when we created the distributor we specified &#8216;v3rys3cur3p4ss&#8217; as the password. Hopefully it&#8217;s obvious that you&#8217;d be better off using something else.</div>
</div>
<div><strong>Step 11. Add Agent Parameters for Failover Partner.</strong></div>
<div>The last thing we need to do to the publication itself is to configure the &#8216;–PublisherFailoverPartner&#8217; parameter on the various agents involved in the publication. <strong>This operation should be taking place on the Distributor server.</strong></div>
<div>First we&#8217;ll want to use the sp_help_agent_profile stored procedure to return a list of agents via the following script.</div>
<blockquote>
<div>exec sp_help_agent_profile</div>
</blockquote>
<div><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step11.sp_help_agent_profile.png"><img class="alignnone size-full wp-image-2533" src="http://www.misdivision.com/blog/wp-content/uploads/2012/02/Step11.sp_help_agent_profile.png" alt="" width="529" height="252" /></a></div>
<div>As you can see in the above screenshot I&#8217;ve highlighted 4 rows. For the rest of this procedure we&#8217;ll be making configurations to each of these Agent profiles to configure the &#8217;–PublisherFailoverPartner&#8217; parameter. The agent_type field refers to the type of agent that each profile corresponds to. For this procedure requires that all snapshot, log reader, and queue reader agents be configured. Note that in some environments the profile_id&#8217;s will be different from the following commands and you will need to refer back to the &#8216;sp_help_agent_profile&#8217; output in order to script out the following configurations.</div>
<div>So for instance, with the above output I would need to run the following script</div>
<blockquote>
<div>exec sp_add_agent_parameter @profile_id = 1, @parameter_name = N&#8217;-PublisherFailoverPartner&#8217;, @parameter_value = N&#8217;SQLDEV-02&#8242;</div>
<div>exec sp_add_agent_parameter @profile_id = 2, @parameter_name = N&#8217;-PublisherFailoverPartner&#8217;, @parameter_value = N&#8217;SQLDEV-02&#8242;</div>
<div>exec sp_add_agent_parameter @profile_id = 3, @parameter_name = N&#8217;-PublisherFailoverPartner&#8217;, @parameter_value = N&#8217;SQLDEV-02&#8242;</div>
<div>exec sp_add_agent_parameter @profile_id = 11, @parameter_name = N&#8217;-PublisherFailoverPartner&#8217;, @parameter_value = N&#8217;SQLDEV-02&#8242;</div>
</blockquote>
<div>In the above command I am specifying the secondary mirror which is SQLDEV-02 as the parameter value for the publisherfailoverpartner parameter name.</div>
<div>Now that the above configurations have been made, you simply need to restart the SQL Agents on both of the servers involved in mirroring.</div>
<div>Once those servers are back online, you&#8217;re ready to proceed with deploying as many subscriptions as you need using push subscriptions. There shouldn&#8217;t be anything special about deploying the actual subscribers themselves assuming everything above has been completed successfully.</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-configure-database-mirroring-and-database-replication-with-publisher-fail-over-partnership-with-microsoft-sql-server-2008-r2-part1/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Server 2008: Resetting a SQL User Password</title>
		<link>http://www.misdivision.com/blog/microsoft-sql-server-2008-resetting-a-sql-user-password</link>
		<comments>http://www.misdivision.com/blog/microsoft-sql-server-2008-resetting-a-sql-user-password#comments</comments>
		<pubDate>Fri, 20 Jan 2012 18:18:54 +0000</pubDate>
		<dc:creator>ilya</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2433</guid>
		<description><![CDATA[Sometimes, you might run into a situation where you need to reset the password for a SQL user account. The process is quite simple and is described below. Step 1: Open an elevated command prompt and run the following command to stop SQL services: NET STOP MSSQLSERVER Step 2: Next, we will need to start [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you might run into a situation where you need to reset the password for a SQL user account. The process is quite simple and is described below.</p>
<p>Step 1: Open an elevated command prompt and run the following command to stop SQL services:</p>
<pre style="padding-left: 30px">NET STOP MSSQLSERVER
</pre>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/11.png"><img class="alignnone size-full wp-image-2447" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/11.png" alt="" width="422" height="45" /></a></p>
<p>Step 2: Next, we will need to start SQL Server in single-user mode. This is done by running the following command:</p>
<pre style="padding-left: 30px">NET START MSSQLSERVER /m
</pre>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/21.png"><img class="alignnone size-full wp-image-2449" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/21.png" alt="" width="427" height="51" /></a></p>
<p>Step 3: Now, open up SQL Server Management Studio and log in using Windows Authentication:</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/31.png"><img class="alignnone size-full wp-image-2451" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/31.png" alt="" width="449" height="312" /></a></p>
<p>Step 4: Expand Security, and then Logins. Find your SQL user account, right click it and select Properties.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/41.png"><img class="alignnone size-full wp-image-2453" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/41.png" alt="" width="449" height="368" /></a></p>
<p>Step 5: Enter in the new password and confirm it, then click OK.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/52.png"><img class="alignnone size-full wp-image-2457" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/52.png" alt="" width="396" height="356" /></a></p>
<p>Step 6: Go back to your elevated command prompt, and restart SQL Server with the following two commands:</p>
<pre style="padding-left: 30px">NET STOP MSSQLSERVER
NET START MSSQLSERVER</pre>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/61.png"><img class="alignnone size-full wp-image-2459" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/61.png" alt="" width="426" height="90" /></a></p>
<p>Step 7: Confirm that your new login is working and you&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/microsoft-sql-server-2008-resetting-a-sql-user-password/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up a transactional replication pull subscription in Windows SQL Server 2008 R2 using SQL commands</title>
		<link>http://www.misdivision.com/blog/how-to-set-up-a-transactional-replication-pull-subscription-in-windows-sql-server-2008-r2-using-sql-commands</link>
		<comments>http://www.misdivision.com/blog/how-to-set-up-a-transactional-replication-pull-subscription-in-windows-sql-server-2008-r2-using-sql-commands#comments</comments>
		<pubDate>Fri, 20 Jan 2012 08:41:57 +0000</pubDate>
		<dc:creator>William Gannon</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sql server 2008]]></category>
		<category><![CDATA[subscription]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2319</guid>
		<description><![CDATA[In SQL server, replication allows data to be synchronized between two or more databases.  One server acts as a publisher which has a publication subscribed to by servers; the publication specifies what data is to be distributed to the subscriber servers.  In transactional replication, a snapshot of the publication is created on a subscriber server; [...]]]></description>
			<content:encoded><![CDATA[<p>In SQL server, replication allows data to be synchronized between two or more databases.  One server acts as a publisher which has a publication subscribed to by servers; the publication specifies what data is to be distributed to the subscriber servers.  In transactional replication, a snapshot of the publication is created on a subscriber server; any new transactions on the publication database are propagated onto the subscriber server.  In order to instantiate replication, you will need to create a subscription on the subscriber server.  This article will show you step by step how to create a transactional replication subscription.  It assumes you have create a publication and specified a publisher and distributor server.</p>
<p>The basic steps to create the subscription are as follows:</p>
<p>1. Run the snapshot agent.</p>
<p>2. Take a backup of the database to be replicated</p>
<p>3. Restore the backup onto the subscriber server</p>
<p>4. Run publisher SQL commands to add a subscription for the subscriber.</p>
<p>5. Run subscriber SQL commands to finish creating the subscription and to add the subscription agent.</p>
<p>Be aware that setting up replication can be a time intensive process.  For example, taking a backup of a 1TB database could take as long as 8 hours; the restore would take about the same amount of time.  After setting up replication, it may take up to several days for the involved databases are synchronized.</p>
<p>First, you&#8217;ll need to run the snapshot agent on the publication on the publisher server.  Inside of the SQL Server Management Studio, Right-click the publication and select <strong>View Snapshot Agent Status</strong>.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication24b.png"><img class="alignnone size-full wp-image-2373" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication24b.png" alt="" width="387" height="623" /></a></p>
<p>Next, select <strong>Start </strong>to create the snapshot.  Wait until the snapshot has finished.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication25.png"><img class="alignnone size-full wp-image-2375" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication25.png" alt="" width="600" height="280" /></a></p>
<p>So long as there aren&#8217;t any problems, you should see a screen like the one below.  You can close the dialog box.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication26.png"><img class="alignnone size-full wp-image-2377" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication26.png" alt="" width="602" height="279" /></a></p>
<p>The next step is to create a backup of the database to be replicated.  Right-click the database, select <strong>Tasks </strong>and then select <strong>Back Up&#8230;</strong></p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication19.png"><img class="alignnone size-full wp-image-2359" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication19.png" alt="" width="545" height="489" /></a></p>
<p>Here, you will specify the source database, the type of backup, the name of the backup set, and where the back up will be saved.  For the backup type, select <strong>Full</strong>.  If you are going to save to a hard drive, you need to select <strong>Disk </strong>under <strong>Destination </strong>and then select <strong>Add </strong>to specify where the backup will be saved.  Select <strong>OK </strong>to start the backup.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication20.png"><img class="alignnone size-full wp-image-2361" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication20.png" alt="" width="703" height="633" /></a></p>
<p>This dialog box comes up when you select <strong>Add&#8230;</strong> Select <strong>&#8230;</strong> to browse for a backup destination.  Select <strong>OK </strong>when done.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication20b.png"><img class="alignnone size-full wp-image-2363" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication20b.png" alt="" width="435" height="258" /></a></p>
<p>Once the backup has completed, a dialog box will appear saying so.  Even if the progress shows <strong>Executing (100%)</strong>, the backup is not really complete until you see the following dialog box appears.  Select <strong>OK </strong>to close out the backup window.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication21.png"><img class="alignnone size-full wp-image-2365" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication21.png" alt="" width="703" height="632" /></a></p>
<p>Now on your subscriber server, restore the backup.  Move the backup file you specified in the previous step to the subscriber server.  In Management Studio, right-click <strong>Databases </strong>and select <strong>Restore Database&#8230;</strong></p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication22.png"><img class="alignnone size-full wp-image-2367" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication22.png" alt="" width="310" height="330" /></a></p>
<p>Here you specify the database, the backup file to be used for the restore, and the backup sets to restore.  The database should be the same name as the database being replicated.  Check the box next to the backup set.  Select <strong>OK </strong>to start the restore.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication23.png"><img class="alignnone size-full wp-image-2369" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication23.png" alt="" width="702" height="633" /></a></p>
<p>Similar to the backup, the restore is not complete until you see a success dialog box.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication24.png"><img class="alignnone size-full wp-image-2371" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication24.png" alt="" width="703" height="632" /></a></p>
<p>Now, that the backup has been restored on the subscriber server, the commands to create the subscription need to be run.  Text in italics is a description of what to put into the command.  You can see specific examples in the images following each respective command.  On the publisher server, run the following command:</p>
<p>EXEC sp_addsubscription<br />
@publication = N&#8217;<em>publication name</em>&#8216;,<br />
@subscriber = N&#8217;<em>subscriber server</em>&#8216;,<br />
@destination_db = N&#8217;<em>destination database name</em>&#8216;,<br />
@subscription_type = N&#8217;pull&#8217;,<br />
@sync_type = N&#8217;initialize with backup&#8217;,<br />
@backupdevicetype = N&#8217;disk&#8217;,<br />
@backupdevicename = N&#8217;<em>backup file location</em>&#8216;,<br />
@article = N&#8217;all&#8217;,<br />
@update_mode = N&#8217;read only&#8217;,<br />
@subscriber_type = 0;</p>
<p>There are a few different subscription types.  A pull subscription will have agent processes run on the subscriber server, placing less load on the distributor server.  You should note that if you had placed a backup file and moved it via an external device, you&#8217;ll have to move the USB device back to the publisher after restoring the backup.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication27.png"><img class="alignnone size-large wp-image-2379" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication27-1024x640.png" alt="" width="1024" height="640" /></a></p>
<p>Jump to the subscriber server and run the following command:</p>
<p>EXEC sp_addpullsubscription<br />
@publisher = N&#8217;<em>publisher server</em>&#8216;,<br />
@publisher_db =  N&#8217;<em>publisher database</em>&#8216;,<br />
@publication =  N&#8217;<em>publication name</em>&#8216;,<br />
@independent_agent =  &#8216;true&#8217;,<br />
@subscription_type =  &#8216;pull&#8217;,<br />
@description =  &#8216;description&#8217;,<br />
@update_mode =  &#8216;read only&#8217;,<br />
@immediate_sync =  1</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication28.png"><img class="alignnone size-large wp-image-2381" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication28-1024x640.png" alt="" width="1024" height="640" /></a></p>
<p>Lastly, run this command on the subscriber:</p>
<p>exec sp_addpullsubscription_agent<br />
@publisher =  N&#8217;<em>publisher name</em>&#8216;,<br />
@publisher_db =  N&#8217;<em>publisher database</em>&#8216;,<br />
@publication = N&#8217;<em>publication name</em>&#8216;,<br />
@distributor = N&#8217;<em>distributor name</em>&#8216;,<br />
@job_login = N&#8217;<em>login for job</em>&#8216;,<br />
@job_password = N&#8217;<em>password</em>&#8216;,<br />
@subscriber_security_mode = 1,<br />
@frequency_type = 64,<br />
@frequency_interval = 0,<br />
@frequency_relative_interval = 0,<br />
@frequency_recurrence_factor = 0,<br />
@frequency_subday = 0,<br />
@frequency_subday_interval = 0,<br />
@active_start_time_of_day = 0,<br />
@active_end_time_of_day = 235959,<br />
@active_start_date = 20120113,<br />
@active_end_date = 99991231,<br />
@enabled_for_syncmgr = N&#8217;False&#8217;,<br />
@distributor_security_mode = 1,<br />
@distributor_login = N&#8217;<em>login to connect to distributor</em>&#8216;,<br />
@distributor_password = N&#8217;<em>password</em>&#8216;,<br />
@alt_snapshot_folder = N&#8221;,<br />
@working_directory = N&#8221;,<br />
@use_ftp = N&#8217;False&#8217;</p>
<p>The security mode = 1 means using Windows authentication which is possible with domain user logins.  If you need to use SQL authentication, the security mode should be set to 0.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication29b.png"><img class="alignnone size-large wp-image-2407" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication29b-1024x640.png" alt="" width="1024" height="640" /></a></p>
<p>If no errors occurred, the replication should be established now.  You can check replication status using the replication monitor.  Right-click the <strong>Replication </strong>folder and select <strong>Launch Replication Monitor</strong>.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication30.png"><img class="alignnone size-full wp-image-2385" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication30.png" alt="" width="357" height="484" /></a></p>
<p>The replication monitor will show the replication latency between the publisher and subscriber servers.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication31.png"><img class="alignnone size-full wp-image-2387" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication31.png" alt="" width="700" height="440" /></a></p>
<p>You can get a more accurate view of the replication health by viewing the details on the subscription.  Inside of the replication monitor, select the <strong>Subscription Watch List</strong> tab.  Right-click the subscription and select<strong> View Details</strong>.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication34.png"><img class="alignnone size-full wp-image-2417" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication34.png" alt="" width="700" height="439" /></a></p>
<p>Inside of the details on the subscription, select the <strong>Undistributed Commands</strong> tab.  You will see the number of commands to be applied to the subscriber and a time estimate to apply the commands.  If you have a large production database to replicate, there will probably be a lot of commands to apply since taking the original backup.  You&#8217;ll know that the replication health is good so long as the number of commands is going down.  Once replication has caught up completely, the number of commands to applied will be 0; as stated earlier, it may take several days to catch up completely if you have a large database.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication35.png"><img class="alignnone size-full wp-image-2419" src="http://www.misdivision.com/blog/wp-content/uploads/2012/01/SQL_replication35.png" alt="" width="699" height="565" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-set-up-a-transactional-replication-pull-subscription-in-windows-sql-server-2008-r2-using-sql-commands/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Configure MISDivision Hosted Lync</title>
		<link>http://www.misdivision.com/blog/how-to-configure-misdivision-hosted-lync</link>
		<comments>http://www.misdivision.com/blog/how-to-configure-misdivision-hosted-lync#comments</comments>
		<pubDate>Tue, 27 Sep 2011 21:33:35 +0000</pubDate>
		<dc:creator>Andrew Kuhlmann</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2305</guid>
		<description><![CDATA[Configuring your hosted MISDivision Lync account is easy, simply follow these steps. From your Lync client, click the gear icon and then navigate to tools &#8211;&#62; options From here you will see the options menu. Next, click the &#8220;Personal&#8221; tab on the left and then the &#8220;Advanced&#8230;&#8221; button. This will pop-up Advanced Connection Settings. From [...]]]></description>
			<content:encoded><![CDATA[<p>Configuring your hosted MISDivision Lync account is easy, simply follow these steps.</p>
<p>From your Lync client, click the gear icon and then navigate to tools &#8211;&gt; options</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2011/09/step1.jpg"><img class="alignnone size-full wp-image-2306" src="http://www.misdivision.com/blog/wp-content/uploads/2011/09/step1.jpg" alt="" width="259" height="151" /></a></p>
<p>From here you will see the options menu.</p>
<p>Next, click the &#8220;Personal&#8221; tab on the left and then the &#8220;Advanced&#8230;&#8221; button. This will pop-up Advanced Connection Settings.</p>
<p>From here, insert the internal server name or IP address and External server name or IP Address fields as seen below with the server: sip.misdivision.com</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2011/09/step2.jpg"><img class="alignnone size-full wp-image-2307" src="http://www.misdivision.com/blog/wp-content/uploads/2011/09/step2.jpg" alt="" width="505" height="254" /></a></p>
<p>Once you have complete this, simply login with your assigned user name and password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-configure-misdivision-hosted-lync/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Automatically Login to External SharePoint Site</title>
		<link>http://www.misdivision.com/blog/how-to-automatically-login-to-external-sharepoint-site</link>
		<comments>http://www.misdivision.com/blog/how-to-automatically-login-to-external-sharepoint-site#comments</comments>
		<pubDate>Fri, 05 Aug 2011 17:07:20 +0000</pubDate>
		<dc:creator>Andrew Kuhlmann</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Microsft SharePoint]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://www.misdivision.com/blog/?p=2301</guid>
		<description><![CDATA[The following steps will allow you to automatically log in to a SharePoint site which does not share your work stations Active Directory domain.]]></description>
			<content:encoded><![CDATA[<p>The following steps will allow you to automatically log in to a SharePoint site which does not share your work stations Active Directory domain.</p>
<p>1. In Internet Explorer, click &#8220;tools&#8221; then click &#8220;internet options&#8221;<br />
2. Click the &#8220;Secuirty&#8221; tab and then click the &#8220;Local Intranet&#8221; icon<br />
3. Click the &#8220;Sites&#8221; button and then click &#8220;Advanced&#8221;<br />
4. Type or otherwise enter the domain for the SharePoint site into the &#8220;add website to the zone:&#8221; input box and click the &#8220;Add&#8221; button</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2011/08/IE.jpg"><img class="alignnone size-full wp-image-2302" src="http://www.misdivision.com/blog/wp-content/uploads/2011/08/IE.jpg" alt="" width="370" height="500" /></a></p>
<p>Next, as this is an external site you must store a credential for the site via this method:</p>
<p>1. Navigate to Control Panel\User Accounts\Credential Manager on your Windows computer. This can be accessed either via the control panel, or by simply entering &#8220;Control Panel\User Accounts\Credential Manager&#8221; into a My Computer window.<br />
2. Click &#8220;Add a windows credential&#8221;<br />
3. In the window that appears, enter your SharePoint sites domain.<br />
4. Enter in your username/password.</p>
<p><a href="http://www.misdivision.com/blog/wp-content/uploads/2011/08/cred.jpg"><img class="alignnone size-full wp-image-2303" src="http://www.misdivision.com/blog/wp-content/uploads/2011/08/cred.jpg" alt="" width="671" height="270" /></a></p>
<p>After completing the above steps you should automatically be logged into the SharePoint site without needing to authenticate each time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.misdivision.com/blog/how-to-automatically-login-to-external-sharepoint-site/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
