none
Inject a command into newly opened program? RRS feed

  • Question

  • Hi guys,

    I'm trying to truncate the SBS Monitoring logs, which I've followed the instructions below exactly, and it works, but I'd like to automate it to run every so often.

    https://blogs.technet.microsoft.com/sbs/2011/08/22/how-to-recreate-the-sbsmonitoring-database/

    Any idea how I would insert the command ".\Create-SBSMonitoringDb.ps1" into "MoveDataPowerShellHost.exe"  ?

    • Moved by Bill_Stewart Friday, March 15, 2019 12:30 AM Unanswerable drive-by question
    Wednesday, November 28, 2018 10:43 PM

All replies

  • You cannot inject anything into another process.  Windows processes run in isolation.

    You cannot inject a script into anything in Windows.


    \_(ツ)_/

    Wednesday, November 28, 2018 11:51 PM