My company has a ultra-low tech 'document sharing system': We have certain key Word documents that are stored on a shared drive on a Windows 10 PC and everyone can write to the document. They are told to ALWAYS close the DOC after they're done. It's -mostly- worked fine for us for 20 years. But... of course, someone occasionally leaves a DOC open and we have to run over to the person's machine to close it---which gets to be a pain. So I want to be able to shut down THEIR copy of Word, executing on THEIR remote machine, but while sitting at MY PC. In the old days of Unix, I would use 'kill' for this.
But since we're on Windows I have been trying to use PSKill to shut down the copy of Word executing on the remote PC, but I can't get it to work.
pskill \\4770K -u adminusername -p 124567890 "C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE"
(Where 4770K is the name of the remote computer I am using as a test. I also tried using the IP of the remote machine I am using as a test. Neither worked.)
...it always comes back with
"Cannot find the path"
What am I doing wrong?
OR, is there another way to shut down Word remotely? OR , is there another way to shut down a specific Word DOC remotely?
TWO UPDATES: 1. We are NOT using a domain. We are using a Windows Workgroup. Does this matter?
When I have tried using TASKLIST just to see if I can connect.
tasklist /S 4770k
...I am asked for the password on my LOCAL computer--not the remote computer (as I would expect.)
I tried enabling the Remote Registry in Services. Didn't help anything.
Using Windows 10. I'm wondering if this isn't a change in Win10?
UPDATE I've since tried the following:
TASKKILL /S 4770K /U adminusername /P 124567890 /F /IM "WINWORD.EXE"
Doesn't work. However, -again- this works fine from the console of that machine (4770K)