1
1
---
2
2
external help file : Microsoft.Windows.ServerManager.Migration.dll-Help.xml
3
3
Module Name : ServerMigration
4
- ms.date : 12/06/2017
4
+ ms.date : 04/29/2022
5
5
online version : https://docs.microsoft.com/powershell/module/servermigration/import-smigserversetting?view=windowsserver2012r2-ps&wt.mc_id=ps-gethelp
6
6
schema : 2.0.0
7
7
title : Import-SmigServerSetting
@@ -35,7 +35,7 @@ For online Help about the Windows Server Migration Tools cmdlets, see http://go.
35
35
36
36
### EXAMPLE 1
37
37
```
38
- PS C:\> Import-SmigServerSetting -Feature " DHCP" -User All -Group -Path " c:\temp\store" -Verbose
38
+ Import-SmigServerSetting -FeatureID ' DHCP' -User All -Group -Path ' c:\temp\store' -Verbose
39
39
```
40
40
41
41
This sample command imports the Dynamic Host Configuration Protocol (DHCP) Server, and all other Windows features required by this technology.
@@ -50,7 +50,15 @@ By using the -Verbose parameter, the command also displays detailed information
50
50
51
51
### EXAMPLE 2
52
52
```
53
- PS C:\> Import-SmigServerSetting -IPConfig All -SourcePhysicalAddress "00-13-D3-F7-A1-3A","00-13-D3-F7-A1-4A" -TargetPhysicalAddress "11-13-D3-F7-A1-3A","11-13-D3-F7-A1-4A" -Path "c:\temp\store" -Password (Read-Host "Enter a Password:" -AsSecureString)-Verbose
53
+ $parameters = @{
54
+ IPConfig = 'All'
55
+ SourcePhysicalAddress = '00-13-D3-F7-A1-3A','00-13-D3-F7-A1-4A'
56
+ TargetPhysicalAddress = '11-13-D3-F7-A1-3A','11-13-D3-F7-A1-4A'
57
+ Path = 'c:\temp\store'
58
+ Password = (Read-Host -Prompt 'Enter a Password:' -AsSecureString)
59
+ Verbose = $true
60
+ }
61
+ Import-SmigServerSetting @parameters
54
62
```
55
63
56
64
This sample command imports the IP configuration from the migration store specified at c:\temp\store, and applies it to the local server.
@@ -65,8 +73,8 @@ By using the -Verbose parameter, the command also displays detailed information
65
73
66
74
### EXAMPLE 3
67
75
```
68
- PS C:\> $c = Get-SmigServerFeature -Path " c:\temp\store"
69
- PS C:\> Import-SmigServerSetting -Feature $c -Path " c:\temp\store" -Verbose
76
+ $c = Get-SmigServerFeature -Path ' c:\temp\store'
77
+ Import-SmigServerSetting -FeatureID $c -Path ' c:\temp\store' -Verbose
70
78
```
71
79
72
80
This sample command imports a set of Windows features that have already been retrieved by using the Get-SmigServerFeature cmdlet.
@@ -83,7 +91,7 @@ By using the -Verbose parameter, the command also displays detailed information
83
91
84
92
### EXAMPLE 4
85
93
```
86
- PS C:\> Get-SmigServerFeature -Path " c:\temp\store" | Import-SmigServerSetting -Path " c:\temp\store" -Verbose
94
+ Get-SmigServerFeature -Path ' c:\temp\store' | Import-SmigServerSetting -Path ' c:\temp\store' -Verbose
87
95
```
88
96
89
97
This sample command pipes a set of features that have already been retrieved by using the Get-SmigServerFeature cmdlet to the Import-SmigServerSetting cmdlet.
@@ -100,8 +108,8 @@ By using the -Verbose parameter, the command also displays detailed information
100
108
101
109
### EXAMPLE 5
102
110
```
103
- PS C:\> $pass = ConvertTo-SecureString -String " password" -AsPlainText -Force
104
- PS C:\> Import-SmigServerSetting -User All -Password $pass -Path " c:\store" -Verbose
111
+ $pass = ConvertTo-SecureString -String ' password' -AsPlainText -Force
112
+ Import-SmigServerSetting -User All -Password $pass -Path ' c:\store' -Verbose
105
113
```
106
114
107
115
In this example, the first command convert the store encryption password, represented by "password," to a secure string, and store it in the variable $pass.
0 commit comments