部署应用程序脚本+GUIRunOnce命令

部署应用程序脚本:

   应用程序配置:运行脚本(cmd.exe):

   可执行程序:cmd.exe

   参数:        /c net user ppc boc.123 /add

   运行方式账户: NT AUTHORITY\System

 

   运行PowerShell脚本:

   可执行程序: %WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe

   参数:        -command set-service mpssvc -StartupType manual

 

================================================

 

GUIRunOnce命令:

1)运行PowerShell命令:%WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe -command set-service mpssvc -StartupType manual

2)运行批处理命令:      cmd.exe /c net user ppc boc.123 /add

                        或者:sc config spooler start= demand (设置spooler服务为手动)

posted on 2013-11-25 21:29  momingliu11  阅读(909)  评论(0编辑  收藏  举报