none
Killing Handles using PowerShell RRS feed

  • General discussion

  • Hi all,

    The scenario is that I need to replace a macro enabled Word template - its likely the file will be in use when I try to replace it and closing Word for users never goes down well...

    So I've used Handles.exe to find the Handle I'm interested in, and simply trimmed the parts of the output (String) so that I can discover the PID and Handle number to then pass to Handle to kill.  This seems to work well.

    I wondered if there are any better ways to achieve the same thing as I feel my approach is a bit basic ;)

    thanks

    C



    • Changed type Bill_Stewart Monday, March 12, 2018 9:14 PM
    • Moved by Bill_Stewart Monday, March 12, 2018 9:14 PM User should not be doing this
    • Edited by Carl_B_ Tuesday, March 13, 2018 11:49 AM
    Friday, February 2, 2018 10:53 AM

All replies

  • Forcibly closing handles is likely to result in data corruption.

    -- Bill Stewart [Bill_Stewart]

    Friday, February 2, 2018 3:09 PM