원도우 서버를 사용하면서 네트워크 공유를 하는데 별로 마음에 안든다.

7-zip으로 백업을 하면 열러있는 파일은 백업이 안되는 경우가 많은데. 이것을 방지하기 위해서 자동으로 열려 있는 모든 세션을 종료하는 옵션을 찾고 있었다.

세션 종료 시간을 정할 수 있는 기능이 있어서 이것을 대신 사용..


net config server /autodisconnect:time_before_autodisconnect

출처: http://merino.egloos.com/239672 

마이크로 소프트 라이브러리에서 확인하니, 간단하였다..ㅡㅡ;;

http://technet.microsoft.com/en-us/library/bb490711.aspx

Examples

To display a list of session information for the local server, type:

net session

To display session information for a client with the computer name Shepherd, type:

net session \\shepherd

To end all sessions between the server and the clients connected to it, type:

net session /delete

간단한것을 가지고 왜 이리 고생을...ㅡㅡ;;

백업 스크립트 전에 이 명령을 넣어주면 될듯하다..



Posted by 노을지기