Is this possible during OSD Task Sequence? I have a .bat file TS with this command \\server\executable.exe

Hi,

Is this possible during OSD Task Sequence? I have a .bat file Task Sequence with this command \\server\executable.exe where the \\SERVER is not the same as the SCCM server.  Rather, this is another server on our network.  It's our inventory server.  

Can someone please explain to me?

I get an error when I do this and I wonder if maybe because I can't do "network connect" from another server during an OSD task sequence event. All the rest of my packages are local my SCCM server and that works without a problem.  I am trying this package a little differently because of the nature of the exe.  It has to be audited by our audit server and the executables reside in our Audit server. I believe that this is not possible but I need a clear explanation.. 

The execution of the group (XXX) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Failed to run the last action: (XXX) . Execution of task sequence failed.
The extended attributes are inconsistent. (Error: 800700FF; Source: Windows) TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
MP server http://SCCMserver.mydomain.com. Ports 80,443. CRL=false. TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Setting authenticator TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Set authenticator in transport TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Sending StatusMessage TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Setting message signatures. TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Setting the authenticator. TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
CLibSMSMessageWinHttpTransport::Send: URL: SCCMSERVER.mydomain.com:80  CCM_POST /ccm_system/request TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Request was succesful. TSManager 8/5/2015 9:16:43 AM 992 (0x03E0)
Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmanager\tsmanager.cpp,868) TSManager 8/5/2015 9:17:26 AM 992 (0x03E0)
Task Sequence Engine failed! Code: enExecutionFail TSManager 8/5/2015 9:17:26 AM 992 (0x03E0)
**************************************************************************** TSManager 8/5/2015 9:17:26 AM 992 (0x03E0)
Task sequence execution failed with error code 80004005 TSManager 8/5/2015 9:17:26 AM 992 (0x03E0)

August 5th, 2015 12:31pm

Yes, it's possible. The better path is to create a ConfigMgr package for the batch file and/or exe and then use that it the TS.

If for some reason you must call the exe from the remote location, you must make sure that the proper permissions are in place. Task Sequences run as local system and if joined to a domain, they use that system's computer account to access the share. Thus, you need to make sure the computer accounts that will be running the TS have both share and NTFS read access to the location. You can also use the Domain Computers group as this group dynamically contains all domain computer accounts.

Note that the above snippet does not show the actual failure, it's further up, so not much specific can be said about exactly what your issue may be.

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2015 1:37pm

Thank you! So this is how mine is set up:

- The package data source points to the shared folder  \\remoteserver\sharedfolder\

- The remote shared folder has "Everyone" full access

Are you suggesting that I should add Domain Computers group to \\remoteserver\sharedfolder ?

Also, here's another snippet. 

