Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

Migrating Server Roles with SmigDeploy

Posted on February 23, 2021 By rich No Comments on Migrating Server Roles with SmigDeploy
Get-WindowFeature - Name migration
Install-WindowsFeature -Name migration
cd windowssystem32servermigrationtools
.smigdeploy.exe /package /architecture /amd64 /os WS12R2 /path C:Migration
#copy the Smig files to the Source Machine
Copy-Item -Path C:MigrationSMT_ws12r2_amd64 -Destination \srv2012-labc$Migration

.NET 3.5 is required on the source machine for this to work, so the first step (if it is not already installed) is to install it.

#Check is .NET3.5 is installed
Get-WindowsFeature -Name net-framework-core
#Install .NET 3.5 if required. You will need a 2012R2 ISO mounted for the source files
Install-WindowsFeature net-framework-core -source D:sourcessxs
#Import smig cmdlets into session
Add-PSSnapin Microsoft.Windows.ServerManager.Migration
#Stop DHCP (the role we're migrating)
Stop-Service -Name DHCP
#View roles and features eligible for migration
Get-SmigServerFeature
#Export the migration data
Export-SmigServerSetting -FeatureID DHCP -Path c:migrationDHCPMigration -verbose
#Finally copy this exported data back over to the target server
Copy-Item -Path C:migrationDHPCMigration -Destination \srv2016-labc$migration

Back over on the Target server we now need to Import the settings

#Import smig cmdlets into session
Add-PSSnapin Microsoft.Windows.ServerManager.Migration
#Install DHCP role and import settings
Import-SmigServerSetting -FeatureID DHCP -Path C:migrationDHCPMigration -verbode -force

 

Post navigation

❮ Previous Post: Using PowerShell to Add Drivers / Packages / Install Roles and Features in a .wim file
Next Post: Windows Store is missing in Windows 10 ❯

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