Skip to content

Commit cee0cdd

Browse files
authored
Merge branch 'v2.4.3' into SA-3525-fix-azure-status-condition
2 parents 04b4eef + ffac6a1 commit cee0cdd

File tree

8 files changed

+49
-13
lines changed

8 files changed

+49
-13
lines changed

Deploy/ADMU.ps1

2.27 KB
Binary file not shown.

ModuleChangelog.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 2.4.3
2+
3+
Release Date: Aug 23,2023
4+
5+
#### RELEASE NOTES
6+
7+
```
8+
* Fixed an issue with Windows 10 devices, where migrated users would no longer be able to access their start menu and search bars.
9+
* Remove Microsoft Visual C++ 2013 dependencies that are not needed for JCAgent installation.
10+
* Fixed incorrect agent binary name causing incorrect installation checks.
11+
* Add validation of JCAgent using Service instead of file path for installation.
12+
* Fixed an issue when Migrating from AzureAD users where their AppxPackages were not properly identified.
13+
* Fixed an issue when leaving an AzureAD domain where the tool would not leave the domain.
14+
```
15+
116
## 2.4.2
217

318
Release Date: Aug 4,2023

jumpcloud-ADMU/Exe/gui_jcadmu.exe

-6.79 KB
Binary file not shown.

jumpcloud-ADMU/Exe/uwp_jcadmu.exe

-10.3 KB
Binary file not shown.

jumpcloud-ADMU/JumpCloud.ADMU.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>JumpCloud.ADMU</id>
5-
<version>2.4.2</version>
5+
<version>2.4.3.3100</version>
66
<description>Powershell Module to run JumpCloud Active Directory Migration Utility.</description>
77
<authors>JumpCloud Solutions Architect Team</authors>
88
<owners>JumpCloud</owners>

jumpcloud-ADMU/JumpCloud.ADMU.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: JumpCloud Solutions Architect Team
55
#
6-
# Generated on: 8/4/2023
6+
# Generated on: 8/22/2023
77
#
88

