fan
2009-05-16 16:15:17 UTC
Does anyone know how to suppress confirmation prompts for commands in Server
2008?
I have used logoff with the session ID in a script/batch since NT4 and MS
seems to have changes Server 2008 to require confirmation. more of that
don't run with scissors safety stuff in Vista :)
The message displayed is:
If you reset this session, all users using this protocol will be logged off,
Continue (n=no)?
I've tried all the tricks from the past and they seem to be masked.
One that works from the command line directly is the tried and true >nul,
however it doesn't work from within a .cmd
logoff 1 /server:MYFILESERVER /v >nul
Any clues?
2008?
I have used logoff with the session ID in a script/batch since NT4 and MS
seems to have changes Server 2008 to require confirmation. more of that
don't run with scissors safety stuff in Vista :)
The message displayed is:
If you reset this session, all users using this protocol will be logged off,
Continue (n=no)?
I've tried all the tricks from the past and they seem to be masked.
One that works from the command line directly is the tried and true >nul,
however it doesn't work from within a .cmd
logoff 1 /server:MYFILESERVER /v >nul
Any clues?