On Tue, 1 Oct 2013 11:37:16 +0100, Mr Simon wrote:
> This batch file closes the files, and
> works fine on 2003 server. On a couple of SBS 2011 servers though it DOESN'T
> work :-\ Not sure if this is a change of syntax thing, something to do with
> elevation etc :-(
If it's only a couple of more SBS 2011 servers, it means that those servers
are not exactly identical. The batch file do work on some SBS 2011 servers,
so it's not the cause of problem.
> Has worked for YEARS on 2003.. Now all I get is a new line, no error
> message, but when listing the open files again everything is still there :-(
[paste]
> c:\> openfiles /disconnect /id 88888888
>
> c:\>
>
> That's it - no result back :-\
>
> And no errorlevel :-(
[paste]
> For confirmation, the command:
>
> c:\> openfiles /disconnect /id 88888888
>
> Just returns straight to a prompt, no message or errorlevel, regardless of
> whether the fileid is valid or not :-(
[paste]
> To confirm I'm running the right "openfiles" too, I can "openfiles /?"
> successfully :-(
I'm pointing my finger at the openfiles.exe or the system where
openfiles.exe doesn't work. The cause be one or both of these:
* Old (buggy) openfiles.exe version. There may be a hotfix that update that
file, and that couple of SBS servers whose openfiles.exe isn't working, may
not have that hotfix yet. Or... it's the other way around as mentioned on
the next point.
* Faulty hotfixes. Hotfixes have been proven that they're not always fix
things. They can broke part of the system or cripple entire system. This may
be related to the hotfix for Windows 8 lines:
http://support.microsoft.com/kb/2867224
Microsoft may have unofficially released a hotfix for SBS 2011, but is not
publicized yet. Some of you SBS systems may have picked it up via Windows
Update.
* Malware infection. While most of the effects are cripple entire program,
it may coincidentally nullifies part of a program.
I suggest you scan your system for malwares, just to be safe.
Then test using openfiles.exe from the SBS DVD. Copy it along with any
openfiles.exe.mui to a temporary folder. Use 7-Zip (or built-in Windows
tool?) to open the WIM file in the DVD and extract the file.
You may want to compare the openfiles.exe file's version from the system
that work, and that doesn't. To see if it's a hotfix issue.
Or as a workaround, you can use net.exe to close the files using their ID
(and use openfiles.exe to list them). e.g:
net file 88888888 /close