设置开机自启动脚本

实验环境:windows7

打开记事本编写脚本,完成后将文件存入C盘根目录下test文件夹,格式为bat

time /t>>c:\test\log.log
whoami >>c:\test\log.log
echo %username% >>c:\test\log.log
echo %computername% >>c:\test\log.log

按住菜单+R打开运行,输入gpedit.Msc打开本地策略编辑器,选择Windows设置———>脚本(启动关机),添加脚本2.bat并确定。

重启计算机,查看log.log文件

发布了37 篇原创文章 · 获赞 29 · 访问量 3705

猜你喜欢

转载自blog.csdn.net/weixin_44253823/article/details/97115726
今日推荐