Category Archives: Microsoft

Locate a Certificate Authority in your Active Directory environment

Here is a quick command how to find a Certificate Authority in Active Directory.  This is helpful if you have many domain controllers and are not sure where the Certificate Services role is installed on. Windows Server 2008 R2 / … Continue re...

Posted in Microsoft | Tagged , | Leave a comment

Migrating Windows Server 2012 R2 FSMO roles to another DC

Here are quick steps how to transfer FSMO roles from one domain controller to another, In this case I AM moving the roles  from one Windows Server 2012 R2 domain controller to another 2012 R2.  I have had to do … Continue reading →...

Posted in Microsoft | Tagged , , , | 1 Comment

How to kill a windows service which is stuck in a “Stopping” state

I recently ran into an issue where a service got stuck in the “Stopping” state.  When I tried to stop it through the command line I received the following error.  I had to kill it before I could start it … Continue reading →...

Posted in Microsoft | Tagged , , , , | Leave a comment

Disable a windows service from the command line

A quick command that I have used in a script to change the status of a service in Windows. C:\> sc config “Spooler” start= disabled [SC] ChangeServiceConfig SUCCESS The start options are start= <boot|system|auto|demand|disabled|dela...

Posted in Microsoft | Tagged , , , | Leave a comment

Import a certificate to “Trusted Root Certification Authorities” using command prompt

Issue I recently ran into an issue where mmc.exe was crashing when adding the certificates snap-in and I was not able to import a rootCA certificate into the “Trusted root Certificate Authorities”.  I received the following error when ad...

Posted in Microsoft | Tagged , , , , , , | 1 Comment

Extend a disk with Diskpart

Adding it here for quick reference -Disk must have a drive letter -In Windows Server 2003 the disk cannot be a system OS disk, shut down and mount it to another OS as a second disk. Commands Diskpart List volume … Continue reading →...

Posted in Microsoft | Tagged | Leave a comment

File server migration using Robocopy

I recently was tasked with moving one of our file servers from one physical server to another.  The file server had a bunch of files/directories with different permissions used by our finance/IT/Legal team. There are two things to keep in … C...

Posted in Microsoft, Windows | Tagged , , , , , | 4 Comments

Create a pfx file with a certificate chain

I ran into an issue where an application would not accept the pfx file that I created for a web server.  I used the key file and the certificate file but for some reason it did not work. I had … Continue reading →...

Posted in Microsoft, Windows | Tagged , | Leave a comment

How to configure database Mirroring in SQL Server 2014

There are many different ways that you can configure SQL for high availability, mirroring, failover cluster using shared disks, AlwaysOn, log shipping, replication.  This guide describes how to configure mirroring in SQL Server 2014. Database Mirro...

Posted in Database, Microsoft | Tagged , , , | 1 Comment

Metadata cleanup after a failed domain controller

About Metadata Cleaning up the metadata is required whenever you are not able to cleanly remove a domain controller from active directory. This is usually performed when a domain controller crashes and is not coming back or when demoting a … C...

Posted in Microsoft | Tagged , , , | Leave a comment