Skip to content

Logging

Joe Workman edited this page Sep 13, 2021 · 6 revisions

ADMU will output local logs to the C:\windows\temp\JCADMU.log file. The ADMU log contains details on actions, errors and information.

Below is a sample log of a ADMU conversion of domain user Alec Baldwin, this system has a broken secure channel

Comments in the logs are noted by ##LOG NOTES## description

In this case JCADB2\alec.baldwin with SID "S-1-5-21-156575111-3938707022-2951340204-1106" is set to be converted to the local user "alec.baldwin"

2021-02-25 14:19:10 INFO: ####################################25-Feb-2021 14:19####################################
2021-02-25 14:19:10 INFO: Script starting; Log file location:
2021-02-25 14:19:10 INFO: Gathering system & profile information
2021-02-25 14:19:24 INFO: The Selected Migration user is: S-1-5-21-156575111-3938707022-2951340204-1106
2021-02-25 14:19:25 INFO: valid sid returning sid
##LOG NOTES## The user's username or SID was found to be valid on the system
2021-02-25 14:19:25 INFO: Creating JCADMU Temporary Path in C:\Windows\Temp\JCADMU\
2021-02-25 14:19:25 INFO: JOEWORKMAN181C is currently Domain joined to jcadb2.local NetBiosName is JCADB2
2021-02-25 14:19:25 INFO: Windows Profile "S-1-5-21-156575111-3938707022-2951340204-1106" is going to be converted to "JOEWORKMAN181C\alec.baldwin"
2021-02-25 14:19:25 INFO: Creating New Local User JOEWORKMAN181C\alec.baldwin
##LOG NOTES## alec.baldwin.000 is first added. The user is added as .000 since a user with the same profile path exists.
2021-02-25 14:19:26 INFO: Creating Backup of User Registry Hive
##LOG NOTES## Registry NTUSER.DAT.BAK & UsrClass.dat.bak files are added made
2021-02-25 14:19:26 INFO: Verifying Registry ACLs can be copied
2021-02-25 14:19:26 INFO: Creating HKLM Registry Entries
2021-02-25 14:19:27 INFO: Setting key at [KeyPath:SOFTWARE\Microsoft\Active Setup\Installed Components\ADMU-AppxPackage]
2021-02-25 14:19:27 INFO: Setting value with properties [name:IsInstalled, value:1, value type:DWord]
2021-02-25 14:19:27 INFO: Setting value with properties [name:StubPath, value:uwp_jcadmu.exe, value type:String]
2021-02-25 14:19:27 INFO: Setting value with properties [name:Version, value:1,0,00,0, value type:String]
2021-02-25 14:19:27 INFO: Setting value with properties [name:Locale, value:*, value type:String]
2021-02-25 14:19:27 INFO: Setting new profile permissions
2021-02-25 14:19:36 INFO: New User Profile Path: C:\Users\alec.baldwin.000 New User SID: S-1-5-21-3130314204-525621684-3957336222-1001
2021-02-25 14:19:36 INFO: Old User Profile Path: C:\Users\alec.baldwin Old User SID: S-1-5-21-156575111-3938707022-2951340204-1106
2021-02-25 14:19:36 INFO: Load Profile: C:\Users\alec.baldwin.000/NTUSER.DAT
2021-02-25 14:19:36 INFO: Load Profile: C:\Users\alec.baldwin.000/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:19:36 INFO: Load Profile: C:\Users\alec.baldwin/NTUSER.DAT
2021-02-25 14:19:36 INFO: Load Profile: C:\Users\alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
##LOG NOTES## copy the registry hive data from old user to new profile
##LOG NOTES## copying reg keys and values from alec.badwin/ntuser.dat to alec.badwin.000/ntuser.dat
2021-02-25 14:19:37 INFO: Copy Profile: C:\Users\alec.baldwin.000/NTUSER.DAT To: C:\Users\alec.baldwin/NTUSER.DAT
2021-02-25 14:19:39 INFO: Copy Profile: C:\Users\alec.baldwin.000/AppData/Local/Microsoft/Windows/UsrClass.dat To: C:\Users\alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:19:41 INFO: Unloaded Profile: C:\Users\alec.baldwin.000/NTUSER.DAT
2021-02-25 14:19:42 INFO: Unloaded Profile: C:\Users\alec.baldwin.000/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:19:43 INFO: Unloaded Profile: C:\Users\alec.baldwin/NTUSER.DAT
2021-02-25 14:19:46 INFO: Unloaded Profile: C:\Users\alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
##LOG NOTES## physically move NTUSER.dat usrClass.dat to destination in this case
##LOG NOTES## Copy alec.baldwin.000/NTUSER.DAT -> alec.baldwin/NTUSER.DAT
##LOG NOTES## Copy alec.baldwin.000/AppData/Local/Microsoft/Windows/UsrClass.dat -> alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:19:47 INFO: Copying merged profiles to destination profile path
2021-02-25 14:19:47 INFO: Selected User Path and New User Path Match
##LOG NOTES## If the usernames in the profile path are the same
##LOG NOTES## Remove alec.baldwin.000
##LOG NOTES## Update that user's sid to point to C:\Users\alec.baldwin
2021-02-25 14:19:48 INFO: New User Profile Path: C:\Users\alec.baldwin New User SID: S-1-5-21-3130314204-525621684-3957336222-1001
2021-02-25 14:19:48 INFO: Old User Profile Path: C:\Users\alec.baldwin Old User SID: S-1-5-21-156575111-3938707022-2951340204-1106
##LOG NOTES## Set permissions
2021-02-25 14:19:48 INFO: NTFS ACLs on domain C:\users\ dir
2021-02-25 14:19:55 INFO: Updating UWP Apps for new user
2021-02-25 14:20:02 INFO: Load Profile: C:\Users\alec.baldwin/NTUSER.DAT
2021-02-25 14:20:03 INFO: Load Profile: C:\Users\alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:20:03 INFO: Setting key at [KeyPath:S-1-5-21-3130314204-525621684-3957336222-1001\SOFTWARE\JCADMU]
2021-02-25 14:20:03 INFO: Setting value with properties [name:previousSID, value:S-1-5-21-156575111-3938707022-2951340204-1106, value type:String]
2021-02-25 14:20:03 INFO: Setting value with properties [name:previousProfilePath, value:C:\Users\alec.baldwin, value type:String]
2021-02-25 14:20:12 INFO: Unloaded Profile: C:\Users\alec.baldwin/NTUSER.DAT
2021-02-25 14:20:14 INFO: Unloaded Profile: C:\Users\alec.baldwin/AppData/Local/Microsoft/Windows/UsrClass.dat
2021-02-25 14:20:15 INFO: Profile Conversion Completed
2021-02-25 14:20:15 INFO: Removing Temp Files & Folders.
2021-02-25 14:20:25 INFO: Script finished successfully; Log file location: C:\Windows\Temp\jcAdmu.log
2021-02-25 14:20:25 INFO: Tool options chosen were : Install JC Agent = False, Leave Domain = False, Force Reboot = False, AzureADProfile = False, Convert User Profile = True, Create System Restore Point = False

Log Levels

  • Information - Tells what is going on
2019-07-23 09:01:38 INFO: Download of Windows ADK Setup file completed successfully
  • Warning - A non script terminating error
2019-07-23 09:03:52 WARNING: Removal Of Temp Files & Folders Failed
  • Error - A script terminating error
2019-07-23 08:56:38 ERROR: System is NOT joined to a domain.