We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16e6ced + f1675f9 commit 55b3e10Copy full SHA for 55b3e10
modules/post/windows/manage/smart_migrate.rb
@@ -27,6 +27,11 @@ def run
27
server = client.sys.process.open
28
original_pid = server.pid
29
print_status("Current server process: #{server.name} (#{server.pid})")
30
+ if server.name.casecmp("winlogon.exe") == 0 or server.name.casecmp("explorer.exe") == 0
31
+ print_good("Current process is already in #{server.name} process, exiting.")
32
+ return
33
+ end
34
+
35
36
uid = client.sys.config.getuid
37
0 commit comments