Windows

How to demote a Windows Server 2012 Domain Controller

In this short write up I will go over steps to demote a Server 2012 domain controller.

If you have worked in Active Directory and Windows Domain Administration over the years you may recall that in previous version of Windows Server that you would use the command line tool of ‘DCPROMO’ to promote or demote a server. Since Server 2012, the use of DCPROMO has been deprecated. In fact, if you attempt to use it you will be inform of this via the Active Directory Domain Service Installed.

In Server 2012 and later versions the use of Server Manager or PowerShell is required to promote / demote a server to/from a Domain Controller (DC). Below I provide steps on how to demote a server with some illustration along the way. Also, here is a quick YouTube video on the process: https://youtu.be/sBK2_APaDdg

Log into the domain controller you intend on demoting and Launch the Server Manager, select the Manage drop down menu, select Remove roles and features.

On the server selection page, select the desired server from the pool.

On the Remove Roles and Features Wizard, un-tick the Active Directory Domain Services box

The Remove Roles and Features dialog box will open. Click Remove features

On the Remove Roles and Features Wizard dialog box Validation Results box will appear. The domain controller must be demoted before continuing. Click on Demote this domain controller.

On the Active Directory Domain Services Configuration Wizard enter the required credentials to demote this server, click Next.

You will have several removal options. From the forced remove of failed domain member, to removing of the last domain in your forest. Make the selections which is appropriate for your remove task and click Next

Finally you will arrive on the New Administrator Password, enter and confirm the new local administrator account password, click Next.

On the Review Options verify the information is correct and click Demote.

After the server has restarted it will no longer be a domain controller

And that is it.

Ubuntu Linux for Windows 10 Released On Windows App Store

We can now get Ubuntu Linux for Windows 10 from the Windows App Store. Hows that for an amazing new feature. Simply open the Windows store and search for “Ubuntu”. I would be remiss if i didn’t mention that Windows Insiders Members get first go at this new application.

Also to note that this is not a full version of the Linux Operating System “Ubuntu”. This application is mainly utilizing terminal via bash with included gui-less utilities such as  ssh, git, apt, etc…

  • Navigate to Control Panel > Program and Features
  • Select Turn Windows features on or off
  • Select Windows Subsystems for Linux and Click OK
  • Reboot

 

 

 

Tech Short: How to uninstall Windows 10

Of of my visitors wrote me asking how to uninstall Windows 10. I provided the steps in my response so I am sharing them here.

Please *note* that these steps only apply to those upgrade installations of Windows 10.

  • Open up Settings via the Start menu
  • Click Update & Security and then Recovery
  • Under the Go back to Windows 7 or Go back to Windows 8, click Get started

Follow the steps through the rest of the process to get back to your previous version of Windows.

If you used this post to assist you please leave me a comment on why you uninstalled, I would like to hear about it.

 

 I hope you enjoyed this techshort, thanks for visiting – jermal

HowTo: Export VMware vSphere Sessions

I moved myself to a new workstation and followed my previous steps to export my putty sessions.  This time around I am exporting my Virtual Infrastructure Client settings

  1. From the run prompt (shortcut keys: WinKey+R) enter regedit,, this opens the registry editor
  2. Locate the following branch: HKEY_CURRENT_USER\SOFTWARE\VMware
  3. On the File menu, click Export
  4. In File name, enter a name for the registry file.
  5. Choose a location to save the file; You can now copy this file and import your the sessions data on the new system.

This saves me a lot of time.

 

 

I hope you enjoyed this post, thanks for visiting – jermal

Tech-Short: Delete Virtual Switch in Hyper-V

And this happened . . .

I was introducing a change the Virtual Switch Manager of my Hyper-V host, where I attempted to give guest machines bridged network access.  After making my change I had lost access to the server.  On a good note, the server picked up a new address its virtual interface that I created.  However I am unable to connect to the Hyper-V services so I am taking steps to delete the interface and review my steps.

To do this I first attempted the following things:

Issued the command: Get-VMSwitch to list the name of the network adapter interface. I then attempted to remove the interface by entering:

After being prompted and selecting Y for “Yes” I was given an error:

Remove-VMSwitch : Failed while removing virtual Ethernet switch.
The virtual switch ‘Default VLAN’ cannot be deleted because it is being used
by running virtual machines or assigned to child pools.
The operation cannot be performed while the object is in use.
At line:1 char:16
+ Get-VMSwitch | Remove-VMSwitch
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceBusy: (Microsoft.HyperV.PowerShell.VMTas
k:VMTask) [Remove-VMSwitch], VirtualizationOperationFailedException
+ FullyQualifiedErrorId : ObjectInUse,Microsoft.HyperV.PowerShell.Commands
.RemoveVMSwitchCommand

This error was thrown because of the virtual machine(s) I have running so I needed stop it (or them).

A quick issue of the command Get-VM to return the full name of the VM running in this lab followed by a quick issue of:

One all VM guests are off I was able to reissue the command Get-VMSwitch | Remove-VMSwitch at which point the previous IP became active again. A quick restart of the Hyper-V Server host and I was once again able to connect.

Now its time to learn what I did incorrectly to cause this issue.