Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

Migrating Server Roles

Posted on February 23, 2021 By rich No Comments on Migrating Server Roles

This guide will demonstrate how to migrate a role from one server to another; for this example we will migrate DHCP but this method can be amended to suit other roles. You should always follow Microsoft’s guides and checklists when migrating roles.

On source machine
Create a shared folder on the source machine called “Mig”

On destination machine
Next if not already, intsall Windows Server Migration Tools

Import-Module ServerManager
Add-WindowsFeature Migration

Cd
cd C:windowsSystem32ServerMigrationTools
dir

smigdeploy.exe /package /architecture amd64 /os WS08 /path \sourceserverMig

On source machine
cd c:Mig<folder-name of your deployment>

.Smigdeploy.exe

Before continuing
Make sure the role being migrated is Installed on the destination server.
Make a note of the source NIC MAC address = getmacgetmac

Stop Service on Destinartion server
Stop-Serve DHCP
Check with that it stopped with:
Get-Service DHCP

Export-SmigServerSetting -FeatureID DHCP -Group -IPConfig -path C:StorageMig -verbose
Prompted with a password.
Export-SmigServerSetting

Remove DHCP from AD

netsh DHCP delete server.domain.local 10.10.10.10

On Destination server

We must import the snapin before we can use the Import-SmigServerSetting cmdlet.

Add-PSSnapin Microsoft.windows.servermanager.migration

Import-Smigserversetting -FeatureID DHCP -IPConfig ALL -SourcePhysicalAddress <M-A-C-A-D-D-R-E-S-S> -TargetPhysicalAddress <M-A-C-A-D-D-R-E-S-S> -Path \sourceserverc$StorageMig -Verbose

Start-Service DHCP
netsh DHCP add server newserver.domain.local 10.10.10.20

Post navigation

❮ Previous Post: How to clear a print queue that won’t clear
Next Post: How to disable SIP ALG on a Draytek router ❯

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Subscribe to our newsletter!

Recent Posts

  • How to implement a lightning-fast ransomware playbook
  • How to achieve defence in depth in your business
  • How to implement a SecOps team phishing response plan
  • How to block an Office 365 Sign-in correctly
  • Microsoft finally patched serious Exchange 0-day over a month old!

Recent Comments

    Archives

    • November 2022
    • July 2021
    • March 2021
    • February 2021

    Categories

    • Cyber Security
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2023 .

    Theme: Oceanly News Dark by ScriptsTown