How to trigger Shutdown Dialog in Windows XP using prlctl?

Discussion in 'Windows Virtual Machine' started by mabam, Jul 16, 2020.

  1. mabam

    mabam Junior Member

    Messages:
    16
    I'm trying to trigger the shutdown dialog in my Windows XP VM using prlctl.

    If I use the command prompt in XP, the following works:
    Code:
    >taskkill /IM explorer.exe

    But if I use this command with prlctl in Terminal on my macOS host, I get an error:
    Code:
    $prlctl exec "Windows XP" taskkill /IM explorer.exe
    ERROR: The process "explorer.exe" with PID 1728 could not be terminated.
    Reason: This process can only be terminated forcefully (with /F option).

    Running
    Code:
    $prlctl exec "Windows XP" taskkill /F /IM explorer.exe
    results in the taskbar and every item on the Windows desktop to disappear, only leaving the desktop background.

    So when ran via prlctl, explorer.exe does not seem to refer to the same task as when ran on the command prompt in XP. Is there any solution to this?
     
  2. mabam

    mabam Junior Member

    Messages:
    16
    I can't find a way to edit my initial post.

    Actually, when adding /F in the command prompt in XP, it also results in the taskbar and desktop items to disappear. So it does refer to the same task as when running it through prlctl. But is it possible to run it from prlctl without having to use /F?

    (I've tried psexec so I can specify user domain and name, but execution of the command stalls.)
     

Share This Page