Easy way to fix “The trust relationship between this workstation and the primary domain failed”

This happens very often. Usually I was rejoining workstation/server to the domain. However it is easier way to do it.

  1. You have to log in to the server with a broken relationship.
  2. You have to know the name of Domain Controller (example: AD01)
$DomainCred = Get-Credential
Reset-ComputerMachinePassword -Server "AD01" -Credential $DomainCred

That’s all.

Sysvol folder doesn’t exist in Windows 2012/16 after deploying DC in AD 2008.

Hi guys,

After deployed Windows 2012/16 and promoting it to AD SYSVOL folder is not sync with Windows 2008. Problem this exists because Windows 2008 in default is using FSRM when Windows 2012/16 DFSR to sync SYSVOL.

Fix: migrating FRS to DFSR SYSVOL.
1. If you deployed Windows 2012 and have this problem please uninstall AD role from new server.

2. Go to your old AD server and raised domain level to at least Windows Sever 2008.

Set-ADDomainMode -Identity domain.name.com -DomainMode Windows2008Domain

FSRM to DFSR Migration
3. Migrate to Prepared State
Type: Dfsrmig /setglobalstate 1

Type: Dfsrmig /getmigrationstate

When all DCs are ready, the output will look like this:

4.Migrate to Redirected State
Type: Dfsrmig /setglobalstate 2

Type: Dfsrmig /getmigrationstate

When all DCs are ready, the output will look like this:

5.Migrate to Eliminated State
Type: Dfsrmig /setglobalstate 3

Type: Dfsrmig /getmigrationstate

When all DCs are ready, the output will look like this:

Your migration is complete.

5. Please install AD role on the new sever.

6. Check SYSVOL folder on the new server.

That’s all!

How to migration DHCP from Windows Server 2008 to 2012

Today simple tip how to migrate DHCP from Windows Server 2008 to 2012.

  • Log on to the old/existing DHCP server.
  • Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.
  • Type netsh dhcp server export C:\Users\Desktop\dhcp.txt all , and then press ENTER.
  • Install the DHCP role on the new (2012) DHCP server using Server Manager.
  • Copy the exported DHCP text file to the desktop of the new DHCP server.
  • Verify that the DHCP service is installed and started on the new DHCP server.
  • Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.
  • Type netsh dhcp server import C:\Users\Desktop\dhcp.txt all , and then press ENTER
  • Open DHCP console on the new server.
  • In the console tree, right-click DHCP.
  • Select “Authorize”.

That’s all folks.

How to uninstall Windows Server Essentials Experience

Hi,
Simple tip.

1. Cancel the Initial Configuration Wizard on the physical host
2. RUN -> Regedit
3. Remove the registry key telling the Wizard to auto-load:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Delete the entry named: EssentialsRoleConfigWizard

4. Open Server Manager and remove ALL roles/features, EXCEPT those specified below:
* ROLES left installed: Storage Services
* FEATURES left installed: .NET Framework 4.5(no ASP or WCF), SMB 1.0/CIFS, Graphical Management Tools, Server Graphical Shell, PowerShell 4.0, WoW64 Support
5. After removing roles/features and rebooting, you can go ahead and install the Hyper-V role then create your VM

Enjoy.

Windows Explorer is not recognizing correct space of the disk after extended it in the Disk Manager

Hi guys,

Today I am going to describe problem which happens very often on the virtual Windows machines, however I have seen people complying about this problem on the physical servers.

Problem: Windows is not recognizing correct space of the disk after extended it in the Disk Manager.
Than you noticed that yours disk needs more space, after extended space of the virtual disk in the Hyper-v you went to the disk manager and extend the disk. However Windows is still not recognizing space which you just added it.

Extended disk size

Easy fix it for this.
Go to command prompt and enter the following commands:


C:\DISKPART
C:\DISKPART>List Volume
C:\DISKPART>select volume # (select volume which has problem with recognizing space)
C:\DISKPART>extend filesystem
C:\DISKPART>exit

Screenshot 2016-01-18 10.10.27

That’s all.

Good luck.