question

artisticcheese avatar image
0 Votes"
artisticcheese asked IanXue-MSFT answered

How do I run psexec64 on nano server?

I'm confused how do I run psexec on nanoserver. I start nano server interactively docker run -it --rm --user ContainerAdministrator mcr.microsoft.com/powershell:lts-nanoserver-1809

Once I'm on console I downloaded and extracted pstools for nanoserver, trying to run cmd.exe as system or in fact running psexec64.exe by itself and passing any parameters to it does not produce any output, just returns back to command prompt with no errors or output

 PS C:\out> .\PsExec64.exe -i -d -s cmd.exe
 PS C:\out>


windows-sysinternals-pstoolswindows-server-nano
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered

Hi,

Thank you for your post.

Please check if the status of conhost (console window host) is running in the task manager after you run the psexec64 in PowerShell.

If there is a problem with conhost you can try to fix it with the SFC tool by running sfc /scannow in an elevated command prompt.

Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.