CoCreateInstance succeeded InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
Active request handle: {8AFE44FF-A50F-4DA6-A348-2576D68F386B} is valid. InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
Invoking Execution Manager to install software  InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
Installing software for PackageID='WH200247' ProgramID='TrackIT Audit' AdvertID='WH220150' has started, jobID='{99704051-CDCB-4E82-8339-BE75053C3990}' InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
Setting TSEnv variable 'SMSTSInstallSoftwareJobID_WH200247_WH220150_TrackIT Audit'='{99704051-CDCB-4E82-8339-BE75053C3990}' InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
Waiting for installation job to complete.. InstallSoftware 8/5/2015 10:36:19 AM 2284 (0x08EC)
CompleteExecution received InstallSoftware 8/5/2015 10:36:48 AM 2888 (0x0B48)
CompleteExecution processed InstallSoftware 8/5/2015 10:36:48 AM 2888 (0x0B48)
Received job completion notification from Execution Manager InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Installation completed with exit code 0x800700ff InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Installation failed with error (0x800700ff) InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Setting TSEnv variable 'SMSTSInstallSoftwareJobID_WH200247_WH220150_TrackIT Audit'='' InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
GetExecRequestMgrInterface successful InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Releasing job request, jobID='{99704051-CDCB-4E82-8339-BE75053C3990}' InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Releasing of Job Request successful InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
CompleteJob successful InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\WH200247 InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
reference count 1 for the source C:\_SMSTaskSequence\Packages\WH200247 before releasing InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Released the resolved source C:\_SMSTaskSequence\Packages\WH200247 InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
pInstall->Install(sPackageID, sProgramName), HRESULT=800700ff (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,361) InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Install Software failed, hr=0x800700ff InstallSoftware 8/5/2015 10:36:48 AM 2284 (0x08EC)
Process completed with exit code 2147942655 TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
!--------------------------------------------------------------------------------------------! TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Failed to run the action: TrackIT Audit.
The extended attributes are inconsistent. (Error: 800700FF; Source: Windows) TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
MP server http://xxx Ports 80,443. CRL=false. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting authenticator TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Set authenticator in transport TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Sending StatusMessage TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting message signatures. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting the authenticator. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
CLibSMSMessageWinHttpTransport::Send: URL: xxx:80  CCM_POST /ccm_system/request TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Request was succesful. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Set a global environment variable _SMSTSLastActionRetCode=-2147024641 TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Clear local default environment TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Let the parent group (TrackIT) decides whether to continue execution TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
The execution of the group (TrackIT) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Failed to run the last action: TrackIT Audit. Execution of task sequence failed.
The extended attributes are inconsistent. (Error: 800700FF; Source: Windows) TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
MP server http://xxx Ports 80,443. CRL=false. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting authenticator TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Set authenticator in transport TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Sending StatusMessage TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting message signatures. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Setting the authenticator. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
CLibSMSMessageWinHttpTransport::Send: URL: xxx:80  CCM_POST /ccm_system/request TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Request was succesful. TSManager 8/5/2015 10:36:48 AM 2940 (0x0B7C)
Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmanager\tsmanager.cpp,868) TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Task Sequence Engine failed! Code: enExecutionFail TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
**************************************************************************** TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Task sequence execution failed with error code 80004005 TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Cleaning Up. TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Removing Authenticator TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Cleaning up task sequence folder TSManager 8/5/2015 10:46:01 AM 2940 (0x0B7C)
Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
hr, HRESULT=80070091 (e:\qfe\nts\sms\framework\core\ccmcore\ccmfile.cpp,1218) TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
Failed to delete directory 'C:\_SMSTaskSequence' TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
(dwRet = ::SetNamedSecurityInfoW ((WCHAR*) pszObjectName, objectType, OWNER_SECURITY_INFORMATION, pOwnerSID, NULL, NULL, NULL)) == ERROR_SUCCESS, HRESULT=80070005 (e:\qfe\nts\sms\framework\tscore\utils.cpp,6091) TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
SetNamedSecurityInfo() failed. TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
SetObjectOwner() failed. 0x80070005. TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
SetObjectOwner (szFName, SE_FILE_OBJECT, c_szAdministrators), HRESULT=80070005 (e:\qfe\nts\sms\framework\tscore\utils.cpp,6188) TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)
RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 8/5/2015 10:46:03 AM 2940 (0x0B7C)

Please advise.  Thank you!

August 5th, 2015 2:08pm

For the permissions, please note its not just share permissions, its NTFS permissions also. Everyone on the share is fine however I doubt that you would want to add everyone to the NTFS ACL so that's where you can use Domain Computers.

Is this an Application or a Package?

WHat exactly is in the batch file?

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2015 2:28pm

It's a package.

- The batch file has only a command to execute the .exe file.  For example \\remoteserver\sharedfolder\audit.exe

- I also tried this... no batch file.. just directly "audit.exe" command line with quotes in it, where the package data source points to the \\remoteserver\sharedfolder\ - This didn't work.

- Now I am trying...

  - Gave permission to the Domain Computers group to the shared folder.

  - Instead of audit.exe only I made it start "audit.exe" /Q

I'm now waiting if it will work...

August 5th, 2015 2:33pm

Is the step running in WinPE or the full OS?

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2015 6:09pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics