Follow these simple steps to convert a domain to a federated domain. Take precaution to run the windows powershell from the desktop shortcut. Right click the desktop shortcut and 'Run as administrator'.