none
Need to specify a second set of credentials in MDT RRS feed

  • Question

  • Here's the scenarios

    All of our clients have users on other domains that do not have rights to access our deployment shares. We use a service account to gain access and to image. I have the need to set up and include the individual users credentials and the ability to pass them to install applications, logon to VPN, etc. I know how to make the user an admin, etc. I need an HTA box that will accept the input of the username, domain and password and be able to use them later in a the task sequence. My thought was create an HTA from the existing Credentials.xml and vbs and change the names to UserID1, UserPassword1, UserDomain1. Does anyone think this will work? I know I need to add the custom properties. Any help with validating their creds to AD would be helpful as well. As we do have a VLAN connection to their domain from our network.

    Part 2, I have this working for just the username portion but when trying to pass the variable %UserNTID% in a command line to DISM it errors out. Even though it shows the correct info in the log files. If I remove %UserNTID% from V:\Backup\%UserNTID%\UserNTID%.wim and create the folder manually in another step it works fine. HELP?

    Cmd.exe /c start /wait Dism.exe /LogPath:V:\DismLogs\%UserNTID% /LogLevel:4 /Capture-Image /Image-File V:\Backup\%UserNTID%\UserNTID%.wim /Capture-Dir:C:\ /Name "UserData" /ConfigFile:Z:\Scripts\ImageXConfig.ini

    Here is the log file:

    DISM   DISM.EXE: Executing command line: Dism.exe  /LogPath:V:\DismLogs\MIKES /LogLevel:4 /Capture-image /ImageFile:V:\Backup\MIKES\MIKES.wim /CaptureDir:C:\ /Name:"MyData" /ConfigFile:Z:\Scripts\ImageXconfig.ini

    And the errors:

    2017-01-12 08:54:49, Info                  DISM   DISM Provider Store: PID=1840 TID=1844 Provider has previously been initialized.  Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    [1840] [0xc144012e]

    2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 [WIMCloseWIM:(2707) -> Fail to flush file buffers] V:\Backup\MIKES\MIKES.wim (HRESULT=0x80070006) - CWimManager::WimProviderMsgLogCallback

    2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1171 - CWimManager::Capture(hr:0x80070003)
    2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844

    base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:4558 - CWimManager::InternalCmdCaptureBase(hr:0x80070003)

    2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 Error executing command - CWimManager::InternalExecuteCmd(hr:0x80070003)

    2017-01-12 08:54:49, Error                 DISM   DISM WIM Provider: PID=1840 TID=1844 base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2186 - CWimManager::ExecuteCmdLine(hr:0x80070003)

    2017-01-12 08:54:49, Error                 DISM   DISM.EXE: WimManager processed the command line but failed. HRESULT=80070003


    Michael Luebbert Global Desktop Engineer C3I-Inc.

    Thursday, January 12, 2017 1:59 PM

All replies

  • There are multiple questions here, so it's hard to keep track of what you are really asking for.

    error: 80070003 - COR_E_DIRECTORYNOTFOUND -    The specified path couldn't be found.

    You mention something about when creating the missing directory, it works. That sounds like your problem.

    Using a 2nd set of credentials sounds like a serious pain. Honestly, I would either: Grant "All authenticated users" permissions to your deployment share, and just use the standard user credentials to perform all the actions.

    Otherwise if not possible to grant all users access, then I would just create multiple VM's, connected to each domain to service the requests. Penny Wise, Pound Foolish IMHO.


    Keith Garner - Principal Consultant [owner] - http://DeploymentLive.com

    Wednesday, January 18, 2017 5:49 AM
    Moderator