Skip to content

Commit c9bd791

Browse files
David MaloneyDavid Maloney
authored andcommitted
fix smart_migrate choice order
was trying winlogon first should do explorer first
1 parent c73e417 commit c9bd791

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/post/windows/manage/smart_migrate.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ def run
4545
winlogon_procs << proc if proc['name'] == "winlogon.exe"
4646
end
4747

48-
winlogon_procs.each { |proc| return if attempt_migration(proc['pid']) }
48+
print_status "Attempting to move into explorer.exe for current user..."
4949
uid_explorer_procs.each { |proc| return if attempt_migration(proc['pid']) }
50+
print_status "Attempting to move into explorer.exe for other users..."
5051
explorer_procs.each { |proc| return if attempt_migration(proc['pid']) }
52+
print_status "Attempting to move into winlogon.exe"
53+
winlogon_procs.each { |proc| return if attempt_migration(proc['pid']) }
5154

5255
print_error "Was unable to sucessfully migrate into any of our likely candidates"
5356
end

0 commit comments

Comments
 (0)