第一次翻译小文章,还请大家多多包涵。
最后一篇就贴一个写好的模板供大家参考~
 
Template
Use the following template to create your own custom scripts.
<job id="Z-Sample">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript">
' //***************************************************************************
' // ***** Script Header *****
' //
' // Solution: Solution Accelerator for Business Desktop Deployment
' // File: Z-Sample.wsf
' //
' // Purpose: Template
' //
' // Usage: cscript Z-Sample.wsf [/debug:true]
' //
' // Customer Build Version: 1.0.0
' // Customer Script Version: 1.0.0
' // Customer History:
' //
' // ***** End Header *****
' //***************************************************************************
'//----------------------------------------------------------------------------
'//
'// Global constant and variable declarations
'//
'//----------------------------------------------------------------------------
Option Explicit
Dim iRetVal
'//----------------------------------------------------------------------------
'// End declarations
'//----------------------------------------------------------------------------
'//----------------------------------------------------------------------------
'// Main routine
'//----------------------------------------------------------------------------
On Error Resume Next
iRetVal = ZTIProcess
Proce***esults iRetVal
On Error Goto 0
'//---------------------------------------------------------------------------
'//
'// Function: ZTIProcess()
'//
'// Input: None
'//
'// Return: Success - 0
'// Failure - non-zero
'//
'// Purpose: Perform main ZTI processing
'//
'//---------------------------------------------------------------------------
Function ZTIProcess()
     iRetVal = Success
     ZTIProcess = iRetval
     '!!!!!!!!!!!   INSERT YOUR CODE HERE   !!!!!!!!!!!!
End Function
</script>
</job>
 
有人问Bent到哪里去找那些写好的功能:
Great Stuff - Is there any way I can find all of the oEnvironment Items that are available. I am trying to find the ALLUSERSPROFILE environment variable etc.
回答:
If you have a look in the \MININT\SMSOSD\OSDLOGS folder you will find a file called variables.dat. This contains all of the environment variables and there values.
It is in an XML format so I find it easiest to rename it variables.xml and open it with IE.
Thanks,

0

收藏

xmuxsp

207篇文章,86W+人气,2粉丝

Ctrl+Enter 发布

发布

取消

推荐专栏更多

如何在MDT/BDD中写一个自定义的脚本(4)
全局视角看大型园区网

路由交换+安全+无线+优化+运维

共40章 | 51CTO夏杰

¥51.00 1682人订阅
如何在MDT/BDD中写一个自定义的脚本(4)
网工2.0晋级攻略 ——零基础入门Python/Ansible

网络工程师2.0进阶指南

共30章 | 姜汁啤酒

¥51.00 1567人订阅
如何在MDT/BDD中写一个自定义的脚本(4)
基于Python的DevOps实战

自动化运维开发新概念

共20章 | 抚琴煮酒

¥51.00 430人订阅
如何在MDT/BDD中写一个自定义的脚本(4)
负载均衡高手炼成记

高并发架构之路

共15章 | sery

¥51.00 507人订阅
如何在MDT/BDD中写一个自定义的脚本(4)
带你玩转高可用

前百度高级工程师的架构高可用实战

共15章 | 曹林华

¥51.00 462人订阅
如何在MDT/BDD中写一个自定义的脚本(4)
如何在MDT/BDD中写一个自定义的脚本(4)

扫一扫,领取大礼包

0

分享
如何在MDT/BDD中写一个自定义的脚本(4)
xmuxsp
如何在MDT/BDD中写一个自定义的脚本(4)

转载于:https://blog.51cto.com/xmuxsp/74982

相关文章: