通过GPO的关闭脚本显示不需要的窗口

问题描述:

创建GPO以在关闭时为域XP计算机运行批处理文件 - 目的是删除旧用户配置文件。通过GPO的关闭脚本显示不需要的窗口

为此,我使用的应用程序名为DeleteProfiles,从OptimumX

cd C:\ 
if exist "Program Files (x86)" GOTO Exit (Checks if XP or not) 
if exist DeleteProfiles GOTO COMMAND 

:CopyDeleteProfiles 
md DeleteProfiles 
copy /Y \\SomeShare\SomeFolder\DeleteProfiles\DeleteProfiles.exe 
C:\DeleteProfiles\ 

:COMMAND 
pushd C:\DeleteProfiles\ 
start /Wait DeleteProfiles.exe /MIN:14 /Y 
rem (/Min: # = Delete profiles older than # and /y removes yes or no prompts) 

:Exit 
End 

它工作正常,但在程序输出关机时出现CMD窗口。

如何让它消失?

这里真正的问题是用户可以关闭导致脚本停止的程序。如果我不能让它消失,我想至少让窗户不能接近。

抬眼开始/ ?,添加/ b参数做工作

start /b /Wait DeleteProfiles.exe /MIN:14 /Y