forked from nickrod518/Migrate-WindowsUserProfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.ps1
63 lines (50 loc) · 2.34 KB
/
Config.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
# Default configuration options - make edits here
# Default domain to use for profile creation
$DefaultDomain = 'DOMAIN'
# Default accounts to exclude from migration in the form of "Domain\UserName"
$DefaultExcludeProfile = @(
"$ENV:Computername\default*",
"NT Service\*"
)
# By default local accounts that don't exist on the new computer will not be created for security measures
# To create these accounts set this to true
$DefaultLACreate = $false
# By default local accounts that are created from the previous option will be disabled for security measures
# To enable these accounts set this to true
$DefaultLACEnable = $false
# Default password for accounts created by previous two options
$DefaultLAPassword = 'P@ssw0rd!'
# Use this to disallow migrations on IP's other than what's specified
$ValidIPAddress = '*'
# Path to store the migration data on the new computer, directory will be created if it doesn't exist
$MigrationStorePath = 'C:\TEMP\MigrationStore'
# Default user profile items to exclude from migration, more info found here:
# https://technet.microsoft.com/en-us/library/cc722303(v=ws.10).aspx
$DefaultIncludeAppData = $true
$DefaultIncludeLocalAppData = $false
$DefaultIncludePrinters = $true
$DefaultIncludeRecycleBin = $false
$DefaultIncludeMyDocuments = $true
$DefaultIncludeWallpapers = $true
$DefaultIncludeDesktop = $true
$DefaultIncludeFavorites = $true
$DefaultIncludeMyMusic = $true
$DefaultIncludeMyPictures = $true
$DefaultIncludeMyVideo = $true
# Get USMT binary path according to OS architecture. If you used the zip provided, unzip in the same directory as this script
if ((Get-WmiObject Win32_OperatingSystem).OSArchitecture -eq '64-bit') {
$USMTPath = "$ScriptRoot\USMT\amd64"
} else {
$USMTPath = "$ScriptRoot\USMT\x86"
}
# Define whether to continue on errors such as file allready exists during restore or read issue during capture.
$ContinueOnError = $True
#Define how to handle EFS format files. Options are abort (default behaviour), skip, decryptcopy, copyraw
$EFSHandling = "abort"
# Users to additionially send every migration result to
$DefaultEmailEnabled = $false
$DefaultEmailSender = 'MigrationAlert@company.com'
$DefaultEmailRecipients = @('my.email@company.com')
$DefaultSMTPServer = 'smtp.domain.local'
# LastLogin query when gathering profiles - disabling will speed up profile search
$QueryLastLogon = $false