无忧启动论坛
标题:
求利用批处理给windows7添加注销脚本???
[打印本页]
作者:
zbkh
时间:
2013-12-20 12:13
标题:
求利用批处理给windows7添加注销脚本???
我自己在网上找了一个,并且改造试了一下:
@echo off
cd
copy /y 1.bat C:\Windows\System32\GroupPolicy\User\Scripts\Logoff\
set di=C:\Windows\System32\GroupPolicy\User\Scripts
cd /d %di%
attrib -r -h -s *.ini
>%di%\scripts.ini echo [Logoff]
>>%di%\scripts.ini echo 0CmdLine=1.bat
>>%di%\scripts.ini echo 0Parameters=
gpupdate /force
exit
运行此批处理,在下面的画面是可以看到效果的:
211321thk8wywjt8jjz2at_jpg_thumb.jpg
(185.35 KB, 下载次数: 15)
下载附件
2013-12-20 12:12 上传
可惜这样操作不作用!
后来我又将注册表:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Logoff]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Logoff\0]
"GPO-ID"="LocalGPO"
"SOM-ID"="Local"
"FileSysPath"="C:\\Windows\\System32\\GroupPolicy\\User"
"DisplayName"="本地组策略"
"GPOName"="本地组策略"
"PSScriptOrder"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy\Scripts\Logoff\0\0]
"Script"="1.bat"
"Parameters"=""
"IsPowershell"=dword:00000000
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
导入也不行!!!
求高人指点一下!小弟不胜感激!
欢迎光临 无忧启动论坛 (http://wuyou.net./)
Powered by Discuz! X3.3