-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script para migração de DFS com Storage Migration Service.ps1
78 lines (28 loc) · 1.86 KB
/
Script para migração de DFS com Storage Migration Service.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Script para migração de DFS com Storage Migration Service - Créditos Gabriel Luiz - www.gabrielluiz.com #
# Servidor Orquestrador
# Instalação do Gerenciamento Remoto do DFS e Storage Migration Service.
Install-windowsfeature RSAT-DFS-Mgmt-Con
Install-windowsfeature SMS -IncludeAllSubFeature -IncludeManagementTools
# Para acesso remoto ao servidor utiize o comando abaaixo:
enter-pssession HOSTNAME
# Para reniciar o remoto ao servidor remotamente utiize o comando abaaixo:
restart-computer
# Servidor DFS antigo
# Remover a função de replicação DFS.
remove-windowsfeature FS-DFS-Replication
# Observação: Também pode se utilizar o comando Uninstall-WindowsFeature.
# Servidor DFS novo
# Instalação das funções DFS Replication e Namespace.
Install-windowsfeature FS-DFS-Replication
Install-windowsfeature FS-DFS-Namespace
# Storage Migration Service
# Se caso o Storage Migration Service Proxy não se resistrar execute o comando abaixo no servidor Orquestrador, informando no campo -ComputerName o FQDN do servidor de destino.
Register-SmsProxy -ComputerName DFS1WS2022.gabrielluiz.lan
<#
Referências:
https://learn.microsoft.com/en-us/powershell/module/servermanager/install-windowsfeature?view=windowsserver2022-ps&WT.mc_id=5003815
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enter-pssession?view=powershell-7.2&WT.mc_id=5003815
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/restart-computer?view=powershell-7.2&WT.mc_id=5003815
https://learn.microsoft.com/en-us/powershell/module/servermanager/uninstall-windowsfeature?view=windowsserver2022-ps&WT.mc_id=5003815
https://learn.microsoft.com/pt-br/windows-server/storage/storage-migration-service/known-issues?WT.mc_id=5003815
#>