This is a very nice article with great step-by-step screen shots for migrating your master domain controller from an older 2008r2 box to a new 2012 server.
Thanks for this Naresh!
Posted in Microsoft, Software, Windows 2008r2, Windows Server 2012, tagged AD, Microsoft, Migrate on May 3, 2013 | Leave a Comment »
This is a very nice article with great step-by-step screen shots for migrating your master domain controller from an older 2008r2 box to a new 2012 server.
Thanks for this Naresh!
Posted in Installation, Microsoft, Software, Windows Server 2012, tagged Installation, Microsoft, step-by-step, Windows Server 2012 on March 15, 2013 | Leave a Comment »
Recently I’ve had a need to setup a Windows Server 2012 and wanted to document the process for future attempts.
I won’t document every single screen, only those that include decisions to be made and considerations to be considered.
I’ll be using this server as a root server for my new IBM Endpoint Manager v9, so a GUI would be very handy during install and general maintenance of that application.
At first I wanted to go with a regular install… not Custom… so I chose the top option.
Turns out this is for upgrading an existing OS installation. Since this is a brand new hard drive with no pre-existing OS, I should have chosen the “Custom” option. After hitting Close, I was sent back to the very beginning of the installation.
Once I arrived at the start up screen… it hung there for nearly 30 minutes. Turns out since I was setting this up on a VMWare ESXi v5.0 server it doesn’t support Windows Server 2012. So after some research I came across this article: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2006859
I learned that I had to upgrade my VMWare ESXi server to a patch or v5.1… I opted for v5.1 and was able to get past this sticky part.
The server manager has been redesigned for the new GUI. Interesting choices…
I don’t want this application to come up every time I log in… so choosing the Manager –> Server Manager Properties, I was able to check the “Do not start Server Manager automatically at logon”.
Now I need to add my new server to my LDAP domain. Choosing “Local Server” from the left menu…
Click on “WORKGROUP” and the familiar computer properties dialog opens where you can change these settings.
One restart later I was able to log in and I’m done.
Posted in Installation, Software, SQL 2012, tagged Installation, Microsoft, SQL, step-by-step on March 15, 2013 | Leave a Comment »
Like many of my step-by-step articles, it’s mostly for corporate level documentation purposes.
I won’t describe every screen, only those that include important decision points that affect my particular use case.
The above dialog is warning me that the firewall does not allow remote database connectivity. The below command line can be used to open up the SQL port. The cmd prompt must be opened with administrative permissions for this to work.
netsh advfirewall firewall add rule name = SQLPort dir = inprotocol = tcp action – allow localport = 1433 remoteip = localsubnet profile = DOMAIN
This is one of those major decision points. My purpose for this database is to house the newest IBM Endpoint Manager v9 database… nothing else. So I only require a few items to accomplish this simple task. The following items are needed for my particular use case:
In order to get IEM installed properly… an SA account is required. So I’ll configure the database authentication in “Mixed Mode” and specify a password for the SA account.
That’s all there is to it. Installations are almost always straight forward… but some corporations require complete step-by-step documentation, I hope this fits the bill.
Posted in BigFix, Installation, Microsoft, Programming, Software, Visual Studio, tagged BigFix, Code, Microsoft, Programming, Relevance, Setup, Tivoli Endpoint Manager, Uninstall, Visual Studio on May 28, 2012 | 4 Comments »
First let me send a shout out to my reference for this little tidbit of information: How to add a Uninstall option in Visual Studio Setup project without writing code GoGoToTo created a very nice article on this. I simply expanded it further to include getting your application “registered” so within BigFix it will show up as one of the registered apps.
First View your File System so we can add the special folder “System”
If your application is x86, then we’ll want to add the msiexec.exe from the c:\windows\SysWow64 folder.
Left click to highlight the msiexec.exe file and in the properties window, adjust as indicated in the following image:
Next we’ll need to add a shortcut to the “User’s Program Menu”. In my example, I’ve created a sub-folder named after my application. Click that folder and in the right window, right-click and create a shortcut.
Navigate to the System Folder and select the msiexe.exe file.
Before we modify the shortcut’s properties, we’ll need to copy the ProductCode from the Setup Application Properties.
Using that ProductCode, modify the shortcut’s properties as follows:
Now we get to register our application… Open the Registry View.
Under HKEY_LOCAL_MACHINE add the following sub-keys:
Microsoft\Windows\CurrentVersion\App Paths\[name of your exe]
Remember to specify the last key to “DeleteAtUninstall” = True
Add the following 2 string values with the values as shown.
That’s it. You now have an uninstall link that will be created upon installation of your app. You will also have your application properly “registered” so BigFix can properly detect it.
Posted in Bing Maps, C#, Microsoft, Programming, Technology, Windows 8, tagged Bing, Congress, Contest, Maps, Metro, Microsoft, Windows 8 on January 4, 2012 | 6 Comments »
This afternoon I have finally completed my Metro style Windows 8 application. I’m still entering data into the database, but the app itself is completed. When the app is launched it pulls that data and displays it to the users.
Here are a few screen shots of my application:
My application is based on the House of Representatives. It allows you to quickly discover your congress person and provides you with contact information including Twitter, Facebook and other links they’ve shared on their websites.
The contest started here: https://buildwindowscontest.com/
If I win, I will be included in the first round of apps added to the new Microsoft App store… very exciting!
Wish me luck!
Posted in Microsoft, SQL 2008r2, tagged Installation, Microsoft, SQL, step-by-step, upgrade on December 6, 2011 | Leave a Comment »
I have a server whose hard drive is failing and unable to get an image of the hard drive. This particular server is one of the most important on my network as it is my SQL database server and links to multiple other services: Microsoft Team Foundation Server, Microsoft Sharepoint, IBM Tivoli Endpoint Manager (BigFix), among several of my personal developments.
Since I have upgraded my virtual host server I plan on running my new SQL server as a virtual (see: 1, 2, 3) . I’m assigning 4 cores and 3 vhd files running from multiple hard drives within my virtual host server. This should serve my applications well. I’m now left with the problem of migrating my databases from the old failing server to the new one.
The first thing to do is stop all services that rely on the old SQL server.
Stop my custom vGPS website
First up, my custom virtual GPS website… This website provides an easy way to take someone’s public IP address and performs a database lookup, then returns the previously recorded GPS coordinates.
Stop Team Foundation Server
Next up, my Team Foundation Server… here I plan on just shutting down that virtual. During my migration process I plan on changing the DNS name for my old SQL server to point to the new SQL server. Thus when TFS starts back up, it shouldn’t see anything change.
Stop Tivoli Endpoint Manager services
Finally I’ll need to disable my BigFix infrastructure by stopping all of the related services.
I had to stop my BES Client also due to the policies I’ve put into place which monitors for stopped/failed services and restarts them.
While I’ve been working documenting what needs to be stopped, I’ve also been preparing and updating my new virtual SQL server. Windows Updates, attaching to domain, installing SQL, etc…
Visit my “Installing Microsoft SQL Server 2008r2” for details on how to setup your own SQL server.
Now we’re ready to, backup/detach/move/attach our databases.
Backup Databases
First let’s backup each of the databases that will be migrated over:
Open up SQL Mgmt Studio
Open up the localhost->Databases and right click on each database->Tasks->Back Up. The default location should be fine unless your shy on space. If so, remove the destination at the bottom and redirect to a different location.
Repeat until you have all of the desired databases backed up and safe.
Since I went with the defaults, all of my database backups show up in “C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup”. I will leave them there for now and utilize them if something goes wrong later on.
Detach Databases
Next we’ll need to Detach these databases from the old SQL Server.
The database files will remain where they were. In my case I had them configured to sit in the default directory:
C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA
This process will detach the database from this instance of SQL server and locks the two related files: [database name].mdf and [database name]_log.LDF
I will repeat the detaching process until I get all 10 databases. 1 for my custom vGPS application, 4 related to BigFix, and the 5 related to TFS.
I now have 20 files to be moved over to the new SQL server. I’ll do this using robocopy. See my Robocopy how-to in a different article.
I’m going to move them straight over to the new SQL servers data drive… so I used the following robocopy command:![]()
robocopy ./ "\\vsql\e$\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA" -z –e
After the move, I wanted to position the transaction log files in a different “drive” than the database files… so I selected all of the _log files and moved them to a separate VHD which sits on a different physical RAID array than the OS and Data VHD’s. This is due to performance reasons related to BigFix.
Nearly an hour and a half later…Attaching Databases
I encountered a SQL error 5123 while selecting my mdf file. This is because the DATA directory is protected. I solved that by simply exploring to that directory and when asked for “admin” access to it, clicked yes. Then choosing OK to the above dialog went as expected…
Since my Data and Log files reside on two different VHD drives, I needed to specify the path to each file separately. The previous file selection automatically chose the correct Data file, and since my path matched between the Data VHD and the Logs VHD, I only needed to change the Drive letter.
Next, repeat that for each of the databases that are being moved over…
I opted not to perform this and simply recreate the couple of logins I needed. Since only 3 services are currently using the SQL Server, recreating them was quick and extremely easy.
I also opted to change the DNS alias the three services were connecting to. On my old server, both BigFix and SQL were running on the same box. I decided to separate them into two separate virtuals. vSQL will host my SQL server and allow all three services to connect into it. vBigFix81 will serve as my BigFix server running version 8.1. If I want to upgrade to 8.2 or beyond, I’ll simply create upgrade vBigFix81 to get upgrade documentation, then create a brand new vBigFix82 virtual, install 8.2 and change the BigFix DNS alias.
Now onto restoring each of my services…
Restoring Team Foundation Server
It made logical sense to restore this service first. My vGPS service will need alias’s updated in code which is stored on my TFS. So…
Turns out this is extremely easy. I only needed to update the web.config file under “C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services” with the new DNS alias for my SQL server. I found information on this from http://msdn.microsoft.com/en-us/library/ms404869(v=vs.80).aspx which pointed me to the Web.config for other reasons. While there I remember for many of my apps, I have to configure the database connection within this file. And done!
I was able to do that LIVE and the connection automatically repaired the db logins needed and established connections to the newly attached databases.
Restoring vGPS my Custom App
This is extremely easy as it was a simple matter of checking out my code from the TFS server, do a crtl-h to replace the alias, save and publish. Testing showed my DB user account wasn’t configured right, so I made the appropriate adjustments and all done. App works perfectly with the new SQL DNS alias.
Restoring BigFix
This one I take my time on because I really enjoy installing, customizing, and playing around with my companies program.
I created a brand new virtual 2008r2 server. Thus I had to do the usual build the virtual, install os, patch os, install pre-requisites, and migrate BigFix v8.1.
Please leave comments and questions below!
Posted in Installation, Microsoft, Technology, Windows 2008r2, tagged Installation, Microsoft, step-by-step, Windows 2008r2 on December 6, 2011 | Leave a Comment »
In this article, I’ll detail the installation
That’s it! I’m ready to start customizing, updating, and using my new operating system.
Please leave your comments and questions below!
Posted in Microsoft, Technology, Windows 8, tagged Microsoft, Networking, Windows 8 on December 5, 2011 | Leave a Comment »
My personal test lab has a fully functional Windows Domain in order to properly test my applications for corporate networks. As a result, I require all of my windows boxes, when possible, to be attached to my domain for further testing purposes. Since I’ve just added a few Windows 8 boxes, I had to “learn” the attachment process all over again.
After the system reboots, I’m presented with the customized disclaimer message I configured for my domain users… which was the expected results.
Now that my system is attached to the domain, I’ll want to log in with my Domain account…
Then I’m presented with the new default windows 8 screen…
But let’s say I want my domain account to be linked to my Windows Live account.
Warning… the tab button does not work on this user/pass screen… grrrr!
Please leave your comments and questions below!
Posted in Installation, Microsoft, Technology, Windows 8, tagged Installation, Microsoft, step-by-step, Windows 8 on December 4, 2011 | Leave a Comment »
I just completed downloading the Windows 8 Developer Preview with tools and have a tiny problem. Well, not so tiny… all of my blank DVD media is 4.7Gbs in size, however the Developers Preview with tools tops the 4.8Gbs mark. I was searching high and low for a larger blank DVD disk when I remembered a previous article from a few years back where my Netbook didn’t even have an optical drive and I turned to a USB thumb drive to save me. Time to do it again!
1. Format USB flash drive to NTFS format
Format the USB drive to NTFS format
2. Disk-Part the Drive
On the Start menu, navigate to the command prompt entry. Right-click and select Run as administrator.
Type
diskpart
list disk
Record the disk number of your USB flash drive.
Select the USB disk.
select disk X (X is the drive number of the USB flash drive)
List the current partition. Record the partition number.
list partition
Select the current partition and make it active.
select partition Y (Y is the partition number of the USB flash drive)
active
3. Prepare the OS files
Download Windows 8 Developers Preview ISO to your desktop.
Download and install PowerISO from http://poweriso.com/.
Right-click on the Windows 8 iso file and select Extract files. Extract the files to a folder (you can name the folder any name you want, but for illustration purpose, I name it win-8) in your desktop.
In your command prompt, cd to the windows 8 folder where you extracted the files.
cd Desktop/win-8 (Change the destination to the folder that you have extracted)
cd boot
bootsect /nt60 X: (X is the drive latter of your USB drive )
Now, copy all the files from the Windows 8 folder to the USB flash drive (of appropriate size of course, I’m using a Patriot 8Gb purchased for cheap off NewEgg.
Reboot the computer. Remember to change the first boot device to your USB drive in the BIOS.
You should be able to install Windows 8 from your USB flash drive now.
Posted in Microsoft, Technology, Windows 8, tagged Microsoft, News Feed, Task Manager, Windows 8 on December 4, 2011 | 1 Comment »
Not so good…
Launching the News tile left me trapped. The Done button does not do what I’d expect… which is to close the news feed and return me to the Tiles screen.
A classic Crtl-Alt-Del allowed me to access the task manager where I was able to kill the news feed.
While I’m here… let’s look at the improvements of one of my favorite tools… Task Manager.
After a tad bit of research, and button pushing… I found that closing out of any of the tile’d apps in Windows 8 was easy… push the Windows key on your keyboard and your back to the “Start” or tile screen.
(This forum was helpful in finding the information I needed!)
Leave your comments and questions below!