MDT Web 服务 - 完成此操作所需的数据尚不可用。 (-2147483638 0x8000000A)
MDT Web service - The data necessary to complete this operation is not yet available. (-2147483638 0x8000000A)
长话短说,我们恢复了一堆服务器,其中一个是我的 WDS 服务器。除了在 OU 之间移动计算机 object 的 Web 服务操作外,一切似乎都正常。
它在任务序列中被调用了两次;在开始时一次将 object 移动到暂存 OU,在最后一次将其移回原始 OU。第一次通话效果很好。第二次调用每次都失败,并出现这个对我没有帮助的愚蠢错误。
据我所知,它正在获取所需的所有数据。似乎就在它与 Web 服务对话之前失败了,因为我没有收到表明 activity 的日志。我确定连接很好,因为一切都在同一台主机上。
我已经用谷歌搜索了几天,但与我无关。
我该如何解决这个错误?
请查看以下信息:
CustomSettings.ini
[Settings]
Priority=Default
Properties=MyCustomProperty, StagingOU, FinalOU, MachineObjectOU, ComputerAttributes, Computername, netbootGUID, ZENworksGUID, deploymentType
[Default]
SLShare=\172.16.100.242\logs\TaskSequence\EndOfDeploy
SLShareDynamicLogging=\172.16.100.242\logs\TaskSequence\Live
_SMSTSORGNAME=****
UserDataLocation=NONE
ComputerBackupLocation=NETWORK
AdminPassword=****
TimeZoneName=E. Australia Standard Time
FinishAction=REBOOT
WSUSServer=http://wsus.****:8530
EventService=http://172.16.100.242:9800
JoinDomain=****.****.****.****
DomainAdmin=****
DomainAdminPassword=****
StagingOU=LDAP://OU=Staging,DC=****,DC=****,DC=****,DC=****
BackupShare=\172.16.100.242\DeploymentShare
BackupDir=Captures
BackupFile=%TaskSequenceID%_#month(date) & "-" & day(date) & "-" & year(date)#.wim
DoCapture=NO
OSInstall=Y
HideShell=NO
ApplyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=YES
SkipFinalSummary=YES
[GetCurrentComputerName]
WebService=http://172.16.100.242/ADWebService/AD.asmx/GetComputerNameByNetbootGuid
Parameters=netbootGUID
[GetCurrentComputerOU]
WebService=http://172.16.100.242/ADWebService/ad.asmx/GetComputerParentPath
Parameters=Computername
[MoveComputerToOU]
WebService=http://172.16.100.242/ADWebService/AD.asmx/MoveComputerToOU
Parameters=OSDComputerName,MachineObjectOU
OSDComputerName=Computername
MachineObjectOU=OUPath
MoveComputerToTargetOU.wsf
<job id="MoveToTargetOU">
<script language="VBScript" src="..\ZTIUtility.vbs"/>
<script language="VBScript" src="..\ZTIDataAccess.vbs"/>
<script language="VBScript">
' //***************************************************************************
' // ***** Script Header *****
' //
' // File: MoveToTargetOU.wsf
' //
' // Purpose: Move computer to OU specified in MDT by MachineObjectOU
' //
' // Usage: cscript MoveToTargetOU [/debug:true]
' //
' //
' // Customer History:
' // 1 MK 01/18/2009 changed to use Webservice instead of AD Scripting
' // 2 MK 08/28/2009 Updated example Scripts for MDT 2010
' // 3 MK 04/08/2010 Rewrote Script to fit to MDT 2010 standard scripts
' // Added IniFile entry
' //
' // ***** 结束 Header *****
' //*************************************************** ****************************
Option Explicit
RunNewInstance
'//----------------------------------------------------------------------------
'//
'// Global constant and variable declarations
'//
'//----------------------------------------------------------------------------
Dim iRetVal
'//----------------------------------------------------------------------------
'// End declarations
'//----------------------------------------------------------------------------
'//----------------------------------------------------------------------------
'// Main Class
'//----------------------------------------------------------------------------
Class MoveToTargetOU
'//----------------------------------------------------------------------------
'// Class instance variable declarations
'//----------------------------------------------------------------------------
' No instance variables are required
'//----------------------------------------------------------------------------
'// Constructor to initialize needed global objects
'//----------------------------------------------------------------------------
Private Sub Class_Initialize
' No initialization is required
End Sub
'//----------------------------------------------------------------------------
'// Main routine
'//----------------------------------------------------------------------------
Function Main
iRetVal = Success
Dim oService, oXML, sResult, sFinalOU
oLogging.CreateEntry "*** De-Staging: Start processing move to Final OU", LogTypeInfo
' Create the web service instance
Set oService = new WebService
oLogging.CreateEntry "*** De-Staging: Loading INI file and reading [MoveComputerToOU] section", LogTypeInfo
oLogging.CreateEntry "*** De-Staging: Read INI section, now setting Environment Properties", LogTypeInfo
oService.IniFile = "CustomSettings.ini"
oService.SectionName = "MoveComputerToOU"
' ADsPath of the container object (OU) where you want to move the current PC to
sFinalOU = oEnvironment.item("FinalOU")
oLogging.CreateEntry "*** De-Staging: Setting MachineObjectOU to Final OU: " & sFinalOU, LogTypeInfo
oEnvironment.item("MachineObjectOU") = sFinalOU
oLogging.CreateEntry "*** De-Staging: Now making the web service call: ", LogTypeInfo
' Make the web service call
Set oXML = oService.Query
If oXML is Nothing then
oLogging.CreateEntry "*** De-Staging: Unable to call MoveComputerToOU web service.", LogTypeError
iRetVal = Failure
Else
oXML.setProperty "SelectionNamespaces", "xmlns:mk='http://maikkoster.com/Deployment'"
sResult = UCase(oXML.SelectSingleNode("mk:boolean").Text)
If sResult <> "TRUE" then
oLogging.CreateEntry "*** De-Staging: Move was not successful", LogTypeError
iRetVal = Failure
Else
oLogging.CreateEntry "*** De-Staging: Successfully moved Computer to target OU", LogTypeInfo
End If
End if
Main = iRetVal
End Function
End Class
</script>
</job>
BDD.log
Setting variable OSDCOMPUTERNAME to value WITDM001 ZTISetVariable 30/04/2018 8:08:07 AM 0 (0x0000)
Property OSDCOMPUTERNAME is now = WITDM001 ZTISetVariable 30/04/2018 8:08:08 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:08 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Setting variable OUPath to value LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Property OUPath is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Setting variable FinalOU to value LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Property FinalOU is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:12 AM 0 (0x0000)
*** De-Staging: Start processing move to Final OU MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Loading INI file and reading [MoveComputerToOU] section MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Read INI section, now setting Environment Properties MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
Using specified INI file = \172.16.100.242\DeploymentShare\Control\CustomSettings.ini MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
CHECKING the [MoveComputerToOU] section MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Setting MachineObjectOU to Final OU: LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
Property MachineObjectOU is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Now making the web service call: MoveToTargetOU 30/04/2018 8:08:29 AM 0 (0x0000)
ZTI ERROR - Unhandled error returned by MoveToTargetOU: The data necessary to complete this operation is not yet available.
(-2147483638 0x8000000A) MoveToTargetOU 30/04/2018 8:08:29 AM 0 (0x0000)
Event 41002 sent: ZTI ERROR - Unhandled error returned by MoveToTargetOU: The data necessary to complete this operation is not yet available.
(-2147483638 0x8000000A) MoveToTargetOU 30/04/2018 8:08:30 AM 0 (0x0000)
抱歉,如果我遗漏了任何信息,感谢您的浏览:)
编辑:所以它在 Windows PE 中工作得很好,只是在常规 windows 中不行。我不知道我错过了什么!
我们解决了这个问题。我们需要做两件事:
在 ISS 站点重新输入我们的身份验证信息并重新应用文件级安全过滤,这在进行备份时会被删除。
这可以通过编辑站点应用程序设置时找到的 'Connect as...' 和 'Test settings...' 选项来确认。
话虽这么说,但我仍然不知道为什么 Web 服务在 Windows PE 中有效,但在常规 OS 中却无效...非常感谢任何见解!
长话短说,我们恢复了一堆服务器,其中一个是我的 WDS 服务器。除了在 OU 之间移动计算机 object 的 Web 服务操作外,一切似乎都正常。
它在任务序列中被调用了两次;在开始时一次将 object 移动到暂存 OU,在最后一次将其移回原始 OU。第一次通话效果很好。第二次调用每次都失败,并出现这个对我没有帮助的愚蠢错误。
据我所知,它正在获取所需的所有数据。似乎就在它与 Web 服务对话之前失败了,因为我没有收到表明 activity 的日志。我确定连接很好,因为一切都在同一台主机上。 我已经用谷歌搜索了几天,但与我无关。
我该如何解决这个错误? 请查看以下信息:
CustomSettings.ini
[Settings]
Priority=Default
Properties=MyCustomProperty, StagingOU, FinalOU, MachineObjectOU, ComputerAttributes, Computername, netbootGUID, ZENworksGUID, deploymentType
[Default]
SLShare=\172.16.100.242\logs\TaskSequence\EndOfDeploy
SLShareDynamicLogging=\172.16.100.242\logs\TaskSequence\Live
_SMSTSORGNAME=****
UserDataLocation=NONE
ComputerBackupLocation=NETWORK
AdminPassword=****
TimeZoneName=E. Australia Standard Time
FinishAction=REBOOT
WSUSServer=http://wsus.****:8530
EventService=http://172.16.100.242:9800
JoinDomain=****.****.****.****
DomainAdmin=****
DomainAdminPassword=****
StagingOU=LDAP://OU=Staging,DC=****,DC=****,DC=****,DC=****
BackupShare=\172.16.100.242\DeploymentShare
BackupDir=Captures
BackupFile=%TaskSequenceID%_#month(date) & "-" & day(date) & "-" & year(date)#.wim
DoCapture=NO
OSInstall=Y
HideShell=NO
ApplyGPOPack=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=YES
SkipFinalSummary=YES
[GetCurrentComputerName]
WebService=http://172.16.100.242/ADWebService/AD.asmx/GetComputerNameByNetbootGuid
Parameters=netbootGUID
[GetCurrentComputerOU]
WebService=http://172.16.100.242/ADWebService/ad.asmx/GetComputerParentPath
Parameters=Computername
[MoveComputerToOU]
WebService=http://172.16.100.242/ADWebService/AD.asmx/MoveComputerToOU
Parameters=OSDComputerName,MachineObjectOU
OSDComputerName=Computername
MachineObjectOU=OUPath
MoveComputerToTargetOU.wsf
<job id="MoveToTargetOU">
<script language="VBScript" src="..\ZTIUtility.vbs"/>
<script language="VBScript" src="..\ZTIDataAccess.vbs"/>
<script language="VBScript">
' //***************************************************************************
' // ***** Script Header *****
' //
' // File: MoveToTargetOU.wsf
' //
' // Purpose: Move computer to OU specified in MDT by MachineObjectOU
' //
' // Usage: cscript MoveToTargetOU [/debug:true]
' //
' //
' // Customer History:
' // 1 MK 01/18/2009 changed to use Webservice instead of AD Scripting
' // 2 MK 08/28/2009 Updated example Scripts for MDT 2010
' // 3 MK 04/08/2010 Rewrote Script to fit to MDT 2010 standard scripts
' // Added IniFile entry
' //
' // ***** 结束 Header ***** ' //*************************************************** ****************************
Option Explicit
RunNewInstance
'//----------------------------------------------------------------------------
'//
'// Global constant and variable declarations
'//
'//----------------------------------------------------------------------------
Dim iRetVal
'//----------------------------------------------------------------------------
'// End declarations
'//----------------------------------------------------------------------------
'//----------------------------------------------------------------------------
'// Main Class
'//----------------------------------------------------------------------------
Class MoveToTargetOU
'//----------------------------------------------------------------------------
'// Class instance variable declarations
'//----------------------------------------------------------------------------
' No instance variables are required
'//----------------------------------------------------------------------------
'// Constructor to initialize needed global objects
'//----------------------------------------------------------------------------
Private Sub Class_Initialize
' No initialization is required
End Sub
'//----------------------------------------------------------------------------
'// Main routine
'//----------------------------------------------------------------------------
Function Main
iRetVal = Success
Dim oService, oXML, sResult, sFinalOU
oLogging.CreateEntry "*** De-Staging: Start processing move to Final OU", LogTypeInfo
' Create the web service instance
Set oService = new WebService
oLogging.CreateEntry "*** De-Staging: Loading INI file and reading [MoveComputerToOU] section", LogTypeInfo
oLogging.CreateEntry "*** De-Staging: Read INI section, now setting Environment Properties", LogTypeInfo
oService.IniFile = "CustomSettings.ini"
oService.SectionName = "MoveComputerToOU"
' ADsPath of the container object (OU) where you want to move the current PC to
sFinalOU = oEnvironment.item("FinalOU")
oLogging.CreateEntry "*** De-Staging: Setting MachineObjectOU to Final OU: " & sFinalOU, LogTypeInfo
oEnvironment.item("MachineObjectOU") = sFinalOU
oLogging.CreateEntry "*** De-Staging: Now making the web service call: ", LogTypeInfo
' Make the web service call
Set oXML = oService.Query
If oXML is Nothing then
oLogging.CreateEntry "*** De-Staging: Unable to call MoveComputerToOU web service.", LogTypeError
iRetVal = Failure
Else
oXML.setProperty "SelectionNamespaces", "xmlns:mk='http://maikkoster.com/Deployment'"
sResult = UCase(oXML.SelectSingleNode("mk:boolean").Text)
If sResult <> "TRUE" then
oLogging.CreateEntry "*** De-Staging: Move was not successful", LogTypeError
iRetVal = Failure
Else
oLogging.CreateEntry "*** De-Staging: Successfully moved Computer to target OU", LogTypeInfo
End If
End if
Main = iRetVal
End Function
End Class
</script>
</job>
BDD.log
Setting variable OSDCOMPUTERNAME to value WITDM001 ZTISetVariable 30/04/2018 8:08:07 AM 0 (0x0000)
Property OSDCOMPUTERNAME is now = WITDM001 ZTISetVariable 30/04/2018 8:08:08 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:08 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Setting variable OUPath to value LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Property OUPath is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:09 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Setting variable FinalOU to value LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Property FinalOU is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:10 AM 0 (0x0000)
Event 41001 sent: ZTISetVariable processing completed successfully. ZTISetVariable 30/04/2018 8:08:12 AM 0 (0x0000)
*** De-Staging: Start processing move to Final OU MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Loading INI file and reading [MoveComputerToOU] section MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Read INI section, now setting Environment Properties MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
Using specified INI file = \172.16.100.242\DeploymentShare\Control\CustomSettings.ini MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
CHECKING the [MoveComputerToOU] section MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Setting MachineObjectOU to Final OU: LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
Property MachineObjectOU is now = LDAP://OU=StagingDev,DC=****,DC=****,DC=****,DC=**** MoveToTargetOU 30/04/2018 8:08:28 AM 0 (0x0000)
*** De-Staging: Now making the web service call: MoveToTargetOU 30/04/2018 8:08:29 AM 0 (0x0000)
ZTI ERROR - Unhandled error returned by MoveToTargetOU: The data necessary to complete this operation is not yet available.
(-2147483638 0x8000000A) MoveToTargetOU 30/04/2018 8:08:29 AM 0 (0x0000)
Event 41002 sent: ZTI ERROR - Unhandled error returned by MoveToTargetOU: The data necessary to complete this operation is not yet available.
(-2147483638 0x8000000A) MoveToTargetOU 30/04/2018 8:08:30 AM 0 (0x0000)
抱歉,如果我遗漏了任何信息,感谢您的浏览:)
编辑:所以它在 Windows PE 中工作得很好,只是在常规 windows 中不行。我不知道我错过了什么!
我们解决了这个问题。我们需要做两件事: 在 ISS 站点重新输入我们的身份验证信息并重新应用文件级安全过滤,这在进行备份时会被删除。
这可以通过编辑站点应用程序设置时找到的 'Connect as...' 和 'Test settings...' 选项来确认。
话虽这么说,但我仍然不知道为什么 Web 服务在 Windows PE 中有效,但在常规 OS 中却无效...非常感谢任何见解!