99
@{
@@ -12,13 +12,13 @@
1212
RootModule = 'JumpCloud.ADMU.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.4.2'
15+
ModuleVersion = '2.4.3'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
1919

2020
# ID used to uniquely identify this module
21-
GUID = '7aac8ab6-9543-4dab-ab4d-a956e7d31588'
21+
GUID = '1fbab859-7a05-43c5-9cc8-6400ca9c5c12'
2222

2323
# Author of this module
2424
Author = 'JumpCloud Solutions Architect Team'

jumpcloud-ADMU/Powershell/Form.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function show-mtpSelection {
143143
<Window
144144
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
145145
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
146-
Title="JumpCloud ADMU 2.4.2"
146+
Title="JumpCloud ADMU 2.4.3"
147147
WindowStyle="SingleBorderWindow"
148148
ResizeMode="NoResize"
149149
Background="White" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Visible" Width="1000" Height="520">

jumpcloud-ADMU/Powershell/Start-Migration.ps1

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ Function Start-Migration {
14011401
Begin {
14021402
Write-ToLog -Message:('####################################' + (get-date -format "dd-MMM-yyyy HH:mm") + '####################################')
14031403
# Start script
1404-
$admuVersion = '2.4.2'
1404+
$admuVersion = '2.4.3'
14051405
Write-ToLog -Message:('Running ADMU: ' + 'v' + $admuVersion)
14061406
Write-ToLog -Message:('Script starting; Log file location: ' + $jcAdmuLogFile)
14071407
Write-ToLog -Message:('Gathering system & profile information')
@@ -1499,6 +1499,7 @@ Function Start-Migration {
14991499
$netBiosName = Get-NetBiosName
15001500
$WmiComputerSystem = Get-WmiObject -Class:('Win32_ComputerSystem')
15011501
$localComputerName = $WmiComputerSystem.Name
1502+
$systemVersion = Get-ComputerInfo | Select-Object OSName, OSVersion, OsHardwareAbstractionLayer
15021503
$windowsDrive = Get-WindowsDrive
15031504
$jcAdmuTempPath = "$windowsDrive\Windows\Temp\JCADMU\"
15041505
$jcAdmuLogFile = "$windowsDrive\Windows\Temp\jcAdmu.log"
@@ -1704,6 +1705,27 @@ Function Start-Migration {
17041705
$admuTracker.copyRegistry.fail = $true
17051706
break
17061707
}
1708+
1709+
# for Windows 10 devices, force refresh of start/ search app:
1710+
If ($systemVersion.OSName -Match "Windows 10") {
1711+
Write-ToLog -Message:('Windows 10 System, removing start and search reg keys to force refresh of those apps')
1712+
$regKeyClear = @(
1713+
"SOFTWARE\Microsoft\Windows\CurrentVersion\StartLayout",
1714+
"SOFTWARE\Microsoft\Windows\CurrentVersion\Start",
1715+
"SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings",
1716+
"SOFTWARE\Microsoft\Windows\CurrentVersion\Search"
1717+
)
1718+
1719+
foreach ($key in $regKeyClear) {
1720+
if (reg query "HKU\$($NewUserSID)_admu\$($key)") {
1721+
write-ToLog -Message:("removing key: $key")
1722+
reg delete "HKU\$($NewUserSID)_admu\$($key)" /f
1723+
} else {
1724+
write-ToLog -Message:("key not found $key")
1725+
}
1726+
}
1727+
}
1728+
17071729
reg copy HKU\$($SelectedUserSID)_Classes_admu HKU\$($NewUserSID)_Classes_admu /s /f
17081730
if ($?) {
17091731
Write-ToLog -Message:('Copy Profile: ' + "$newUserProfileImagePath/AppData/Local/Microsoft/Windows/UsrClass.dat" + ' To: ' + "$oldUserProfileImagePath/AppData/Local/Microsoft/Windows/UsrClass.dat")
@@ -1955,14 +1977,19 @@ Function Start-Migration {
19551977
New-Item -ItemType Directory -Force -Path $path
19561978
}
19571979
$appxList = @()
1980+
1981+
# Get Azure AD Status
1982+
19581983
$ADStatus = dsregcmd.exe /status
19591984
foreach ($line in $ADStatus) {
19601985
if ($line -match "AzureADJoined : ") {
19611986
$AzureADStatus = ($line.trimstart('AzureADJoined : '))
19621987
}
19631988
}
1989+
19641990
Write-ToLog "AzureAD Status: $AzureADStatus"
19651991
if ($AzureADStatus -eq 'YES' -or $netBiosName -match 'AzureAD') {
1992+
19661993
# Find Appx User Apps by Username
19671994
try {
19681995
$appxList = Get-AppXpackage -user (Convert-Sid $SelectedUserSID) | Select-Object InstallLocation
@@ -1971,7 +1998,7 @@ Function Start-Migration {
19711998
}
19721999
} else {
19732000
try {
1974-
$appxList = Get-AppXpackage -user $SelectedUserSID | Select-Object InstallLocation
2001+
$appxList = Get-AppXpackage -user (Convert-Sid $SelectedUserSID) | Select-Object InstallLocation
19752002
} catch {
19762003
Write-ToLog -Message "Could not determine AppXPackages for selected user, this is okay. Rebuilding UWP Apps from AllUsers list"
19772004
}
@@ -2027,12 +2054,6 @@ Function Start-Migration {
20272054
#region Leave Domain or AzureAD
20282055

20292056
if ($LeaveDomain -eq $true) {
2030-
# Get Azure AD Status
2031-
foreach ($line in $AzureADInfo) {
2032-
if ($line -match "AzureADJoined : ") {
2033-
$AzureADStatus = ($line.trimstart('AzureADJoined : '))
2034-
}
2035-
}
20362057
if ($AzureADStatus -match 'YES') {
20372058
# Check if user is not NTAUTHORITY\SYSTEM
20382059
if (([bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).user.Value -match "S-1-5-18")) -eq $false) {

0 commit comments

Comments
 (0)