想做一个脚本:
每周一执行IE缓存文件清楚脚本(通过组策略)
想请教大家?该代码怎么写,才能在power users下运行(在管理员权限下可以,不过我们单位PC都是power user权限)?
另外AT命令能创建任务名(不然用户自己创建名为AT1的话,启动脚本的话会给删除的)
代码如下:
@echo off
echo
schtasks /delete /tn "At1" /f (先将AT名字自动创建的任务(AT1)删除)
at 8:40AM /Every:Monday cmd /c del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"(创建任务名AT1)
echo
每周一执行IE缓存文件清楚脚本(通过组策略)
想请教大家?该代码怎么写,才能在power users下运行(在管理员权限下可以,不过我们单位PC都是power user权限)?
另外AT命令能创建任务名(不然用户自己创建名为AT1的话,启动脚本的话会给删除的)
代码如下:
@echo off
echo
schtasks /delete /tn "At1" /f (先将AT名字自动创建的任务(AT1)删除)
at 8:40AM /Every:Monday cmd /c del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"(创建任务名AT1)
echo
