共享文件夹权限的备份和恢复
2016-03-20 14:24
267 查看
公司服务器众多,共享需要从win2003迁移到2008服务器上,为了提高效率和减少错误,特地写三个脚本来完成工作。
共享文件夹同步:
http://bbs.winos.cn/thread-138675-1-1.html
本文出自 “老谭linux集群博客” 博客,请务必保留此出处http://cmdschool.blog.51cto.com/2420395/1753101
共享文件夹同步:
@echo off set sDir=D:\test set dDir=E:\test set log=.\it.log robocopy %sDir% %dDir% /mir /r:0 /xa:h /xf *.eml *.mp3 *.nsf *.rmvb *.AVI *.rm *.sys /copyall /log+:%log% /tee pause导出共享配置:
@echo off set rf=.\shareConfig.reg reg export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares %rf% pause导入共享配置:
@echo off set rf=.\shareConfig.reg reg import %rf% net stop server net start server net share pause参考文献:
http://bbs.winos.cn/thread-138675-1-1.html
本文出自 “老谭linux集群博客” 博客,请务必保留此出处http://cmdschool.blog.51cto.com/2420395/1753101
相关文章推荐
- 3594: [Scoi2014]方伯伯的玉米田 DP+树状数组优化
- Android应对进程被杀死--Service(五)-- 双进程Service常驻后台
- ListView的优化方法性能对比
- 【c++】求符合给定条件的整数集
- Mybatis(十)-注解配置SQL映射器(一)
- 【c++】求符合给定条件的整数集
- R中的par()函数的参数
- lintcode-medium-Find Minimum in Rotated Sorted Array II
- 速战速决---3小时快速搭建Exchange+SFB(3)
- hadoop程序员软件包
- Sublime text3 激活码
- 复利计算1.0 2.0 3.0
- JavaScript中正则表达式test()、exec()、match() 方法
- iptables介绍和简单的应用!!!
- mac Vim 使用
- Python 06 lambda函数
- 杂谈见闻
- LeetCodeOJ:2. Add Two Numbers
- 优先队列和堆 实战:HDU1242
- CentOS-7下安装MySQL5.6.22