You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ModuleChangelog.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,15 @@
1
+
## 2.7.10
2
+
3
+
Release Date: January 3, 2025
4
+
5
+
#### RELEASE NOTES
6
+
```
7
+
* This release prevents ADMU from migrating if one of the main user folders (Desktop, Downloads, Documents, Pictures, Music, Videos, Favorites) are redirected to network shared path
8
+
```
9
+
#### Bug Fixes:
10
+
```
11
+
* Fix issue when migrating a user with one of their main user folders are redirected to a network path. ADMU will now throw an error and prevent migration if any of the primary user folders (Desktop, Downloads, Documents, Pictures, Music, Videos, Favorites) are redirected to network shared path
Option to set the windows default login user to the migrated user post-migration. This parameter is not required and will default to $true (the next login window user will be the migrated user). Set to $false if you'd like to disable this functionality during migration.
265
+
266
+
Option to set the windows default login user to the migrated user post-migration. This parameter is not required and will default to $true (the next login window user will be the migrated user). Set to $false if you'd like to disable this functionality during migration.
267
+
268
+
```yaml
269
+
Type: System.Boolean
270
+
Parameter Sets: cmd
271
+
Aliases:
272
+
273
+
Required: False
274
+
Position: Named
275
+
Default value: None
276
+
Accept pipeline input: False
277
+
Accept wildcard characters: False
278
+
```
279
+
280
+
### -AdminDebug
281
+
282
+
Option to display detailed messages during migration. This parameter is optional, but if set to $true, the CLI will show verbose output during the migration process
283
+
284
+
```yaml
285
+
Type: System.Boolean
286
+
Parameter Sets: cmd
287
+
Aliases:
288
+
289
+
Required: False
290
+
Position: Named
291
+
Default value: None
292
+
Accept pipeline input: False
293
+
Accept wildcard characters: False
294
+
```
295
+
296
+
### -ValidateUserShellFolder
297
+
298
+
Option to bypass User Shell Folder validation. When set to `$false`, the migration will not verify whether folders (Desktop, Downloads, Documents, Videos, Pictures, Music, Favorites) are redirected to another location, such as a network shared folder (e.g., `\\192.168.50.78\SharedFolder\USERNAME\Desktop`). Use this parameter with caution. After migration, the user may encounter a shared folder error and will need to provide account credentials to restore their shared folders
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
throw"Main user folders are redirected, exiting..."
811
+
} elseif ($ValidateDirectory-eq$false) {
812
+
Write-ToLog"Skipping User Shell Folder Validation..."
813
+
} else {
814
+
Write-ToLog"Main user folders are default for Usersid: $($UserSid), continuing..."
815
+
}
802
816
}
803
817
}
804
818
@@ -1745,6 +1759,10 @@ function Write-AdmuErrorMessage {
1745
1759
1746
1760
$Script:ErrorMessage="User Creation Error. Click the link below for troubleshooting information."
1747
1761
}
1762
+
"user_folder_redirection_error" {
1763
+
Write-ToLog-Message:("User Folder Redirection Error: One of the user's main folder (Desktop, Downloads, Documents, Favorites, Pictures, Videos, Music) path is redirected. Verify that the user's main folders path are set to default and not redirected to another path (ie. Network Drive). Please refer to this link for more information: https://github.com/TheJumpCloud/jumpcloud-ADMU/wiki/troubleshooting-errors") -Level Error
1764
+
$Script:ErrorMessage="User Folder Redirection Error. Click the link below for troubleshooting information."
1765
+
}
1748
1766
Default {
1749
1767
Write-ToLog-Message:("Error occured, please refer to this link for more information: https://github.com/TheJumpCloud/jumpcloud-ADMU/wiki/troubleshooting-errors") -Level Error
1750
1768
@@ -1847,6 +1865,74 @@ function Get-DomainStatus {
1847
1865
# Return both statuses
1848
1866
return$AzureADStatus,$LocalDomainStatus
1849
1867
}
1868
+
1869
+
# Function to validate that the user main folders are default and not redirected
1870
+
functionTest-UserFolderRedirect {
1871
+
param (
1872
+
[Parameter(Mandatory=$true)]
1873
+
[System.String]
1874
+
$UserSid
1875
+
)
1876
+
begin {
1877
+
if ("HKEY_USERS"-notin (Get-psdrive|select-object name).Name) {
# Support doc for personal folders: https://support.microsoft.com/en-us/topic/operation-to-change-a-personal-folder-location-fails-in-windows-ffb95139-6dbb-821d-27ec-62c9aaccd720
0 commit comments