Closing Resources via script?
Is there some way to close used resources in NT4 via a script or some sort?
I'd like to be able to close all open files on a server at a scheduled time for backup and maintenance task.
Anyone?
IT Employment
Is there some way to close used resources in NT4 via a script or some sort?
I'd like to be able to close all open files on a server at a scheduled time for backup and maintenance task.
Anyone?
by jnatale
You could script a *.bat file with the following
"net session /delete"
This will kill all sessions to the server so you can create a clean backup and further restrict logon hours so nobody tries to logon again during backup.
by jnatale
You may want to use the Pause command to make sure people don't try to logon after you close their sessions ex.
NET SESSION /DELETE
NET STOP "NET LOGON"
however you must make sure to restart the NET LOGON command in another script after your backup is finished or else nobody will be able to logon again
New Script started after backup is finished
NET START "NET LOGON"
This discussion is closed to new replies.
Sort by Trending