rem These commands copy the selected image file to
rem predefined hard disk partitions on a UEFI-based computer.
rem Usage: ApplyImage WimFileName
rem Example: ApplyImage E:\Images\ThinImage.wim
rem === Copy the image to the recovery image partition =======================
copy %1 F:\sources\install.wim
rem === Apply the image to the Windows partition =============================
dism /Apply-Image /ImageFile:F:\sources\install.wim /Index:1 /ApplyDir:W:\
rem === Copy the Windows RE Tools to the Windows RE Tools partition ==========
md T:\Recovery\WindowsRE
copy W:\windows\system32\recovery\winre.wim T:\Recovery\WindowsRE\winre.wim
rem === Copy boot files from the Windows partition to the System partition ===
bcdboot W:\Windows
rem === In the System partition, set the location of the Windows partition ===
W:\Windows\System32\reagentc /setosimage /path R: /target W:\Windows /index 1
rem === In the System partition, set the location of the WinRE tools =========
W:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target W:\Windows
取自https://technet.microsoft.com/en-us/library/hh825089.aspx并修改到我的电脑上。
F:\ 是已安装的 Windows 10 周年版 ISO
其他驱动器号是使用https://technet.microsoft.com/en-us/library/hh825686.aspx
当我尝试运行此命令时 **dism /Apply-Image /ImageFile:F:\sources\install.wim /Index:1 /ApplyDir:W:**
我收到 1005 错误
错误:1005
该卷不包含可识别的文件系统。请确保已加载所有必需的文件系统驱动程序,并且该卷未损坏。
DISM 日志文件位于 C:\WINDOWS\Logs\DISM\dism.log
dism 日志文件如下
> 2016-10-10 09:27:34, Info DISM PID=9312 TID=12912
> Scratch directory set to 'C:\Users\SHAYAA~1.SID\AppData\Local\Temp\'.
> - CDISMManager::put_ScratchDir 2016-10-10 09:27:34, Info DISM PID=9312 TID=12912 DismCore.dll version: 10.0.14393.0 -
> CDISMManager::FinalConstruct 2016-10-10 09:27:34, Info
> DISM Try to initialize Panther logging 1 times, last error: 0x0
> 2016-10-10 09:27:34, Info DISM PID=9312 TID=12912
> Successfully loaded the ImageSession at "C:\WINDOWS\System32\Dism" -
> CDISMManager::LoadLocalImageSession 2016-10-10 09:27:34, Info
> DISM Try to initialize Panther logging 1 times, last error: 0x0
> 2016-10-10 09:27:34, Info DISM DISM Provider Store:
> PID=9312 TID=12912 Found and Initialized the DISM Logger. -
> CDISMProviderStore::Internal_InitializeLogger 2016-10-10 09:27:34,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Failed to get and initialize the PE Provider. Continuing by assuming
> that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
> 2016-10-10 09:27:34, Info DISM DISM Provider Store:
> PID=9312 TID=12912 Finished initializing the Provider Map. -
> CDISMProviderStore::Final_OnConnect 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Getting Provider
> DISMLogger - CDISMProviderStore::GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has previously
> been initialized. Returning the existing instance. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM Try to initialize Panther logging 1 times, last error: 0x0
> 2016-10-10 09:27:34, Info DISM DISM Provider Store:
> PID=9312 TID=12912 Getting Provider DISMLogger -
> CDISMProviderStore::GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has previously
> been initialized. Returning the existing instance. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Manager: PID=9312 TID=12912 Successfully created the local
> image session and provider store. -
> CDISMManager::CreateLocalImageSession 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Getting Provider
> DISMLogger - CDISMProviderStore::GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has previously
> been initialized. Returning the existing instance. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM.EXE: 2016-10-10 09:27:34, Info DISM
> DISM.EXE: <----- Starting Dism.exe session -----> 2016-10-10 09:27:34,
> Info DISM DISM.EXE: 2016-10-10 09:27:34, Info
> DISM DISM.EXE: Host machine information: OS Version=10.0.14393,
> Running architecture=amd64, Number of processors=8 2016-10-10
> 09:27:34, Info DISM DISM.EXE: Dism.exe version:
> 10.0.14393.0 2016-10-10 09:27:34, Info DISM DISM.EXE: Executing command line: dism /Apply-Image
> /ImageFile:install.wim /Index:1 /ApplyDir:W:\ 2016-10-10 09:27:34,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Getting the collection of providers from a local provider store type.
> - CDISMProviderStore::GetProviderCollection 2016-10-10 09:27:34, Info DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\FolderProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\FolderProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\WimProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\WimProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\VHDProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\VHDProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\ImagingProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\ImagingProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\CompatProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\CompatProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\FfuProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Connecting to the
> provider located at C:\WINDOWS\System32\Dism\FfuProvider.dll. -
> CDISMProviderStore::Internal_LoadProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has not
> previously been encountered. Attempting to initialize the provider. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Loading Provider from
> location C:\WINDOWS\System32\Dism\SiloedPackageProvider.dll -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Warning
> DISM DISM Provider Store: PID=9312 TID=12912 Failed to Load the
> provider: C:\WINDOWS\System32\Dism\SiloedPackageProvider.dll. -
> CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2016-10-10
> 09:27:34, Info DISM DISM.EXE: Got the collection of
> providers. Now enumerating them to build the command table. 2016-10-10
> 09:27:34, Info DISM DISM.EXE: Attempting to add the
> commands from provider: DISM Log Provider 2016-10-10 09:27:34, Info
> DISM DISM.EXE: Attempting to add the commands from provider:
> FolderManager 2016-10-10 09:27:34, Info DISM
> DISM.EXE: Attempting to add the commands from provider: WimManager
> 2016-10-10 09:27:34, Info DISM DISM.EXE:
> Succesfully registered commands for the provider: WimManager.
> 2016-10-10 09:27:34, Info DISM DISM.EXE: Attempting
> to add the commands from provider: VHDManager 2016-10-10 09:27:34,
> Info DISM DISM.EXE: Attempting to add the commands
> from provider: GenericImagingManager 2016-10-10 09:27:34, Info
> DISM DISM.EXE: Succesfully registered commands for the provider:
> GenericImagingManager. 2016-10-10 09:27:34, Info DISM
> DISM.EXE: Attempting to add the commands from provider: Compatibility
> Manager 2016-10-10 09:27:34, Info DISM DISM.EXE:
> Succesfully registered commands for the provider: Compatibility
> Manager. 2016-10-10 09:27:34, Info DISM DISM.EXE:
> Attempting to add the commands from provider: FfuManager 2016-10-10
> 09:27:34, Info DISM DISM Provider Store: PID=9312
> TID=12912 Getting Provider GenericImagingManager -
> CDISMProviderStore::GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has previously
> been initialized. Returning the existing instance. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Getting Provider
> WimManager - CDISMProviderStore::GetProvider 2016-10-10 09:27:34, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Provider has previously
> been initialized. Returning the existing instance. -
> CDISMProviderStore::Internal_GetProvider 2016-10-10 09:27:34, Error
> DISM DISM WIM Provider: PID=9312 TID=12912
> onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1054
> - CWimManager::Apply(hr:0x800703ed) 2016-10-10 09:27:34, Error DISM DISM Imaging Provider: PID=9312 TID=12912
> onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:2535
> - CGenericImagingManager::InternalCmdWimApply(hr:0x800703ed) 2016-10-10 09:27:34, Error DISM DISM Imaging
> Provider: PID=9312 TID=12912
> onecore\base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:535
> - CGenericImagingManager::ExecuteCmdLine(hr:0x800703ed) 2016-10-10 09:27:34, Info DISM DISM.EXE: Image session has
> been closed. Reboot required=no. 2016-10-10 09:27:34, Info
> DISM DISM.EXE: 2016-10-10 09:27:34, Info DISM
> DISM.EXE: <----- Ending Dism.exe session -----> 2016-10-10 09:27:34,
> Info DISM DISM.EXE: 2016-10-10 09:27:35, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Found the OSServices.
> Waiting to finalize it until all other providers are unloaded. -
> CDISMProviderStore::Final_OnDisconnect 2016-10-10 09:27:35, Info
> DISM DISM Provider Store: PID=9312 TID=12912 Disconnecting Provider:
> FolderManager - CDISMProviderStore::Internal_DisconnectProvider
> 2016-10-10 09:27:35, Info DISM DISM Provider Store:
> PID=9312 TID=12912 Disconnecting Provider: WimManager -
> CDISMProviderStore::Internal_DisconnectProvider 2016-10-10 09:27:35,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Disconnecting Provider: VHDManager -
> CDISMProviderStore::Internal_DisconnectProvider 2016-10-10 09:27:35,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Disconnecting Provider: GenericImagingManager -
> CDISMProviderStore::Internal_DisconnectProvider 2016-10-10 09:27:35,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Disconnecting Provider: Compatibility Manager -
> CDISMProviderStore::Internal_DisconnectProvider 2016-10-10 09:27:35,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Disconnecting Provider: FfuManager -
> CDISMProviderStore::Internal_DisconnectProvider 2016-10-10 09:27:35,
> Info DISM DISM Provider Store: PID=9312 TID=12912
> Releasing the local reference to DISMLogger. Stop logging. -
> CDISMProviderStore::Internal_DisconnectProvider
我正在尝试创建一台可外部启动的 Windows 10 PC,可以使用软件更新进行更新。使用 Windows To Go 感觉很棒,直到我们发现它无法接收更新。
答案1
使用鲁弗斯创建 Windows To Go 驱动器。在 Rufus 中选择 ISO,并确保选择Windows To Go
并点击Start
。这将创建一个正确的 Windows To Go 驱动器,可以正常更新。